Skip to content

Fix/restore green build - #30

Merged
JetSquirrel merged 6 commits into
mainfrom
fix/restore-green-build
Aug 28, 2026
Merged

JetSquirrel merged 6 commits into
mainfrom
fix/restore-green-build

Conversation

@JetSquirrel

Copy link
Copy Markdown
Owner

No description provided.

JetSquirrel and others added 6 commits August 28, 2026 13:22
The input API changed: set_placeholder now takes window and cx, and
set_default_value was removed. Seed the region defaults with set_value
instead.

Also gets `cargo clippy -- -D warnings` back to clean:
- apply cargo fmt to the budget code merged in #23
- allow(dead_code) on the budget API until the UI is wired up (v0.2.0)
- use sort_by_key for the SigV4 canonical header sort

fmt, clippy, check and test all pass.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Vendored from longbridge/gpui-component (skills/gpui-component on main):
SKILL.md plus the design, coding, usage and style reference guides for
the component library this project builds its UI on.

Refresh it from the source repo rather than editing in place.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Cargo.toml still asked for 0.5.0-preview1 while the lockfile had already
moved to preview2, which is what broke the input API. Move both the
manifest and the lockfile onto the 0.5.1 release so they agree.

No source changes needed; fmt, clippy, check and test all pass.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
`accent` is a surface token, so using it as the label color painted the
selected nav item light grey on light grey. Mirror what the library's own
SidebarMenuItem does: sidebar_accent for the background,
sidebar_accent_foreground for the label, sidebar_foreground when inactive.

Also move the sidebar chrome onto sidebar_border / sidebar_foreground so
the whole panel uses one token family.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
The About section had 0.1.0 hardcoded; read CARGO_PKG_VERSION instead so
it tracks the manifest.

AppConfig derived Default, so refresh_interval_minutes came out as 0 and
Settings advertised "0 minutes". Give it a real default of 60 and repair
configs already written with 0.

Nothing schedules a refresh from that value, though, so the Data section
only promised behaviour the app does not have. Remove it until the
interval is actually wired to something, and say so on the field.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
toggle_dark_mode only wrote the flag to disk; nothing ever called into the
theme system, so the switch was inert and the stored preference was never
applied. Call Theme::change on toggle, passing the window so it repaints,
and apply the saved preference in main() before the first window opens.

Drive the switch off the checked value the component hands back instead of
flipping our own copy, so the two cannot drift apart.

Default to the light theme; the previous dark default had never actually
taken effect, so turning the preference on would have changed behaviour
for everyone on first launch.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@JetSquirrel
JetSquirrel merged commit 710aba5 into main Aug 28, 2026
1 of 3 checks passed
@JetSquirrel
JetSquirrel deleted the fix/restore-green-build branch September 11, 2026 07:53
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.

1 participant