fix(web): make budget indicator non-clickable info and style workspace dir as button #79

Merged
salmaelsoly merged 1 commit from development_budget_info_workspace_button into development 2026-06-03 11:17:41 +00:00
Member

Summary

Top status bar fixes per issue #77: the budget/cost indicator is now read-only informational text (no longer a button that opens Settings), and the workspace/target directory control is now a proper styled button consistent with the other nav buttons.

Closes #77

Changes

  • crates/hero_shrimp_web/ui/src/components/CostBadge.tsx: converted the root <button> to a non-interactive <div>; removed the Settings onClick and the unused setSettingsOpen import; dropped the .pill button styling for a plain info container; trimmed "click to edit budget" from the tooltip; updated the header comment. Spend/cap-percent/fuel-tank display unchanged.
  • crates/hero_shrimp_web/ui/src/components/TopBar.tsx: restyled the workspace/target control from bare clickable text to the shared .pill button style and relocated it alongside the primary nav pills; kept the setWorkspacePickerOpen click handler, folder icon, label, and sub-label.

Test Results

npm run build (vite) passes with no errors (99 modules, exit 0). The setSettingsOpen removal introduces no unused-import error; TopBar.tsx still uses it for the Settings gear. No backend/RPC changes.

image

## Summary Top status bar fixes per issue #77: the budget/cost indicator is now read-only informational text (no longer a button that opens Settings), and the workspace/target directory control is now a proper styled button consistent with the other nav buttons. ## Related Issue Closes https://forge.ourworld.tf/lhumina_code/hero_shrimp/issues/77 ## Changes - `crates/hero_shrimp_web/ui/src/components/CostBadge.tsx`: converted the root `<button>` to a non-interactive `<div>`; removed the Settings `onClick` and the unused `setSettingsOpen` import; dropped the `.pill` button styling for a plain info container; trimmed "click to edit budget" from the tooltip; updated the header comment. Spend/cap-percent/fuel-tank display unchanged. - `crates/hero_shrimp_web/ui/src/components/TopBar.tsx`: restyled the workspace/target control from bare clickable text to the shared `.pill` button style and relocated it alongside the primary nav pills; kept the `setWorkspacePickerOpen` click handler, folder icon, label, and sub-label. ## Test Results `npm run build` (vite) passes with no errors (99 modules, exit 0). The `setSettingsOpen` removal introduces no unused-import error; `TopBar.tsx` still uses it for the Settings gear. No backend/RPC changes. ![image](/attachments/b992ccac-51c2-49a9-b8e9-31ec394d370c)
7.9 KiB
fix(web): make budget indicator non-clickable info and style workspace dir as button
Some checks failed
Verify / verify (push) Has been cancelled
Verify / verify (pull_request) Has been cancelled
26b3fc2271
#77
fix(web): align budget badge inline with the context gauge
Some checks failed
Verify / verify (pull_request) Failing after 16m50s
Verify / verify (push) Failing after 16m51s
752156775d
#77
fix(web): fill the budget fuel bar from the right to mirror the context gauge
Some checks failed
Verify / verify (push) Has been cancelled
Verify / verify (pull_request) Has been cancelled
93016b72a4
#77
fix(web): place budget fuel bar before the value to match the context gauge
Some checks are pending
Verify / verify (push) Waiting to run
Verify / verify (pull_request) Waiting to run
2af2938070
#77
salmaelsoly force-pushed development_budget_info_workspace_button from 2af2938070
Some checks are pending
Verify / verify (push) Waiting to run
Verify / verify (pull_request) Waiting to run
to 13f76453bf
All checks were successful
Verify / verify (pull_request) Successful in 35m13s
Verify / verify (push) Successful in 45m9s
2026-06-03 09:34:49 +00:00
Compare
salmaelsoly force-pushed development_budget_info_workspace_button from 13f76453bf
All checks were successful
Verify / verify (pull_request) Successful in 35m13s
Verify / verify (push) Successful in 45m9s
to bc28409900
Some checks failed
Verify / verify (push) Failing after 10s
Verify / verify (pull_request) Failing after 11s
2026-06-03 11:17:14 +00:00
Compare
salmaelsoly merged commit 9e8299e3f0 into development 2026-06-03 11:17:40 +00:00
salmaelsoly deleted branch development_budget_info_workspace_button 2026-06-03 11:18:05 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
lhumina_code/hero_shrimp!79
No description provided.