Repository navigation
[Port to dtq-dev-93] LINDAT static pages and item page fixes from dtq-dev - #1749
Open
milanmajchrak wants to merge 2 commits into
Open
milanmajchrak wants to merge 2 commits into
milanmajchrak wants to merge 2 commits into
Conversation
…q-dev Ports four LINDAT fixes from dtq-dev: - cec098b: seven licence pages from LINDAT production - 5e50704: refreshed Deposit page, FAQ and step images - f590749: long subject badges wrap, empty file description shows N/A - 83f73a6: Terms of Service fills ${...} placeholders from backend config Co-Authored-By: Claude Opus 5.5 <[email protected]>
The link sat in a text block without underline, so the Cypress axe check link-in-text-block failed on the submission page. Use the global link-contrast class, like the vanilla End User Agreement page. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
References
Ports these dtq-dev PRs:
Requires the paired DSpace PR dataquest-dev/DSpace#1741, which exposes the
description.*properties.Description
Brings four LINDAT UI fixes from dtq-dev to the v9 branch: new licence pages, a refreshed Deposit page, wrapped subject badges with N/A for an empty file description, and filled-in placeholders on the Terms of Service page.
Instructions for Reviewers
List of changes in this PR:
src/static-files/.submission.sections.upload.info, en + cs) adds a sentence that links the recommended formats in the CLARIN Standards Information System (the LINDAT centre page). The link has the globallink-contrastclass, so it passes the axelink-in-text-blockcheck.text-wrap text-start).item.file.description.na("N/A", "Neuvedeno") instead of a blank row.StaticPageComponentreplaces${key}in a static page with the backend propertykeyfrom/api/config/properties. Values are HTML-escaped. A missing or failing property keeps the placeholder and logs one warning.terms-of-service.htmluses${description.*}instead of${lr.description.*}.How to test:
description.institution,description.location,description.countryanddescription.cityin the backendlocal.cfg, then open/static/terms-of-service.html. The preamble and article 6 show the values, not${...}./static/license-ud-2.18.htmland/static/deposit.html.npm run test -- --include=src/app/static-page/static-page.component.spec.ts --include=src/app/item-page/simple/field-components/preview-section/file-description/file-description.component.spec.tsThe diff is over 1,000 lines only because of the licence pages (license-ud-2.18.html alone has 1,469). The code change is under 100 lines. The unrelated cs.json5 reordering in 1698 is left out.
Codex review (gpt-6.2-sol, high): 3 findings. Not changed: the code is the same as on dtq-dev, and the licence pages are copied from LINDAT production as they are.
Checklist
mainbranch of code (unless it is a backport or is fixing an issue specific to an older branch).npm run lintnpm run check-circ-deps)package.json), I've made sure their licenses align with the DSpace BSD License based on the Licensing of Contributions documentation.🤖 Generated with Claude Code