Skip to content

fix(list): make "Highlight today's dates" take effect - #408

Closed
filip-spaldon wants to merge 1 commit into
thisisgm:mainfrom
filip-spaldon:fix/highlight-today
Closed

filip-spaldon wants to merge 1 commit into
thisisgm:mainfrom
filip-spaldon:fix/highlight-today

Conversation

@filip-spaldon

Copy link
Copy Markdown
Contributor

What

Highlight today's dates was stored and shown in Settings, but never reached the list. ListView::apply_settings, the only writer of today, had no caller, so dates never lit up.

The pane's per-frame row setup now reads highlightToday and keeps today's local midnight. It works midnight out again once the stored one is nearly a day old, so a window left open past midnight moves to the new day on its next frame.

on

Testing

  • cargo test -p flea-gui and cargo test --lib on this branch, rebased on the latest main. The library suite passes. In flea-gui, 16 tests fail on my machine, and the same 16 fail on an unmodified main: rail device listing, photo scaling, compositor frames, the presentation worker and the About package probe. Nothing else fails.
  • Tested by hand on Omarchy with Hyprland, in a separate flea-gui instance with its own XDG_STATE_HOME, HOME and D-Bus session, driven by synthetic keys. The screenshots come from those runs.

🤖 Generated with Claude Code

The setting was stored and shown in Settings, but nothing ever handed
today's midnight to the list: ListView::apply_settings, the only writer
of `today`, had no caller, so dates never lit up. The pane's per-frame
row setup now reads "highlightToday" and keeps today's local midnight,
worked out again once the stored one is nearly a day old, so a window
left open past midnight moves to the new day.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@coderabbitai

coderabbitai Bot commented Nov 5, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 59 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 4 included reviews currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: fa995e91-fbfe-4f29-8878-11a64c38f96b
Commits

Reviewing files that changed from the base of the PR and between 73f3c23 and f338061.

Files selected for processing: 1

  • crates/flea-gui/src/window/search_contents.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@thisisgm

thisisgm commented Nov 8, 2026

Copy link
Copy Markdown
Owner

Highlight today's dates never refreshed; your idea landed as a co-authored commit with the #427 fix in 25ee888, shipped in v0.4.1. Thanks @filip-spaldon! https://github.com/thisisgm/flea/releases/tag/v0.4.1

@thisisgm thisisgm closed this Nov 8, 2026
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