-
Notifications
You must be signed in to change notification settings - Fork 77
fix: polish styling/UX on multiple pages #1436
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: polish styling/UX on multiple pages #1436
Conversation
|
can you please review it changes have been applied |
| saveAppearance?.( | ||
| currentUITheme || DEFAULT_THEME, | ||
| currentUIFont || DEFAULT_FONT, | ||
| ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bug: Disabled state checks wrong mutation's pending status
The disabled prop checks updateAppearanceSettingsMutation.isPending, but the actual save operation uses saveAppearance from useOrgTheme, which internally uses a different mutation (updateThemeMutation). Since updateAppearanceSettingsMutation is never called, isPending will always be false, so buttons won't be disabled during the save operation. This allows users to trigger multiple saves simultaneously.
Additional Locations (1)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@thisisharsh7 do you mind verifying is this statement is true/worth addressing here in the code?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah on it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
well user can't trigger mulitple saves simultaneously since when we are clicking on the save we are already hiding that save container
joeyorlando
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
overall looks good! Just some minor comments, once those are addressed, I think we can go ahead and get this merged in
| saveAppearance?.( | ||
| currentUITheme || DEFAULT_THEME, | ||
| currentUIFont || DEFAULT_FONT, | ||
| ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@thisisharsh7 do you mind verifying is this statement is true/worth addressing here in the code?
joeyorlando
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also be sure to fix any errors originating from pnpm check:ci 🙂
@joeyorlando please review it again when get a chance thanks! |
it looks like there's 1 last failure under FWIW if you run cd platform/frontend
pnpm ci:check |
|
I run it from the platform directory earlier pnpm check:ci |
it works now I guess you might have a typo here pnpm check:ci |
|
can we make some precommit check like when user commit, it will check all these lints error there only ? |
|
yes we plan to add |
|
yeah thanks looking forward to it |
| queryClient.invalidateQueries({ queryKey: ["teams"] }); | ||
| } catch (error) { | ||
| toast.error("Failed to update team compression settings"); | ||
| throw error; // Re-throw to prevent setHasChanges(false) from running |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bug: Team mode shows conflicting success and error toasts
In team mode, the updateOrganizationMutation.mutateAsync call at line 115 triggers a success toast ("Tool results compression settings updated") when it completes. If the subsequent team updates (lines 122-133) fail, the catch block shows an error toast ("Failed to update team compression settings"). This results in the user seeing both a success toast and an error toast for what appears to be a single save operation, creating confusing and contradictory feedback. The organization update succeeds but team updates fail, leaving the system in a partially saved state while giving mixed signals to the user.
🤖 I have created a release *beep* *boop* --- ## [0.6.25](platform-v0.6.24...platform-v0.6.25) (2025-12-09) ### Features * LLM Proxy - add X-Archestra-Agent-Id header support ([#1477](#1477)) ([909a306](909a306)) ### Bug Fixes * polish styling/UX on multiple pages ([#1436](#1436)) ([68c5364](68c5364)) * smaller bugs ([#1311](#1311)) ([ba2be1f](ba2be1f)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: archestra-ci[bot] <222894074+archestra-ci[bot]@users.noreply.github.com>




This PR includes several UI polish improvements across multiple pages in the frontend, focusing on better spacing, consistent styling, and improved user experience. The changes also include a refactor to the theme hook for more efficient theme/font updates.
Tests
Note
Polishes spacing/border styling across pages, updates architecture link, refactors theme hook and appearance settings to save theme and font together, and tightens compression save error handling.
saveTheme/saveFontwith unifiedsaveAppearanceusage insettings/appearance/page.tsx.lib/theme.hook.ts):saveAppearance(theme, font); updates backend and localStorage together.saveAppearance.cost/compression/page.tsx):handleSave: update org scope first; wrap team updates intry/catchwith error toast; sethasChangesafter success.mb-8) to sections inlogs/[id]/page.client.tsx.AccordionItemborder styling (!border-b) in logs and tools response modifier editor.settings/account/page.tsx./agentsto/profiles.Written by Cursor Bugbot for commit 812d8a7. This will update automatically on new commits. Configure here.