Skip to content

fix: Consistent cite button label - #277

Open
kikisprdx wants to merge 2 commits into
4TUResearchData:mainfrom
kikisprdx:bug-213-citation-label
Open

fix: Consistent cite button label#277
kikisprdx wants to merge 2 commits into
4TUResearchData:mainfrom
kikisprdx:bug-213-citation-label

Conversation

@kikisprdx

@kikisprdx kikisprdx commented Aug 20, 2026

Copy link
Copy Markdown
Collaborator

Summary

Keep the "Cite" button as is when opening/closing the citation tab. Previously, text would change to "Citation" but would never revert. After a short discussion, we decided that the text change is unnecessary.

Changes

  • src/djehuty/web/resources/static/js/utils.js: toggle_cite_collect no longer swaps the cite button's text to "Citation" when opening the panel.
  • tests/e2e/tests/test_citation.py: add test_cite_button_label_stays_cite asserting the button text stays "Cite" across closed, opened, and re-closed.

Approval Checklist

  • I agree to follow Djehuty's code of conduct.
  • I have read and I have follow the code contribution workflow.
  • Code style and conventions were respected.
  • Documentation has been updated where needed (README, docs, or examples).
  • Review approved by at least one maintainer.
  • Merge readiness (PR is squashed into a single commit and follows the commit template).

Issue Reference (optional - PRs may not be associated with an issue)

Closes #213

Screenshots (optional)
image
image

Notes (optional)

Additional context, caveats, or follow-up tasks.

* src/djehuty/web/resources/static/js/utils.js: Keep the label at
  "Cite" instead of switching to "Citation" when open.

signed-off-by: kikis <kikispcmr@gmail.com>
* tests/e2e/tests/test_citation.py: Add test to ensure that citation button text
  remains as "cite".

Signed-off-by: Kikis <kikispcmr@gmail.com>
@kikisprdx
kikisprdx requested a review from 641e16 August 20, 2026 11:07
@codecov

codecov Bot commented Aug 20, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 18.06%. Comparing base (ea3ca20) to head (781ac24).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #277   +/-   ##
=======================================
  Coverage   18.06%   18.06%           
=======================================
  Files          21       21           
  Lines       10507    10507           
  Branches     2038     2038           
=======================================
  Hits         1898     1898           
  Misses       8417     8417           
  Partials      192      192           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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.

[BUG]: Button label for cite/citation

1 participant