Skip to content

fix(dash): dim today button when on current month - #3294

Merged
bbedward merged 5 commits into
duxlabs-dev:masterfrom
hthienloc:fix/calendar-today-button-visibility
Sep 4, 2026
Merged

bbedward merged 5 commits into
duxlabs-dev:masterfrom
hthienloc:fix/calendar-today-button-visibility

Conversation

@hthienloc

Copy link
Copy Markdown
Member

No description provided.

@hthienloc

Copy link
Copy Markdown
Member Author

/claude review

@claude

claude Bot commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Claude review

Behavior looks correct; two convention issues, nothing blocking.

  • Hand-rolled DankTooltipV2 duplicates DankActionButton.tooltipText (loses the standard 400ms delay) and I18n.tr("Today") is missing translator context, quickshell/Modules/DankDash/Overview/CalendarOverviewCard.qml:373-382
  • Behavior on opacity hardcodes duration: 150 instead of Theme.shortDuration, so the fade ignores the animation-speed setting, quickshell/Modules/DankDash/Overview/CalendarOverviewCard.qml:367-371

Checked: enabled/disabled state against calendarGrid.displayDate and systemClock (hourly precision) transitions, keyboard goToToday() path unaffected, tooltip lifetime, Theme tokens exist, no catalog files touched. Model: claude-opus-5.

@hthienloc

This comment was marked as outdated.

@hthienloc

Copy link
Copy Markdown
Member Author

Turned out the stuck tooltip was just caused by dynamically toggling tooltipText to null on disable which broke StateLayer.onExited. Keeping tooltipText static works fine without changes to dank-qml-common.

@hthienloc

Copy link
Copy Markdown
Member Author

/claude review

@claude

claude Bot commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Claude review

Previous round is addressed; one behavioral gap left.

  • Disabling on month match alone blocks re-selecting today when another day in the current month is selected — goToToday() also resets selectedDate, quickshell/Modules/DankDash/Overview/CalendarOverviewCard.qml:362

Checked: Theme.shortDuration fade now respects the animation-speed setting, tooltipText uses the built-in StateLayer tooltip and reuses the existing untranslated-context Today term from en.json (matches WeatherService.qml:452), disabled state suppresses the tooltip via enabled propagation to StateLayer, Theme.surfaceTextMedium exists, systemClock hourly precision keeps the binding live across month rollover, no dangling todayButton references, catalogs untouched. Model: claude-opus-5.

@hthienloc

Copy link
Copy Markdown
Member Author

/claude review

@claude

claude Bot commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Claude review

No issues found.

Checked: isToday now gates on both displayDate and selectedDate, so arrow-key/grid selection within the current month keeps the button live and goToToday()'s selectedDate reset stays reachable; forward calendarGrid/systemClock id references resolve fine (bindings are enabled after the whole document is created, same as the existing displayDate header binding); systemClock hourly precision keeps the binding correct across midnight and month rollover; enabled: false propagates to StateLayer so the disabled button drops its hover/cursor/tooltip; opacity: enabled ? 1 : 0.38 with Theme.shortDuration matches MediaPlayerIslandChrome.qml:330; I18n.tr("Today") reuses the existing en.json term (WeatherService.qml:452); Theme.surfaceTextMedium exists; no dangling todayButton refs; no catalog files touched. Model: claude-opus-5.

@bbedward
bbedward merged commit 07d8e28 into duxlabs-dev:master Sep 4, 2026
1 check passed
@hthienloc
hthienloc deleted the fix/calendar-today-button-visibility branch September 4, 2026 14:28
bbedward pushed a commit that referenced this pull request Sep 4, 2026
* fix(dash): dim today button when on current month and hide tooltip on click

* fix(dash): use Theme.shortDuration for calendar today button opacity animation

* refactor(dash): use standard DankActionButton tooltipText for calendar today button

* chore(dash): remove unused todayButton id

* fix(dash): allow returning to today when another day in current month is selected

(cherry picked from commit 07d8e28)
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.

2 participants