dex/src/store/ui.js
chris a70f3c9976 Team: chip-style tool links; Progress: lead with games you've played
The Natures / Type chart / Compare / Breeding links under the Team header
were plain dot-separated text. Make them a row of pill chips with small
accent icon badges (.toollinks / .toollink).

Progress by game showed a caught total for all 32 version groups the
moment anything was marked, since the tracking model is one unified
caught record. Add a "played games" set (pdx.playedGames, vg keys),
auto-marked when a game is selected or a save is imported (savedex now
returns candidate versionGroups per generation). #/progress leads with a
"Your games" section and tucks the rest behind a "Show all other games"
toggle (persisted). Included in JSON export/import.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017Ve7HLspzeG2xDPtJQ8vmu
2026-09-10 10:34:20 -04:00

39 lines
788 B
JavaScript

import { createStore } from './createStore.js';
/**
* Small view-state that should survive reloads but isn't a user "setting":
* e.g. which detail-page tab you last looked at.
*/
export const ui = createStore('pdx.ui', {
detailTab: 'about',
searchQuery: '',
searchScroll: 0,
searchTab: 'pokemon',
feedScroll: 0,
sort: 'dex',
sortDesc: false,
filter: 'all',
filterType: '',
filterGen: 0,
filterAbility: 0,
filterEggGroup: '',
filterMinBst: 0,
filterFullyEvolved: false,
recent: [],
compareIds: [],
toolsOpen: false,
teamMode: 'coverage',
breedMode: 'groups',
breedGroup: '',
breedTarget: 0,
mvType: '',
mvClass: '',
mvSort: 'name',
mvTm: false,
mvHm: false,
itCat: '',
itSort: 'name',
abSort: 'name',
progShowAll: false,
});