Skip to content

TD-831: Add tooltips to favorite buttons - #1674

Merged
brueckb merged 1 commit into
mainfrom
feat/TD-831-favorite-tooltips
Nov 12, 2026
Merged

brueckb merged 1 commit into
mainfrom
feat/TD-831-favorite-tooltips

Conversation

@brueckb

@brueckb brueckb commented Nov 12, 2026

Copy link
Copy Markdown
Collaborator

Adds a tooltip to the favorite heart button. The text depends on the state: "Als Favorit markieren" or "Favorit entfernen". The tooltip applies to the cards in the overview and to the view and edit pages of all three entity types.

The aria-label stays constant ("Als Favorit markieren"), because aria-pressed already announces the state. The unused common.favorite key is removed.

🤖 Written by AI under human supervision.

Copilot AI balanced review requested due to automatic review settings November 12, 2026 09:19

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

The favorite-button tooltip changes have no active review issues.

No open issues 🎉

What changed in this PR

Adds state-dependent tooltips to the shared favorite button, covering overview cards and view/edit pages for all three entity types.

Changes:

  • Shows “Als Favorit markieren” or “Favorit entfernen” based on favorite state.
  • Uses a constant accessible label while retaining aria-pressed to communicate state.
  • Replaces the unused common.favorite translation with add/remove labels.
File Description
apps/​chat-bot/​src/​components/​common/​favorite-button.tsx Adds the tooltip and updates the accessible label.
apps/​chat-bot/​messages/​de.json Replaces the generic favorite label with German add/remove text.

Review effort: Balanced

@codecov

codecov Bot commented Nov 12, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@github-actions

Copy link
Copy Markdown

Playwright Smart Reporter

Passed: 39 of 39 tests passed.

Pass rate Passed Failed Flaky Skipped Duration
100% 39 0 0 0 2.3m

Baseline run: main @ f5778ad4

Slowest tests

Test Duration
character is submitted, rejected, resubmitted and approved across chat-bot and admin [chromium] 58.3s
teacher can login, create and join shared dialogpartner chat [chromium] 41.0s
can be set in the overview and the detail page and removed again [chromium] 28.0s
teacher can login, create an assistant and start a chat [chromium] 25.7s
can be set in the overview and the detail page and removed again [chromium] 24.7s

Open the full report

@brueckb
brueckb merged commit 5f8b16b into main Nov 12, 2026
10 checks passed
@brueckb
brueckb deleted the feat/TD-831-favorite-tooltips branch November 12, 2026 11:36
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.

3 participants