Skip to content

feat: show app version on page and generated citation - #96

Open
beanbean9339 wants to merge 1 commit into
mainfrom
feat/version-display
Open

beanbean9339 wants to merge 1 commit into
mainfrom
feat/version-display

Conversation

@beanbean9339

Copy link
Copy Markdown
Collaborator

Summary

This PR adds the OpenCite application version to the app footer and generated CITATION.cff files.

Changes

  • Added src/appVersion.js to retrieve the application version directly from package.json.
  • Displayed the OpenCite version in the application footer.
  • Added a generated comment at the beginning of CITATION.cff identifying the OpenCite version used to generate it.
  • Updated the README to document where the version is displayed.
  • Added tests to verify version consistency and validate the generated citation output.

Notes

  • .zenodo.json remains unchanged because JSON does not support comments.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues are recorded for the changes adding the application version to the interface and generated citation files.

No open issues 🎉

What changed in this PR

Adds OpenCite’s application version to the interface and generated citation files, using package.json as the single source of truth.

Changes:

  • Displays the application version in the footer and a leading comment in generated CITATION.cff files.
  • Adds tests for version consistency and citation validity.
  • Documents the version display; .zenodo.json remains unchanged.
File Description
tests/​services/​citationValidation.test.js Checks the version comment and generated citation validity.
tests/​services/​appVersion.test.js Checks that the application version matches package.json.
src/​services/​citation.js Adds the version comment to generated citations.
src/​appVersion.js Exports the application version from package.json.
src/​App.jsx Displays the version in the footer.
README.md Documents where the version appears.

Review effort: Balanced

@beanbean9339 beanbean9339 added design UX or presentation needs attention enhancement New feature or request labels Nov 30, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

design UX or presentation needs attention enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants