Repository navigation
docs(board): add guide for building a kanban board on your own records (#21214) - #21234
Conversation
neomjs#21214) Adds learn/guides/datahandling/Board.md in the style of the Scheduler and Gantt guides, registered in learn/tree.json after the Gantt line and in apps/portal/resources/data/seo.json. Eight sections: what a board is (columns are a projection of one store, a move is one record.set()), a minimal board, columns (derived or explicit, WIP limits, collapsed and locked), swimlanes (laneField, lanes, the unassigned lane), moving cards (drag, keyboard, moveCard for code and agents), what a card shows (cardItems and the card editor), long columns (maxRenderedCards, overscan, retainOffscreen), and where to go next.
neo-opus-grace
left a comment
There was a problem hiding this comment.
PR Micro-Review
Opening: Thank you, @Mittalnew, especially for running every snippet instead of trusting it. You ran the minimal board in headless Chromium, both moveCard calls, the null return for a status with no column, and the lanes. That was the check this page needed, and it shows: every claim I traced back to src/board holds. Some pointers: what Neo is; your page documents the board family in src/board, which joins the engine with Engine 14; and here is how to run the engine from a clone. If you want to stay with the board, #20879 is open. Its board part brings the board to the cyberpunk, dark and light themes, where a fresh npx neo-app app shows it unstyled today.
Class: contained. Docs only: one new guide, plus its learn/tree.json line and its seo.json entry, as the Scheduler and Gantt guide PRs did. No change under src/.
Verdict: Approved
Glance: The premise is #21214's: one guide in eight sections that teaches a first board on your own records. I read the guide at 63063f49f4 against src/board on its base and traced each claim:
moveCard()resolvesbeforeId, thenafterId, thenindex, appends otherwise, and returnsnullfor an unresolved record or column (Container.mjs:973).- A multi-card drop calls it once per card and then fires
cardsMoveonce (SortZone.mjs:790-825). - The editor saves a status or lane change through
moveCard(), with the other changed fields in the samerecord.set()(CardEditor.mjs:27-32). openCardEditor()takes a card, a record or a key (:654).- The key bindings, the event payloads, the column defaults, the id formats,
registerCardItem's(record, item, card)and the "in total"overscanall match.
I looked for a claim the source contradicts, a ticket number on the page and a link that does not resolve, and found none. The page has no diagram, like its two siblings; I read it as a task guide rather than a storytelling one.
One optional touch: the Neural Link example moves a card to 'review', and the section-2 board has no such column, so on that board it returns null. 'done' would match the board the reader just built. Also optional: if a model helped you, naming it in the Authored by line helps us route reviews across model families.
Findings: None.
- Origin Session ID: 093ddb18-e4f4-4f14-ac2e-dfd381c9a8a7
- PR body attribution:
Authored by …is the only attribution; no harness-appended session backlink.
🖖 Grace, Claude Opus 5.5, Claude Code. Eligibility rules: pr-review-guide §6.4.
|
Merged. Standing: Contributor (2 merged). 3 more reach Returning Contributor. Your record and badge: https://neomjs.com/badges/mittalnew-111978266/ Next, if you want one: #21177 and #21178 are open and unclaimed; a comment on either claims it. The full list has more if both are taken by then. |
Resolves #21214
Adds
learn/guides/datahandling/Board.md(276 lines), a guide for building a kanban board withNeo.board.Containeron your own records, in the style of the Scheduler and Gantt guides. The page is registered inlearn/tree.jsonafter the Gantt line ofguides/datahandlingand inapps/portal/resources/data/seo.json, like its siblings. Docs only, no change undersrc/, no public behavior change.Evidence: L3 (section 2's minimal board mounted in headless Chromium; full unit suite and link check run locally) -> L3 required (AC-3 asks for the minimal board to run, with a screenshot).
AC Evidence
learn/guides/datahandling/Board.mdhasseoTitle/seoDescriptionfrontmatter, one#title and the eight sections in the ticket's order: 1. What a board is, 2. A minimal board, 3. Columns, 4. Swimlanes, 5. Moving cards, 6. What a card shows, 7. Long columns, 8. Where to go next.src/boardondevat594ca4b. Listed with file and line below.2/2) and Done (1 card). Details under Test Evidence; screenshot at the end.learn/tree.jsonregistersguides/datahandling/Board.npm run check-relative-links: OK, 418 links resolved.npm run test-unit: 7787 passed, 2 skipped.examples/board/basic/Viewport.mjsandMainStore.mjsand names no ticket number.Names used on the page (AC-2)
Neo.board.Container:src/board/Container.mjs:38,ntype: 'board':43, extendsNeo.container.Base(import :7)store:165,statusField:160,orderField:141,columns:94,columnsResortable:99,dragResortable:104laneField:119,lanes:132,emptyLaneTitle:114,cardItems(default title, tags, progress, avatars) :68,cardEditorConfig:58,selectionModel:150moveCard():973 (Neural Linkcall_methodform in its JSDoc :944),moveColumn():1046,activateCard():543,openCardEditor():654,getCard():681,getColumnRecords():788,normalizeOrder():1109 (orders a fresh data set)cardActivate:562,cardMove:1033,columnMove:1095createColumnConfig():472Neo.board.Column:src/board/Column.mjs,collapsed:45,color:50,locked:83,maxRenderedCards:85,overscan:87,retainOffscreen:89,title:103,wipLimit:108,neo-board-column-wip-exceeded:576, collapse toggle :160,scrollToRecord():350Neo.board.CardModel:src/board/CardModel.mjs, fieldsid:25,title:27,description:30,status:33,lane:37,order:42,assignees:46,tags:48,progress:50,color:54,dueDate:59src/board/CardItems.mjs: item typestitle:40,text:53,tags:66,progress:83,avatars:109,registerCardItem():137Neo.board.CardEditor:src/board/CardEditor.mjs:47,fields:96, save/cancel behavior in the class JSDoc :27-32Neo.board.Card: double-click :198,F2inline title edit :248, menu button :301Neo.board.SelectionModel:src/board/SelectionModel.mjs:31, key bindings :795-812,selectionChange:163Neo.board.SortZone:cardsMovesrc/board/SortZone.mjs:821Neo.board.LaneRow:src/board/LaneRow.mjs:21Neo.board.ColumnSortZone: locked columns excluded from sorting,src/board/ColumnSortZone.mjs:9Deltas from ticket
None substantive. The ticket's file list names only
learn/tree.json; I also added the page'sapps/portal/resources/data/seo.jsonentry, as the Scheduler and Gantt guide PRs did.Test Evidence
npm run check-relative-links: OK, 418 links resolved across 186 files.npm run test-unit(afternpm run bundle-browser-deps): 7787 passed, 2 skipped.examples/board/(withindex.html,neo-config.jsonandapp.mjslikeexamples/board/basic), built theneo-lighttheme, served the repo with a static server and opened it in headless Chromium with Playwright. It rendered columns__col__backlog(Design the login form, Build the search box),__col__in-progress(Review the export, Test the settings, badge2/2) and__col__done(Ship the onboarding), with no console errors.laneField: 'lane'and thelanes,cardItems,cardEditorConfig, column andlistenersconfigs from the page:moveCard({key: 5, status: 'done', index: 0})returned the record, andcardMoveloggeddone -> done at 0.moveCard({key: 1, status: 'in-progress', beforeId: 3, fields: {assignees: ['Devon']}})put card 1 before card 3, and the avatar changed to Devon.null.getLaneConfigs()returned Web, Mobile (collapsed) and Unassigned.2/1with the exceeded style.Post-Merge Validation
None required.
Authored by @Mittalnew, with AI assistance.
Screenshots