Skip to content

feat: event eggs, forms and fossil achievements, Stats page, whole Pokédex, one difficulty - #72

Merged
KillianHzr merged 31 commits into
releasefrom
feat/legendary-achievements
Oct 27, 2026
Merged

KillianHzr merged 31 commits into
releasefrom
feat/legendary-achievements

Conversation

@KillianHzr

@KillianHzr KillianHzr commented Oct 26, 2026 •

Copy link
Copy Markdown
Owner

Summary

One release's worth of player feedback, gathered in one PR so that release reaches main in a single update. It also merges upstream PokeTokenBar's latest main (4 commits).

Achievements

  • Legendary artifacts: nine new Artifacts for the legendary and mythical Pokémon no achievement counted (Lunar Wing, Meteorite, Oak's Letter, Sea Incense, Shock Drive, Z-Ring, Scroll of Darkness, Relic Vase, Legend Plate). Kyurem joins the DNA Splicers; Keldeo counts for the Liberty Pass, Heatran with Groudon for the Magma Stone and Pecharunt for the Teal Mask; the Sea Incense asks for Manaphy and Kyogre. No achievement but Arceus's asks for a single Pokémon, and a test now holds that rule.
  • Forms tab: every form of one species graduated earns a reward: Rotom (Rotom Catalog, a Rare Candy per Pokémon hatched in a form its line never had), Minior's 7 cores, Oricorio, Castform, Sawsbuck, Florges, Furfrou, Vivillon, Alcremie (63) and Unown (28), for Rare Candies and eggs.
  • Excavation (Stones tab): every 4 Rock-type species graduated dig up a Fossil Egg, 15 digs for the 15 fossil lines. A Fossil Egg, of amber with an Omanyte fossil modeled in 3D inside, hatches a fossil line not graduated yet, at random. A fossil line graduated another way counts as dug, with nothing to claim, so the eggs to claim match the lines missing. Fossil lines hatch from Fossil Eggs only: no other egg (plain, rarity, stone, event) brings one any more. The card shows the 15 fossil lines, those graduated in color.
  • Light Ball: it sped up Pikachu's line, which nobody raises once every costume is theirs; it now gives 2 Rare Eggs and 5 Rare Candies, and a save holding it trades it for them once.

Eggs

  • Event eggs: Christmas, New Year, Valentine's Day, Pokémon Day, Easter, Halloween, each season's start and the anniversary of the first catch each bring an egg drawn for the occasion, offered by a banner during the event and two weeks after, once a year. They hatch the event's Pokémon, shiny for most; a season's egg hatches Deerling in the season's form one time in three, else a Pokémon of the season's types.
  • Birthday egg: once a year, even if the date changes after a gift; claimable from the birthday up to three months after, every year.

Balance

  • One difficulty: the growth and Shop difficulty settings are gone; everyone plays at 10%. Progress made at another difficulty keeps its fraction of the current egg or stage.
  • Candies as you go: a Rare Candy per Pro 5-hour window used, paid as the window fills; a Max xN plan earns N times as much, without having to max out the limit. The same for the weekly window.

Home, menus and new pages

  • 100% duplicate badge on Home: sending the Pokémon off loses nothing the Pokédex does not hold. A Pichu that would still bring a missing Pikachu costume is not a duplicate (on Home or in the catch log).
  • Menu bar: the tokens left to the next stage (↑) and the Shop's tokens (¤) by default, each optional in Settings; today's tokens and cost stay available there.
  • Stats page: Home's chart button gathers this month day by day (moved off Home), the usage recap with a table of its days (tokens, Pokémon graduated) and the collection in numbers.
  • Whole Pokédex: every species region by region, as TokenDex shows it, with each region's progress and rarities; All, Caught (the page-by-page grid) and Missing. Five cells to a row, each with its rarity's dot before its number and a sparkle on shinies.
  • Achievements: hovering a Pokémon a goal asks for shows its name in the player's language (PokéAPI's pokemon-species names, cached like the other names).
  • What's New groups its changes by update (new features, improvements, fixes) behind a newspaper icon.
  • Ideas: the light bulb button sends an idea or a bug as an issue of this repository, posted by the GitHub CLI when it is signed in, else opened prefilled in the browser. The app holds no token.

