Skip to content

UI consolidation: always-editable cards, shared card parts, Settings list with upgrades panel - #68

Merged
ToothyDev merged 6 commits into
mainfrom
claude/60-ui-consolidation
Oct 15, 2026
Merged

ToothyDev merged 6 commits into
mainfrom
claude/60-ui-consolidation

Conversation

@ToothyDev

@ToothyDev ToothyDev commented Oct 15, 2026 •

Copy link
Copy Markdown
Owner

What this does

Cards on every tab are now always editable and built from shared parts, and Settings is now a property list with a panel for the picked property's upgrades. Properties come in order of how often they're used.

  • Always-editable cards (Businesses, Safes):
    • There is no Edit button and no separate edit view. You can click any value to type it, and drag any bar. The drag handle shows only while the pointer is over the card.
    • At 0% or 100% the handle can be grabbed anywhere on it, including the half that sticks out past the bar.
    • Units, "of $cap" and goods values stay next to the editable values.
    • The Full, Raided and popularity Maxed buttons are gone. Sold, Supplies bought, Collected and the popularity boosts stay.
  • Gear in the title bar: a small settings button at the right end of each card's title bar. Cards no longer have a footer.
  • Undo where you pressed: "Boost started. [Undo]" shows for 15 seconds under the Acid Lab boost. The Timers cards and the Overview use the same shared UndoStatus. Undo puts back what the press replaced.
  • Money Fronts: each front's bar has its three actions right under it, as small buttons in one row: +10% Laundering, +10% Faber, Legal job.
  • Order by use (USE_ORDER in data/properties.ts): Settings and the default card order on each tab.
    • Acid Lab, Bunker and Nightclub first.
    • Then the MC businesses by money per hour at full upgrades: Cocaine, Meth, Cash, Weed, Documents.
    • Then the fronts and the safes. The Mansion and the Bail Enforcement Office are last.
    • Card orders you've already saved stay as they are.
  • Shared parts:
    • Hint: two sizes.
    • Note: warn, quiet and good tones.
    • MarkOwned: the "Mark what you own in Settings" line. The link opens Settings on the right property.
    • Button small.
    • --card-width: one width for every card grid.
    • One checkbox style, in app.css.
  • Settings:
    • Every property gets a row that keeps its height, with a gear in front of the name, a one-line upgrade summary, and Owned/Running buttons that keep their width and place.
    • The picked property's upgrades open in a panel next to the list, level with the row, with an arrow pointing at it. On phones they open under the row.
    • A property you don't own shows its upgrades greyed out.
    • The other settings form a narrow column on the right.
  • Decision 029 (amends 010). upgradeSummary moved to lib/properties.ts. Tests cover both and check that USE_ORDER names every property.

Follow-up: #69 (entering crates for nightclub goods that no technician makes).

Closes #60

How to check it

  • Businesses: hover a card and the drag handles appear. Drag a handle that sits at 0% from its outer edge. Start the Acid Lab boost, then press Undo.
  • Safes: the Money Fronts heat rows each take three lines. Collected sits next to the safe value. The Nightclub popularity has only its boost buttons.
  • Settings: the list starts with Acid Lab, Bunker, Nightclub and ends with Mansion, Bail Enforcement Office. Mark properties owned and nothing moves. Click a row and its upgrades show next to it.
  • Timers → Mansion card (Mansion not owned) → the Settings link opens on the Mansion.

Checklist

  • npm run verify passes
  • Game data added or changed here has a source (the order is derived from the sourced rates; only the unused Raided event and raids flag were removed)
  • README / CLAUDE.md updated if usage or workflow changed

🤖 Generated with Claude Code

…se each other

Hint and Note replace the hint and note styles copied per card; MarkOwned
the hand-written "Mark what you own in Settings" lines; CardFooter the
Edit/gear footers. One mode open per card. The Acid Lab boost's Undo moves
to the footer. A temporary switch on Settings tries the cards always
editable instead of behind Edit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 15, 2026 •

Copy link
Copy Markdown

Deploying lsos with  Cloudflare Pages  Cloudflare Pages

Latest commit: b4e54f9
Status: ✅  Deploy successful!
Preview URL: https://5784371c.lsos-2qs.pages.dev
Branch Preview URL: https://claude-60-ui-consolidation.lsos-2qs.pages.dev

View logs

… beside it

Rows keep their height and button slots whatever is owned; upgrades of a
property not owned show greyed. Links to #/settings/<id> open that
property. Other settings move to a narrow column on wide screens.
Decision 029.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ess was

The separate edit view, Edit button and card footer are gone: values can
always be typed in and bars dragged, the drag handle shows over the card.
No Full or Raided presets. Money Fronts heat actions as one row of small
buttons. Settings rows get a gear, the upgrades panel sits level with the
picked row. Decision 029 rewritten; handoff removed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ToothyDev ToothyDev changed the title UI consolidation: shared hints, notes, card footer, empty states; Settings rework UI consolidation: always-editable cards, shared card parts, Settings list with upgrades panel Oct 15, 2026
@ToothyDev
ToothyDev marked this pull request as ready for review October 15, 2026 20:28
…eckbox style

USE_ORDER sorts Settings and the default card order: Acid Lab, Bunker,
Nightclub, MC businesses by money per hour, fronts and safes, then the
rest with the Mansion and Bail Office last. The slider's hit area reaches
half a handle past each end.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Same idea as the removed Full buttons: drag the bar or type the value.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ToothyDev
ToothyDev merged commit b9e8831 into main Oct 15, 2026
4 checks passed
@ToothyDev
ToothyDev deleted the claude/60-ui-consolidation branch October 15, 2026 20:49
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.

UI consolidation and improvement

2 participants