Repository navigation
Resync tracked values by hand: EditableValue, business bars with Sold/Raided/supplies bought, undo - #26
Merged
Conversation
Click a value, type what the game shows (percent, $ or h:mm), confirm. Trackers pass one-click presets such as Sold or Full and store the value as of now. Undo takes back the last edit and keeps progress counted since. Decision 010. Closes #4 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Deploying lsos with
|
| Latest commit: |
c7df72a
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://47a0aa7e.lsos-2qs.pages.dev |
| Branch Preview URL: | https://claude-4-resync-values.lsos-2qs.pages.dev |
Sold empties stock, a successful police raid empties stock and supplies (sourced in src/data/business-events.ts). BusinessBars shows stock and optional supplies as editable values with their meters and a single undo for the business. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Replaces Full on the supplies bar. The bars keep the delivery time; settleBars fills supplies to 100% once it is due. Real time until the game's clock for it is confirmed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this does
Adds the resync building blocks every tracker will use (decision 010):
EditableValue(src/components/ui/, logic insrc/lib/resync.ts): click a value, type what the game shows, confirm. Units: percent (stock/supplies), money ($120,000,120k,1.2m) and time left (h:mmor plain minutes). Trackers pass one-click presets and store the corrected value as of now with their own clock. Undo takes back the last edit and keeps progress counted since.BusinessBars: stock and, where the business has one, supplies, each editable with its meter. Buttons: Full (stock), Sold (empties stock), Raided (a successful police raid empties stock and supplies and cancels supplies on their way; hidden for stock-only businesses) and Supplies bought, which starts a 10-minute delivery with a countdown and fills supplies to 100% when it arrives. One Undo covers the last change to the business, including cancelling a delivery.src/data/business-events.tswith sources. The delivery wait runs on real time for now; which clock the game uses is not confirmed yet.CLAUDE.md: gta.wiki is a trusted source for game facts.No business trackers exist yet; they plug these in.
Closes #4
How to check it
npm run dev, open#/kit:75→ Enter;abcshows what it expects; Escape cancels.120k; set the cooldown to0:20, wait a minute, Undo lands where the old estimate would be now.Checklist
npm run verifypasses🤖 Generated with Claude Code