Skip to content

Weekly tab from a typed weekly data file - #66

Merged
ToothyDev merged 4 commits into
mainfrom
claude/16-weekly-events
Oct 15, 2026
Merged

ToothyDev merged 4 commits into
mainfrom
claude/16-weekly-events

Conversation

@ToothyDev

@ToothyDev ToothyDev commented Oct 15, 2026 •

Copy link
Copy Markdown
Owner

What this does

Shows this week's GTA Online events on the Weekly tab, copied from the gta.wiki weekly event page (decision 027).

  • Data: one typed file, src/data/weekly.ts (WEEK, typed by Week in src/lib/weekly.ts). Most entries are plain strings as the wiki words them. Only what the tab sorts or groups by has fields: a multiplier's factor and optional property id, and a discount's kind and percent. There is no JSON, fetch or runtime validator: the type checker plus a unit test (weekProblems: dates in order, sane numbers, known property ids, gta.wiki source) make npm run verify reject a bad week. This replaces the public/weekly.json the issue named.
  • Weekly tab:
    • A header with the week's dates, a status pill (live with time left, or out of date) and links to gta.wiki and the Newswire.
    • Bonus payouts as factor badges, next to the Weekly Challenge and gifts. Bonuses paid through a property you own come first, tagged "Owned".
    • The rotation (podium, Prize Ride, Salvage Yard, FIB File, showrooms, Gun Van stock, races and time trials) as labelled blocks of chips.
    • Discounts grouped by vehicles, properties and Gun Van, then by percentage.
    • A collapsed "Also running" list for seasonal activities with no bonus this week.
  • Out of date: once the week's end has passed, the pill says "Out of date", a warning says the events are last week's, and the old week stays readable below it, greyed out.
  • No Breaking News bar: the issue asked for one. It was built, then taken out again because it was more distracting than helpful.
  • Left out: GTA+ everything; daily, map-bound items (Gun Van location, daily Junk Energy and RC Time Trials).
  • Week bounds: explicit UTC start/end, written as Thursday 2:00 AM US Pacific (09:00 UTC in US daylight saving time, 10:00 UTC otherwise).
  • First week: Halloween 2026 (Week 3), 15 to 22 October. The guide for writing a week by hand (for the Weekly update routine: open a PR with this week's events #17 routine too) is in docs/weekly-update.md.

Closes #16

How to check it

  • Weekly tab: header with a "Live" pill, the four panels, and the "Also running" toggle at the bottom.
  • Settings: mark the Bail Enforcement Office as owned. "Standard and Most Wanted Bounties" moves to the top of Bonus payouts, tagged "Owned".
  • Narrow the window: the panels stack into one column.

Checklist

  • npm run verify passes
  • Game data added or changed here has a source (see docs/decisions/004-game-data.md)
  • README / CLAUDE.md updated if usage or workflow changed

🤖 Generated with Claude Code

Decision 027: what public/weekly.json holds (multipliers, Weekly Challenge,
rotations, discounts, gifts), what it leaves out (GTA+, daily map-bound
items), explicit UTC start/end per week, gta.wiki as the source and the
routine's run time. Handoff for building the schema, tab and news bar.

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: 1525be5
Status: ✅  Deploy successful!
Preview URL: https://0cc38c71.lsos-2qs.pages.dev
Branch Preview URL: https://claude-16-weekly-events.lsos-2qs.pages.dev

View logs

…#16)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The week lives in src/data/weekly.ts, typed by Week in lib/weekly.ts and
checked by a unit test (weekProblems), so verify rejects a bad week. The
Weekly tab shows bonus payouts (owned first), challenge and gifts, the
rotation, discounts and a collapsed "Also running" list; the Breaking News
bar scrolls the bonuses and gifts on every tab and says when the week is
out of date. First week: Halloween 2026 (Week 3) from gta.wiki. Guide for
writing a week by hand in docs/weekly-update.md; handoff removed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ToothyDev ToothyDev changed the title Weekly events: data file, Weekly tab and Breaking News bar Weekly tab and Breaking News bar from a typed weekly data file Oct 15, 2026
@ToothyDev
ToothyDev marked this pull request as ready for review October 15, 2026 16:39
The ticker on every tab was more distracting than helpful; the weekly
events now live on the Weekly tab only. The tab gets a header with dates,
a status pill (live with time left, or out of date) and the sources;
bonus payouts as factor badges next to the challenge and gifts; rotation
and discounts as labelled blocks of chips, discounts grouped by kind and
percentage. An ended week stays readable, greyed under a warning.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ToothyDev ToothyDev changed the title Weekly tab and Breaking News bar from a typed weekly data file Weekly tab from a typed weekly data file Oct 15, 2026
@ToothyDev
ToothyDev merged commit 9bd4e91 into main Oct 15, 2026
4 checks passed
@ToothyDev
ToothyDev deleted the claude/16-weekly-events branch October 15, 2026 18:09
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.

Weekly events: data file, Weekly tab and Breaking News bar

2 participants