diff --git a/.gitignore b/.gitignore index 14acc17ca9..704e888aff 100644 --- a/.gitignore +++ b/.gitignore @@ -10,4 +10,5 @@ /_bmad-output .github/agents/bmad-* .github/prompts/bmad-* -.direnv/ \ No newline at end of file +.direnv/ +.claude/ diff --git a/docs/superpowers/plans/2026-06-08-editor-pagination.md b/docs/superpowers/plans/2026-06-08-editor-pagination.md new file mode 100644 index 0000000000..d2a4e367c0 --- /dev/null +++ b/docs/superpowers/plans/2026-06-08-editor-pagination.md @@ -0,0 +1,1372 @@ +# Editor Pagination Implementation Plan + +> **For agentic workers:** REQUIRED SUB-SKILL: Use superpowers:subagent-driven-development (recommended) or superpowers:executing-plans to implement this plan task-by-task. Steps use checkbox (`- [ ]`) syntax for tracking. + +**Goal:** Add page-by-page rendering (200 rows/page) to the States, Cultures, Religions, Rivers, and Routes list editors so they stay responsive on maps with 1,000+ entries. + +**Architecture:** Add a small shared pagination/sort toolkit of global functions to `public/modules/ui/editors.js`. Each editor's `…AddLines` function builds its full filtered array, sorts the *whole* array via the toolkit (so sorting spans all pages), slices to the current page, renders only that slice, and draws `‹ Page n of N ›` controls in its footer. CSV exports and one DOM-walking helper are reworked to read the full dataset instead of the rendered (now-partial) DOM. + +**Tech Stack:** Vanilla browser JS. `public/modules/ui/*.js` are global ` - + @@ -8617,8 +8617,8 @@ - - + +