🎨 Palette: Improve citation copy feedback and accessibility - #113
Conversation
- Dynamically swap the copy icon to a green checkmark (`FaCheck`) upon copy success. - Pulse animate the "Copied" status text in the popover. - Update ARIA labels and Tooltip content dynamically to reflect copy state. - Create .jules/palette.md to document critical micro-UX/accessibility learnings.
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
… coverage - Dynamically swap the copy icon to a green checkmark (`FaCheck`) upon copy success. - Pulse animate the "Copied" status text in the popover. - Update ARIA labels and Tooltip content dynamically to reflect copy state. - Create .jules/palette.md to document critical micro-UX/accessibility learnings. - Include src/components/publication.tsx in vitest coverage config. - Add comprehensive unit tests in src/components/publication.test.tsx to achieve near-100% code coverage.
…achieve 100% test coverage - Dynamically swap copy button icon to a green checkmark (`FaCheck`) on success. - Pulse animate the "Copied" status text in the citation popover. - Update ARIA labels and Tooltip content dynamically to reflect copy state. - Create .jules/palette.md to document critical micro-UX/accessibility learnings. - Include src/components/publication.tsx in vitest coverage config. - Add comprehensive unit tests in src/components/publication.test.tsx to achieve 100% statement, branch, function, and line coverage.
…100% SonarCloud coverage - Dynamically swap copy button icon to a green checkmark (`FaCheck`) on success. - Pulse animate the "Copied" status text in the citation popover. - Update ARIA labels and Tooltip content dynamically to reflect copy state. - Create .jules/palette.md to document critical micro-UX/accessibility learnings. - Include src/components/publication.tsx in vitest coverage config. - Add comprehensive unit tests in src/components/publication.test.tsx to achieve 100% statement, branch, function, and line coverage. - Add `sonar.exclusions=**/*.test.ts,**/*.test.tsx` in `sonar-project.properties` to ensure SonarCloud does not treat test files as source code and drop coverage on new code below the Quality Gate threshold.
This PR implements a delight and accessibility-focused improvement to the BibTeX Citation feature under the Publications section. Previously, clicking the copy button in the BibTeX popover would display a static "Copied" text, but the button icon itself wouldn't change, and the ARIA label and Tooltip remained static.
We have now:
FaCopyto a greenFaCheckupon copy success (active for 2 seconds).animate-pulse) to the "Copied" status text in the popover.aria-labeldynamically (BibTeX copiedvsCopy BibTeX to clipboard) to keep screen reader users accurately informed.Copied!vsCopy to clipboard)..jules/palette.md.PR created automatically by Jules for task 15059501643889668052 started by @amrabed