Skip to content

docs(board): add guide for building a kanban board on your own records (#21214) - #21234

Merged
tobiu merged 1 commit into
neomjs:devfrom
Mittalnew:docs/board-guide-21214
Nov 17, 2026
Merged

tobiu merged 1 commit into
neomjs:devfrom
Mittalnew:docs/board-guide-21214

Conversation

@Mittalnew

Copy link
Copy Markdown
Contributor

Resolves #21214

Adds learn/guides/datahandling/Board.md (276 lines), a guide for building a kanban board with Neo.board.Container on your own records, in the style of the Scheduler and Gantt guides. The page is registered in learn/tree.json after the Gantt line of guides/datahandling and in apps/portal/resources/data/seo.json, like its siblings. Docs only, no change under src/, 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

AC Proof
AC-1 learn/guides/datahandling/Board.md has seoTitle / seoDescription frontmatter, 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.
AC-2 Every class, config, field, method and event the page names exists in src/board on dev at 594ca4b. Listed with file and line below.
AC-3 Section 2's code block, copied unchanged into a scratch app (not committed), renders three columns: Backlog (2 cards), In progress (2 cards, badge 2/2) and Done (1 card). Details under Test Evidence; screenshot at the end.
AC-4 learn/tree.json registers guides/datahandling/Board. npm run check-relative-links: OK, 418 links resolved. npm run test-unit: 7787 passed, 2 skipped.
AC-5 The page links examples/board/basic/Viewport.mjs and MainStore.mjs and names no ticket number.

Names used on the page (AC-2)

  • Neo.board.Container: src/board/Container.mjs:38, ntype: 'board' :43, extends Neo.container.Base (import :7)
    • store :165, statusField :160, orderField :141, columns :94, columnsResortable :99, dragResortable :104
    • laneField :119, lanes :132, emptyLaneTitle :114, cardItems (default title, tags, progress, avatars) :68, cardEditorConfig :58, selectionModel :150
    • moveCard() :973 (Neural Link call_method form in its JSDoc :944), moveColumn() :1046, activateCard() :543, openCardEditor() :654, getCard() :681, getColumnRecords() :788, normalizeOrder() :1109 (orders a fresh data set)
    • events: cardActivate :562, cardMove :1033, columnMove :1095
    • column entry keys and defaults in createColumnConfig() :472
  • Neo.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() :350
  • Neo.board.CardModel: src/board/CardModel.mjs, fields id :25, title :27, description :30, status :33, lane :37, order :42, assignees :46, tags :48, progress :50, color :54, dueDate :59
  • src/board/CardItems.mjs: item types title :40, text :53, tags :66, progress :83, avatars :109, registerCardItem() :137
  • Neo.board.CardEditor: src/board/CardEditor.mjs:47, fields :96, save/cancel behavior in the class JSDoc :27-32
  • Neo.board.Card: double-click :198, F2 inline title edit :248, menu button :301
  • Neo.board.SelectionModel: src/board/SelectionModel.mjs:31, key bindings :795-812, selectionChange :163
  • Neo.board.SortZone: cardsMove src/board/SortZone.mjs:821
  • Neo.board.LaneRow: src/board/LaneRow.mjs:21
  • Neo.board.ColumnSortZone: locked columns excluded from sorting, src/board/ColumnSortZone.mjs:9

Deltas from ticket

None substantive. The ticket's file list names only learn/tree.json; I also added the page's apps/portal/resources/data/seo.json entry, 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 (after npm run bundle-browser-deps): 7787 passed, 2 skipped.
  • Pre-commit hooks (secrets, whitespace, relative links) passed.
  • AC-3 live run: I copied section 2's block unchanged into a scratch app under examples/board/ (with index.html, neo-config.json and app.mjs like examples/board/basic), built the neo-light theme, 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, badge 2/2) and __col__done (Ship the onboarding), with no console errors.
  • The other snippets, run in a second scratch app with laneField: 'lane' and the lanes, cardItems, cardEditorConfig, column and listeners configs from the page:
    • moveCard({key: 5, status: 'done', index: 0}) returned the record, and cardMove logged done -> 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.
    • A move to a status with no column returned null.
    • getLaneConfigs() returned Web, Mobile (collapsed) and Unassigned.
    • The WIP badge showed 2/1 with the exceeded style.
  • The scratch apps are not part of this PR.

Post-Merge Validation

None required.

Authored by @Mittalnew, with AI assistance.

Screenshots

neo-21214-minimal-board

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.
@Mittalnew Mittalnew changed the title docs(board): add guide for building a kanban board on your own record… docs(board): add guide for building a kanban board on your own records (#21214) Nov 17, 2026
@neo-opus-grace
neo-opus-grace self-requested a review November 17, 2026 07:23

@neo-opus-grace neo-opus-grace left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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() resolves beforeId, then afterId, then index, appends otherwise, and returns null for an unresolved record or column (Container.mjs:973).
  • A multi-card drop calls it once per card and then fires cardsMove once (SortZone.mjs:790-825).
  • The editor saves a status or lane change through moveCard(), with the other changed fields in the same record.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" overscan all 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.

@tobiu
tobiu merged commit 49c8b4e into neomjs:dev Nov 17, 2026
26 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

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.

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.

No guide shows how to build a kanban board on your own records

3 participants