Skip to content

Conversation

@thisisharsh7
Copy link
Contributor

@thisisharsh7 thisisharsh7 commented Dec 6, 2025

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

  1. Test compression settings save flow - verify no duplicate toasts
  2. Test appearance settings save - verify theme and font update together
  3. Verify spacing improvements on logs detail, account, and appearance pages
  4. Test accordion border styling on tools and logs pages
  5. Verify architecture diagram link navigates to correct page

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.

  • Appearance Settings:
    • Replace separate saveTheme/saveFont with unified saveAppearance usage in settings/appearance/page.tsx.
  • Theme Hook (lib/theme.hook.ts):
    • Consolidate theme/font updates into saveAppearance(theme, font); updates backend and localStorage together.
    • Remove separate apply/save functions for theme and font; expose saveAppearance.
  • Compression Settings (cost/compression/page.tsx):
    • Restructure handleSave: update org scope first; wrap team updates in try/catch with error toast; set hasChanges after success.
  • Logs & Tools UI:
    • Add spacing (mb-8) to sections in logs/[id]/page.client.tsx.
    • Adjust AccordionItem border styling (!border-b) in logs and tools response modifier editor.
  • Account Settings UI:
    • Add vertical spacing container in settings/account/page.tsx.
  • Navigation:
    • Update architecture diagram link from /agents to /profiles.

Written by Cursor Bugbot for commit 812d8a7. This will update automatically on new commits. Configure here.

@thisisharsh7
Copy link
Contributor Author

can you please review it changes have been applied

@joeyorlando joeyorlando changed the title fix:UI polish multiple pages fix: polish styling/UX on multiple pages Dec 8, 2025
saveAppearance?.(
currentUITheme || DEFAULT_THEME,
currentUIFont || DEFAULT_FONT,
);
Copy link

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)

Fix in Cursor Fix in Web

Copy link
Contributor

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah on it

Copy link
Contributor Author

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

Copy link
Contributor

@joeyorlando joeyorlando left a 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,
);
Copy link
Contributor

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?

Copy link
Contributor

@joeyorlando joeyorlando left a 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 🙂

@thisisharsh7
Copy link
Contributor Author

Screenshot 2025-12-09 at 5 30 05 PM

@joeyorlando please review it again when get a chance thanks!

@joeyorlando
Copy link
Contributor

Screenshot 2025-12-09 at 5 30 05 PM @joeyorlando please review it again when get a chance thanks!

it looks like there's 1 last failure under platform/frontend.

FWIW if you run pnpm check:ci from the platform directory, it will run the turbo command in platform/package.json (which will run that command for all of the pnpm workspaces under platform); alternatively just run it from a subdirectory of platform like:

cd platform/frontend
pnpm ci:check

@thisisharsh7
Copy link
Contributor Author

Screenshot 2025-12-09 at 5 52 20 PM this?

@thisisharsh7
Copy link
Contributor Author

I run it from the platform directory earlier pnpm check:ci

@thisisharsh7
Copy link
Contributor Author

thisisharsh7 commented Dec 9, 2025

Screenshot 2025-12-09 at 5 30 05 PM @joeyorlando please review it again when get a chance thanks!

it looks like there's 1 last failure under platform/frontend.

FWIW if you run pnpm check:ci from the platform directory, it will run the turbo command in platform/package.json (which will run that command for all of the pnpm workspaces under platform); alternatively just run it from a subdirectory of platform like:

cd platform/frontend
pnpm ci:check

it works now I guess you might have a typo here pnpm check:ci

@thisisharsh7
Copy link
Contributor Author

Screenshot 2025-12-09 at 5 59 26 PM

@thisisharsh7
Copy link
Contributor Author

can we make some precommit check like when user commit, it will check all these lints error there only ?

@joeyorlando
Copy link
Contributor

yes we plan to add husky/lint-staged in the near-future 🙂

@thisisharsh7
Copy link
Contributor Author

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
Copy link

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.

Fix in Cursor Fix in Web

@joeyorlando joeyorlando merged commit 68c5364 into archestra-ai:main Dec 9, 2025
18 of 31 checks passed
joeyorlando pushed a commit that referenced this pull request Dec 9, 2025
🤖 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>
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