diff --git a/CLAUDE.md b/CLAUDE.md index 42a832a..b79521a 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -32,6 +32,7 @@ Svelte 5 + TypeScript + Vite. Public repository. | Real-time timers: Lucky Wheel, Mansion boost | `data/timers.ts`, `lib/timers.ts` (022) | | Weekly events and the Weekly tab | `data/weekly.ts`, `lib/weekly.ts` (decision 027) | | Overview tab, next events, notifications | `lib/events.ts`, `lib/overview.ts` (dec. 023) | +| Hiding cards from the Overview and alerts | `visibleEvents` in `lib/overview.ts` (dec. 028) | | Theme tokens | `src/app.css` (decision 009) | | Link previews (Open Graph), preview image | `index.html`, `scripts/og-image.html` | | CI, templates | `.github/` | diff --git a/README.md b/README.md index 6112fec..4aea002 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,8 @@ emptying. for your upgrades, LSOS uses a best estimate and labels those numbers "(est.)". - **Overview for a second screen.** One page lists what is ready now and what comes next across every tracker, soonest first, with the money waiting. Mark things done right there (sold, - collected, spun), and get optional alerts as pop-ups or browser notifications. + collected, spun), hide what you don't care about, and get optional alerts as pop-ups or + browser notifications. - **Resync anytime.** When an estimate drifts from what the game shows, click the value and type the real one. - **Weekly events** (bonuses, discounts, rotations) come from a data file in this repo that's updated diff --git a/docs/decisions/028-hide-from-overview.md b/docs/decisions/028-hide-from-overview.md new file mode 100644 index 0000000..9792ffa --- /dev/null +++ b/docs/decisions/028-hide-from-overview.md @@ -0,0 +1,23 @@ +# 028: Hiding cards from the Overview and the alerts + +2026-10-15, issue #62. Builds on decision 023. + +## Decision + +- **Per card, not per item.** What is hidden is an event's `focus`, the card it links to: + `car-wash` hides the Money Fronts safe and its heat together, `nightclub` its safe and its + goods. The Lucky Wheel (`lucky-wheel`) and the Mansion boost (`mansion`) hide the same way, + though they belong to no business card. Saved as `overviewHidden` (state version 14). +- **Where:** a small Hide control on each Ready now and Coming up item, with the same Undo as the + quick actions; Settings lists what is hidden ("Hidden from Overview"), each with Show. Not on + the cards' gear menus: the timers have none, and one place to undo is enough. +- **Only the Overview and the alerts leave it out.** The card stays owned and tracked on its + own tab, and its money still counts in the summary strip: the totals say what you have. +- **No alert on showing again.** Hidden items still count as seen by the alerts, so an item + already near or due when it is shown again does not pop up; one that comes near later does. + +## Alternatives + +- Per item (`heat:car-wash` apart from `safe:car-wash`): finer, but a longer list to manage, + and no case asked for it yet. +- Leaving hidden cards out of the totals: the strip would then understate the money waiting. diff --git a/docs/decisions/README.md b/docs/decisions/README.md index a1c0684..5b1706a 100644 --- a/docs/decisions/README.md +++ b/docs/decisions/README.md @@ -38,3 +38,4 @@ free number, add one line below. **Replacing one:** write a new decision, then m - [025](025-bunker-staff.md) Bunker staff on Manufacturing, Both or Research: a stock share (Both 0.5, Research 0) on the sourced rates, supplies used as fast on every option (est.), research progress not tracked - [026](026-movable-cards-everywhere.md) Movable cards on Businesses, Safes and Timers (`ui/CardGrid`): picked up by the title bar; swap by the dragged card's middle, 10% in; orders saved per tab - [027](027-weekly-contents.md) Weekly events: typed `src/data/weekly.ts` (no JSON, no fetch), checked by a test; Weekly tab only (no news bar); out of date: warning over the dimmed old week; contents: multipliers, Weekly Challenge, rotations, discounts, gifts, a less prominent "Also running" list; no GTA+, no daily map-bound items; explicit UTC start/end (Thursday 2:00 AM US Pacific); source gta.wiki weekly page; routine Thursday ~16:00 UTC +- [028](028-hide-from-overview.md) Hide from Overview: per card (event `focus`, timers too), Hide on each item with undo, Settings lists them with Show; still tracked and counted in the totals; showing again brings no alert diff --git a/src/App.svelte b/src/App.svelte index 2cadefb..dffdd9a 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -16,7 +16,14 @@ import { SAFES } from './data/safes' import { WEEK } from './data/weekly' import { clocks } from './lib/clock.svelte' - import { dismissPopup, overview, quick, undoQuick } from './lib/overview.svelte' + import { + dismissPopup, + hideFromOverview, + overview, + quick, + showOnOverview, + undoQuick, + } from './lib/overview.svelte' import './lib/production.svelte' import './lib/safes.svelte' import { setProperties, store } from './lib/store.svelte' @@ -82,6 +89,8 @@ paused={clocks.play.paused} onquick={quick} onundo={undoQuick} + onhide={hideFromOverview} + onshow={showOnOverview} /> {:else if active === 'businesses'}