Claude plan usage in the notch: 5-hour and weekly limits - #159
Merged
Merged
Conversation
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…ly, validation - Preview writes nothing; all file I/O deferred to confirm (fixes cancel-uninstall data loss) - Reinstall preserves existing statusLine padding/refreshInterval (only command swapped) - Pill label and color computed live from claudePlanUsage at render; removed tasks mutation in didSet - integration_claude_plan is githubOnly: true (App Store has no installer) - Install checks xcode-select -p and shows clear error if CLTools missing - nb-hook.py: invalid stdin returns early in normal mode; --statusline continues regardless - Validation: clamp pct 100-200 to 100 (not rejected); reject pct > 200; reject resets_at > 400 days - Card: TimelineView every 30s; DateFormatter created once with en_US_POSIX locale - Settings Plan usage: shows Installed/Not installed state and only the relevant button - Diff shows only the statusLine key (before/after), not full settings.json - settings.json written with .withoutEscapingSlashes - 27/27 tests pass Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…talog pill
- Remove integration_claude_plan from PillCatalog; it was never shipped
- Add "Show in the notch" toggle in Settings → Agents → Plan usage; enabling
it auto-triggers relay install if not yet installed; cancelling reverts toggle
- Small capsule pill in IslandHeader (home view, GitHub build): colored dot +
"Claude 73%" label, active look while plan detail is open
- Tap pill: ClaudePlanCardView replaces left card; showingPlanDetail resets on
focusId/view/mode change; big Mochi takes plan usage color while open
- Card tweaks: fixed 50pt bar, arrow.clockwise icon, compact reset labels
("in 1 h 20" / "Mon 9:00"), subtitle "just now / N min ago / N h ago",
no truncation; TimelineView every 30s
- App Store build unaffected (all new UI is #if !APPSTORE)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Weekly reset label: "Mon 9:00" without "Resets" prefix (icon suffices) - Label column widened to 40pt so "5 hours" never truncates - Cache relay-installed state in AppState.planRelayInstalled; set at launch, refreshed on Settings open and after every Install/Uninstall confirm; IslandHeader reads state.planRelayInstalled instead of calling HookServer.statusLineInstalled() on each render - Uninstall confirm sets showPlanInNotch = false Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
4 of 5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Tests