Skip to content

Support multi-Pokémon and unannounced events, honour written years - #3

Merged
00xJS merged 1 commit into
masterfrom
feat/multi-pokemon-events
Aug 4, 2026
Merged

00xJS merged 1 commit into
masterfrom
feat/multi-pokemon-events

Conversation

@00xJS

@00xJS 00xJS commented Aug 4, 2026

Copy link
Copy Markdown
Owner

Three problems real schedules hit that the bulk importer couldn't express.

Written years were ignored — and overridden

July 4, 2026 pasted in August 2026 silently became 2027-07-04. The year in the text was never read; only month and day were, then a rollover heuristic pushed any past month into next year.

An explicit year now always wins, so a past date is reported as past rather than quietly moved. A year is still implied when none is written, rolling forward only when that month has already been and gone — so a January schedule pasted in December still lands correctly.

Unannounced events rendered broken

Some Raid Hours land every Wednesday before a boss is announced. A bare Raid Hour row produced:

Raid Hour Raid Hour
🎈 Join us at Sundance Park on August 12th for the Raid Hour Raid Hour from 6-7PM

💯 -  / WB - 

Duplicated title, empty CP line — both shipping into public posts. Now:

Raid Hour
🎈 Join us at Sundance Park on August 12th for the Raid Hour from 6-7PM

The CP line appears only once there's a CP to show.

Multi-Pokémon events

Events regularly feature several — Articuno, Zapdos & Moltres Raid Hour, Magby and Smoochum Hatch Day. Names listed with commas, &, and or or are now split for CP and artwork lookups, while the title keeps its original wording. That last part matters: a themed name that isn't really a list (Fire and Ice Hatch Day) still reads correctly and simply resolves nothing, rather than being rewritten.

Each featured Pokémon gets a labelled CP line; a single one keeps the existing unlabelled format, so nothing about current output changes.

Articuno, Zapdos & Moltres Raid Hour
🎈 Join us at Sundance Park on September 2nd for the Articuno, Zapdos & Moltres Raid Hour from 6-7PM 💃☀️🕺

💯 Articuno - 1743 / WB - 2179
💯 Zapdos - 2015 / WB - 2519
💯 Moltres - 1980 / WB - 2475

Artwork stacks into one square tile — two side by side, three as a pyramid, four in a grid — so cards keep their shape however many are featured. The no-artwork placeholder was resized to match, since it was 96px against the tiles' 108px.

Verification

68 tests (up from 62), including regressions for each of the three. Exercised in a browser across all five shapes: three-Pokémon pyramid, two side by side, single, unannounced, and a themed non-list name.

🤖 Generated with Claude Code

Three problems surfaced by real schedules that the bulk importer could not
express.

A written year was ignored and then overridden: "July 4, 2026" pasted in
August 2026 silently became 2027-07-04. An explicit year now always wins, so
a past date is reported as past instead of quietly moving a year. A year is
still implied when none is written, rolling forward only if that month has
already been and gone.

An unannounced Raid Hour rendered "Raid Hour Raid Hour" with an empty
"CP -  / WB - " line, both of which shipped into public posts. An event with
no Pokemon now names just the event type, and the CP line appears only once
there is a CP to show.

Events regularly feature several Pokemon -- "Articuno, Zapdos & Moltres Raid
Hour", "Magby and Smoochum Hatch Day". Names listed with commas, &, and or or
are now split for CP and artwork lookups while the title keeps its original
wording, so a themed name that is not really a list ("Fire and Ice Hatch Day")
still reads correctly and simply resolves nothing. Each featured Pokemon gets
its own labelled CP line; a single one keeps the existing unlabelled format.
Artwork stacks into one square tile, three arranging as a pyramid.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@netlify

netlify Bot commented Aug 4, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for sundance-dgen ready!

Name Link
🔨 Latest commit 9ea07c6
🔍 Latest deploy log https://app.netlify.com/projects/sundance-dgen/deploys/6a714eebe4664e0008b282ac
😎 Deploy Preview https://deploy-preview-3--sundance-dgen.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@00xJS
00xJS merged commit cf95d9b into master Aug 4, 2026
5 checks passed
@00xJS
00xJS deleted the feat/multi-pokemon-events branch August 4, 2026 02:31
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.

1 participant