Skip to content

Owned properties and upgrades: Settings panel, Businesses tab with gear - #27

Merged
ToothyDev merged 1 commit into
mainfrom
claude/5-owned-properties
Oct 14, 2026
Merged

ToothyDev merged 1 commit into
mainfrom
claude/5-owned-properties

Conversation

@ToothyDev

Copy link
Copy Markdown
Owner

What this does

Adds the mechanism for telling LSOS which properties you own and which upgrades you bought. A property catalog lives in src/data/properties.ts, with two kinds of upgrade: toggle (e.g. equipment/staff) and choice (e.g. a nightclub technician's assignment). The catalog starts empty, because each tracker issue adds its own sourced entry. Owned settings are saved in state version 3, which includes a migration from v2 and a test with a stored sample. Settings gets a Properties panel. The Businesses tab shows only owned properties, each with a gear that opens its settings in place. Design is in decision 011.

Closes #5

How to check it

  • npm run dev, open #/kit: under "Properties", tick/untick owned, toggle the upgrade, pick a worker option. "Businesses tab" below lists only owned samples; the gear opens the same settings, and when it's closed the panel shows a summary of the upgrades.
  • Real app: Settings shows "No properties yet", Businesses shows "No businesses are tracked yet" (catalog is empty until trackers land).
  • Reload: choices persist. Export/import includes them.

Checklist

  • npm run verify passes
  • Game data added or changed here has a source (none added: catalog is empty, kit uses made-up samples)
  • README / CLAUDE.md updated if usage or workflow changed (CLAUDE.md map line)

🤖 Generated with Claude Code


Generated by Claude Code

…l, Businesses gear

- src/data/properties.ts: property catalog with toggle and choice upgrades (empty; trackers add entries)
- src/lib/properties.ts: owned/upgrade logic and parsing, with tests
- State version 3 adds `properties`, migrated from version 2 with a stored sample
- Settings lists every property; the Businesses tab shows owned ones with a gear to edit them
- Kit previews both with sample entries; decision 011

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

Copy link
Copy Markdown

Deploying lsos with  Cloudflare Pages  Cloudflare Pages

Latest commit: c2910f9
Status: ✅  Deploy successful!
Preview URL: https://3962da04.lsos-2qs.pages.dev
Branch Preview URL: https://claude-5-owned-properties.lsos-2qs.pages.dev

View logs

@ToothyDev
ToothyDev merged commit 2dc5c10 into main Oct 14, 2026
4 checks passed
@ToothyDev
ToothyDev deleted the claude/5-owned-properties branch October 14, 2026 16:36
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.

Settings: owned properties and upgrades

2 participants