Skip to content

Conversation

@kosarko
Copy link
Member

@kosarko kosarko commented May 5, 2025

This contains the following changes:

milanmajchrak and others added 5 commits April 15, 2025 09:41
* Changed the getLangCodeIfCzech links

* Changed the dropdown-menu and services links
* Creating docker-compose file useful for building clarin-dspace on MAC computers

(cherry picked from commit 7de4761)

* Add link to communities and collections on home page

(cherry picked from commit 4673e39)

---------

Co-authored-by: Milan Kuchtiak <[email protected]>
…pace#837)

* Updated the no file preview message and refactored some code.

* Added a non null check when accessing the object properties and the message is refactored.
@kosarko kosarko requested a review from Copilot May 5, 2025 14:43
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR pulls in updates from the latest dtq release, including changes to deployment configuration, menu links, and improvements in the file preview components. Key changes include:

  • Updates to URL generation in header templates and components for consistent absolute linking.
  • Refactoring of file preview components to use safe navigation operators and pipeline operators.
  • Adjustment of the deploy action path in the GitHub workflows.

Reviewed Changes

Copilot reviewed 7 out of 9 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/themes/dspace/app/header/header.component.html Updated navigation links to use absolute paths.
src/app/item-page/simple/field-components/preview-section/preview-section.component.ts Applied safe navigation operator for email configuration.
src/app/item-page/simple/field-components/preview-section/file-description/file-description.component.ts Introduced pipe with getFirstSucceededRemoteData and new helper method hasNoPreview().
src/app/item-page/simple/field-components/preview-section/file-description/file-description.component.html Updated preview check to use hasNoPreview() helper.
src/app/home-page/home-page.component.html Added new link in the advanced search section for global community browsing.
src/app/header/header.component.ts Modified getLangCodeIfCzech behavior and adjusted translations mapping.
.github/disabled-workflows/deploy.yml Changed deploy action reference to point to the workflow file.
Files not reviewed (2)
  • src/assets/i18n/cs.json5: Language not supported
  • src/assets/i18n/en.json5: Language not supported
Comments suppressed due to low confidence (3)

src/themes/dspace/app/header/header.component.html:20

  • [nitpick] The change from a relative URL ('services/catalog') to an absolute URL ('/services/catalog') could affect navigation in contexts where relative paths are expected. Please verify that this adjustment aligns with the intended routing configuration.
<a href="/https/github.com/services/catalog" class="lindat-nav-link">{{'navbar.community-list' | translate}}</a>

src/app/header/header.component.ts:53

  • [nitpick] The updated getLangCodeIfCzech method now returns either 'cs' or an empty string, which simplifies the logic. Please ensure that downstream code consuming this value correctly handles the empty string scenario.
return this.localeService.getCurrentLanguageCode() === 'cs' ? 'cs' : '';

.github/disabled-workflows/deploy.yml:48

  • [nitpick] The deploy workflow now references the workflow file path instead of a custom action; please confirm this change is intentional and that it triggers the intended deployment behavior.
uses: ./.github/workflows/deploy.yml

@kosarko kosarko merged commit b91a3b7 into clarin-v7 May 5, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants