Skip to content

Add Fable weekly quota tracking - #34

Closed
ucodia wants to merge 3 commits into
eddmann:mainfrom
ucodia:feat/fable-quota-tracking
Closed

Add Fable weekly quota tracking#34
ucodia wants to merge 3 commits into
eddmann:mainfrom
ucodia:feat/fable-quota-tracking

Conversation

@ucodia

@ucodia ucodia commented Jul 24, 2026

Copy link
Copy Markdown

Summary

Adds tracking for the Claude Fable 5 weekly usage limit, shown as a new Weekly Fable card in the menu bar popover.

  • Parses the Fable quota from both API response shapes: the dedicated seven_day_fable field, and the weekly_scoped entry in the limits array that migrated accounts receive (where the old seven_day_* keys are null and the array reports percent with the model display name in scope).
  • New Show Fable Usage toggle in Settings (show_fable_usage, off by default, decodes old saved settings safely).
  • withFable demo mode for screenshots.
  • The popover now sizes itself to its content instead of a fixed 320×460 frame, so a third (or fourth) card fits without scrolling.
  • Test runs no longer read the real keychain: the app skips bootstrap when launched as an XCTest host, which previously triggered repeated keychain password prompts on unsigned builds.

Screenshot

Weekly Fable card

Testing

  • New unit tests cover both API shapes, including a raw-JSON fixture modeled on a real migrated-account response, plus settings decoding defaults.
  • Full suite passes (53 tests); the 8 MenuBarIconSnapshotTests failures are pre-existing on a clean checkout (reference PNGs recorded on a different macOS build) and unrelated.
  • Verified end-to-end against the live API: the card renders with real Fable utilization (see screenshot).

Generated with AI assistance

ucodia added 2 commits July 23, 2026 23:15
Parse the Fable weekly limit from both API shapes: the dedicated
seven_day_fable field and the weekly_scoped entry in the limits array
used by migrated accounts. Adds a Weekly Fable popover card behind a
new show_fable_usage setting, a withFable demo mode, and sizes the
popover to its content so three or more cards fit without scrolling.
Prevents test runs from reading the real keychain, which triggers
password prompts when the build is unsigned.
@mpecan

mpecan commented Jul 27, 2026

Copy link
Copy Markdown

Hi @ucodia #32 -> this already does the same, but makes is track "any" models provided in the response by Anthropic.

@ucodia

ucodia commented Jul 27, 2026

Copy link
Copy Markdown
Author

Closing in favor of #32

@ucodia ucodia closed this Jul 27, 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