Skip to content

fix(file-description): display "N/A" when file description is empty#167

Open
amadulhaxxani wants to merge 2 commits into
clarin-v7from
166-md5-in-place-of-description
Open

fix(file-description): display "N/A" when file description is empty#167
amadulhaxxani wants to merge 2 commits into
clarin-v7from
166-md5-in-place-of-description

Conversation

@amadulhaxxani

Copy link
Copy Markdown

Problem description

File description field rendered blank when no description was provided. Now displays "N/A" (or its Czech translation "Neuvedeno") as a fallback.

Sync verification

If en.json5 or cs.json5 translation files were updated:

  • Run yarn run sync-i18n -t src/assets/i18n/cs.json5 -i to synchronize messages, and changes are included in this PR.

Copilot review

  • Requested review from Copilot

Copilot AI review requested due to automatic review settings July 13, 2026 08:39
@amadulhaxxani amadulhaxxani linked an issue Jul 13, 2026 that may be closed by this pull request

Copilot AI left a comment

Copy link
Copy Markdown

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 updates the item file preview “File description” field to display a localized fallback (“N/A” / “Neuvedeno”) when no description is provided, instead of rendering a blank value.

Changes:

  • Added a new i18n key item.file.description.na in EN and CS translation files.
  • Updated the file description template to fall back to the translated “N/A” label when the description is empty.
  • Added unit tests covering both the fallback and non-empty description rendering.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.

File Description
src/assets/i18n/en.json5 Adds English translation for the new “N/A” fallback key.
src/assets/i18n/cs.json5 Adds Czech translation for the new “N/A” fallback key and includes i18n sync-related changes.
src/app/item-page/simple/field-components/preview-section/file-description/file-description.component.html Uses the new translation key as a fallback when fileInput.description is empty.
src/app/item-page/simple/field-components/preview-section/file-description/file-description.component.spec.ts Adds tests to verify fallback behavior and normal rendering when a description exists.

Comment thread src/assets/i18n/cs.json5
Comment thread src/assets/i18n/cs.json5 Outdated
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.

MD5 in place of description

2 participants