Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting
| export const useStatsLayoutStore = defineStore("statsLayout", () => { | ||
| // デフォルト定義: | ||
| // - 小カード(凡例付円グラフなど): 2 or 3 | ||
| // - 中カード(棒/集計): 4 | ||
| // - 大カード(長尺ライン/ランキング): 6 | ||
| const tiles = ref<TileConfig[]>([ | ||
| { id: "expense-ratio", span: 2, visible: true }, // 小 | ||
| { id: "monthly-expense", span: 4, visible: true }, // 中 | ||
| { id: "cumulative-rare-rate", span: 6, visible: true }, // 大 | ||
| { id: "app-pull-stats", span: 2, visible: true }, // 小~中 | ||
| { id: "rare-breakdown", span: 2, visible: true }, // 小 | ||
| { id: "rare-ranking", span: 2, visible: true }, // 小~中 | ||
| ]) | ||
| const tiles = ref<StatsTileConfig[]>(cloneTiles(DEFAULT_STATS_LAYOUT.tiles)) | ||
| const filters = ref<StatsLayoutFilters>( | ||
| cloneFilters(DEFAULT_STATS_LAYOUT.filters), | ||
| ) | ||
| const isInitialized = ref<boolean>(false) | ||
| const isSyncing = ref<boolean>(false) | ||
| const activeUserId = ref<number | null>(null) | ||
| const remoteMeta = ref<StatsLayoutRemoteMeta>( | ||
| cloneRemoteMeta(DEFAULT_REMOTE_META), |
There was a problem hiding this comment.
[P0] Define missing stats layout types
The store now references StatsLayoutFilters, StatsLayoutRemoteMeta, and a filters field on StatsLayoutState, but none of these types exist in types/statsLayout.d.ts. This produces compilation errors such as “Cannot find name 'StatsLayoutFilters'” and “Property 'filters' does not exist on type 'StatsLayoutState'”, preventing Nuxt from building. Add the missing interfaces (filters, remote meta, server payload/context, etc.) or adjust the annotations so the module type-checks.
Useful? React with 👍 / 👎.
Summary
Testing