Fixes

  • CPU: a running Claude Code session's transcript was parsed whole at every refresh (sessions of several hundred MB kept a core at 100%). Upstream's incremental parsing (fix: parse Claude session logs incrementally instead of re-reading whole files chattymin/PokeTokenBar#338) replaces this branch's own fix in the sync; the 1 MB chunked read is kept, so the first read of a large session never holds the file in memory.
  • Long badges wrap instead of breaking inside their capsule; long form names and Pokémon names show whole on Pokédex pages; green and orange text and tinted badges reach 4.5:1 on light and dark cards.

Upstream sync: origin/main merged (Cursor credential refresh chattymin#455, incremental Claude parsing chattymin#338, OCR fixture chattymin#456; the recap label chattymin#432 is left out, this fork's Home keeps its round chart button). Re-checked before publishing: nothing newer upstream.

What's New has an entry for every visible change, in the 8 languages, under 2026-10-27: if release reaches main on another day, move that day's date and its ids to it before merging (none of them shipped yet). The READMEs (en, ko, ja) and docs/reference/defect-log.md are updated.

Type of change

  • Bug fix
  • New feature
  • Refactor / cleanup
  • Documentation
  • Other:

UI changes

Sample-data renders of the production UI (dark mode unless stated), with drawn placeholder sprites: Pokémon and item sprites cannot be committed. The menu bar is an illustration. Before = main (4a016b3), after = this branch.

Menu bar (Illustration / mockup)

Before After
Before: today's tokens and cost After: tokens to the next stage and Shop tokens

Home: event egg banner and the New badge

Before After
Before: Home After: Halloween egg banner, NEW badge

Catch log: long badges wrap

Before After
Before: NOUVELLE FORME broken in its capsule After: badges on a second line

Pokédex page: long form names

Before After
Before: Vivillon's patterns cut After: whole names, four columns

Pokédex: every species by region

Before After
Before: the caught species grid After: All, region by region

Stats page (replaces the usage recap screen and Home's daily chart)

Before After
Before: usage recap After: Stats page

What's New by update

Before After
Before: by day After: by update, grouped

Footer: ideas and What's New icons

Before After
Before: footer After: light bulb and newspaper

Ideas page (new screen, no previous one)

Before After
No previous screen After: ideas form

Settings: difficulty removed, menu bar items

Before After
Before: Settings After: Settings

Achievements: Artifacts, Forms tab, Excavation

Before After
Before: Artifacts After: the new Artifacts
No Forms tab before After: Forms tab
Before: Stones tab After: Excavation in the Stones tab

Bag: event eggs and the Fossil Egg (new items)

Before After
No such items before After: event eggs in the Bag
No such item before After: Fossil Egg in the Bag

Contrast in light mode

Before After
Before: pale green on light After: readable green

The new eggs' designs (sample render of the production designs: the 11 event eggs, then the Fossil Egg)

Before After
No previous designs After: event eggs
No previous design After: Fossil Egg, amber with an Omanyte inside

Checklist

  • swift build and swift test pass locally
  • PR title follows Conventional Commits and title/description are written in English
  • UI changes include embedded images (before/after for existing screens; image of a new screen), or there is no visible UI change
  • No copyrighted assets, secrets, or private tooling references are committed (see CONTRIBUTING)
  • Tests were added or updated for this change

chattymin and others added 6 commits October 24, 2026 14:22
…ole files (chattymin#338)

On an account with a large Claude Code history (~2GB of session logs in
the current month, single files up to 274MB) the cold scan pegged a core
for over a minute without finishing, and because the blob cache is keyed
on whole-file mtime+size, the active session file was re-parsed from byte
zero on every refresh.

Three changes:
- ISO8601Parser reuses one lock-guarded formatter pair instead of
  allocating an ISO8601DateFormatter per line (the dominant sampled cost).
- parseClaudeFile scans lines at the byte level via Data/FileHandle rather
  than materializing the file as a String and splitting into Substrings.
- Blob records a per-file byte offset; when a file has only grown, only
  the appended tail is parsed and merged. Same-size or shrunk files are
  re-read from the start. Older cache files without the key still load.

Measured on the history above: cold start ~15s then idle (was 60s+ and
never completed), steady-state refresh stays at 0% CPU.

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
Co-authored-by: Patrick.Park <pdm001125@naver.com>
* fix: parse Claude session logs incrementally instead of re-reading whole files

On an account with a large Claude Code history (~2GB of session logs in
the current month, single files up to 274MB) the cold scan pegged a core
for over a minute without finishing, and because the blob cache is keyed
on whole-file mtime+size, the active session file was re-parsed from byte
zero on every refresh.

Three changes:
- ISO8601Parser reuses one lock-guarded formatter pair instead of
  allocating an ISO8601DateFormatter per line (the dominant sampled cost).
- parseClaudeFile scans lines at the byte level via Data/FileHandle rather
  than materializing the file as a String and splitting into Substrings.
- Blob records a per-file byte offset; when a file has only grown, only
  the appended tail is parsed and merged. Same-size or shrunk files are
  re-read from the start. Older cache files without the key still load.

Measured on the history above: cold start ~15s then idle (was 60s+ and
never completed), steady-state refresh stays at 0% CPU.

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

* fix(home): label the usage recap control

The chart icon was the only way into week, month, and year recaps, and it did not look like a button. Show a short localized label inside a light capsule.

* fix(home): preserve period values beside the recap label

* test(home): match OCR languages to period fixtures

---------

Co-authored-by: notcadenwhitt-stack <notcadenwhitt@gmail.com>
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
Co-authored-by: Patrick.Park <pdm001125@naver.com>
Use an unambiguous word for the oldest catch while retaining exact OCR,
click, Back navigation and scroll reset assertions. Adapt the fixture
repair from c7c2d7a and record the CI failure in the defect log.

Co-authored-by: 서민수 <sms@bbros.kr>
Co-authored-by: Codex <noreply@openai.com>
… counted

Lunar Wing, Meteorite, Oak's Letter, Sea Incense, Shock Drive, Z-Ring, Scroll of Darkness, Relic Vase and
the Legend Plate, whose claim puts a Rare Egg and an Uncommon Egg in the Bag. Kyurem joins the DNA Splicers;
Keldeo, Heatran and Pecharunt count for the Liberty Pass, the Magma Stone and the Teal Mask.
… stopped

The cache parsed a whole transcript again at every change, and Claude Code appends to a running session every few
seconds: with sessions of several hundred MB open, the app kept a core at 100%. Transcripts now stream in chunks
and resume after the last line break when the bytes before it are unchanged.
@KillianHzr
KillianHzr changed the base branch from main to release October 26, 2026 14:05
…imits fill

The growth and Shop sliders are gone: every player plays at 10%, the value they had all chosen, and a save made at
another value keeps its stage's fraction once. Limit windows pay their Rare Candies as they fill, a Pro session one
and a bigger plan as many Pro plans as it holds, instead of only at 100%.
…in a year

A December gift claimed in January counts for the year before; moving the birthday to February then brought a second
egg weeks later. After a change, the next gift must be for a birthday year after the year the last one was claimed.
Nothing new through every branch of its line, in its form, nor a first shiny: sending it off loses nothing. Otherwise
a New badge lists what graduating it adds.
They replace today's tokens and cost, once for everyone; every item stays a choice in Settings.
… year

It waited a week, three months only for a save that never got one; a holiday made a player miss it.
Takes upstream's incremental Claude transcript parsing (chattymin#338) in place of the fork's own fix, keeping only its 1 MB
chunked read, plus the Cursor credential refresh (chattymin#455) and the OCR fixture fix (chattymin#456). The fork's Home keeps its
round recap button, so chattymin#432's labelled capsule is left out; its tests are adapted to the capitalized card titles.
Christmas, New Year, Valentine's Day, Pokémon Day, Easter, Halloween, each season's start and the anniversary of the
first catch bring an egg drawn for the occasion, offered by a banner during the event and two weeks after, once a
year. It hatches the event's Pokémon, shiny for most; a season's egg hatches Deerling in its form or its types.
… badges wrap

The 100% duplicate badge and the catch log's mark ignored Pikachu's costumes: a Pichu still brings one on becoming
Pikachu while one is missing. In the catch log and on Home, badges now go to a second line instead of breaking
inside their capsule.
Rotom, Minior, Oricorio, Castform, Sawsbuck, Florges, Furfrou, Vivillon, Alcremie and Unown each earn Rare Candies
or eggs once every form graduated; Rotom's Catalog stays and gives a candy for each Pokémon hatched in a form its line
never had.
Named forms take four columns and up to three lines instead of six cut on one ("Motif Conti..."); the rarity moves
above the name, as on Home, so a long name wraps instead of being cut.
…growth

Speeding up Pikachu's line helped nobody who already held every costume. Claiming it now puts 2 Rare Eggs and
5 Rare Candies in the Bag; a save holding the old item trades it for them once.
…aper icon

Each update lists its new features, improvements and fixes under their own headings; the sparkles, easy to take
for a shiny, become a newspaper. This branch's entries move to the update that ships them.
The light bulb button opens a short form; the issue is posted with the GitHub CLI when it is signed in, else
opened prefilled in the browser. The app holds no token.
…e collection

Home's chart button opens it: this month day by day (moved off Home), the recap of a week, a month or a year with
a table of its days, tokens and Pokémon graduated, and the collection in numbers.
All, Caught and Missing: every species by region with its progress and rarities, caught ones tinted by rarity,
seen ones faded, missing ones by their number with no sprite to download. Caught keeps the page-by-page grid.
…rk mode

Green and orange text use shades with at least 4.5:1 on either card; tinted badges darken on light and lighten on
dark; forms not caught and the Pokédex's missing species are less faint.
…mon graduated

Every 4 Rock-type species graduated give a Fossil Egg, 15 digs for the 15 fossil lines; a line already graduated
another way counts as dug. A Fossil Egg, of amber with an Omanyte fossil inside, hatches a missing fossil line at
random.
…kens

The Pokédex opens on every species now, and the menu bar shows the companion's numbers by default: tests of the
caught grid and of tokens or cost in the menu bar ask for them.
@KillianHzr KillianHzr changed the title feat(achievements): legendary artifacts, and growing Claude transcripts read from where they stopped feat: event eggs, forms and fossil achievements, Stats page, whole Pokédex, one difficulty Oct 27, 2026
@KillianHzr
KillianHzr marked this pull request as ready for review October 27, 2026 10:51
…per goal, clearer digs

No other egg brings a fossil line any more. The Sea Incense asks for Manaphy and Kyogre, and the Magma Stone's Heatran
for Groudon too: no achievement but Arceus's asks for one Pokémon. The excavation card shows the fossil lines and how
many count as dug, and only the digs that give an egg.
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.

4 participants