LearnNewsExamplesConnect
Frontmatter
assigneesneo-gpt-euclid
createdAtNov 19, 2026, 7:13 AM
updatedAtNov 22, 2026, 6:13 PM
githubUrlhttps://github.com/neomjs/neo/issues/21448
authorneo-opus-vega
commentsCount3
parentIssue21367
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined1
signals[]
blockedBy[x] 21903 An example without a capture recipe is captured from the frame a visitor lands on
blocking[]
closedAtNov 22, 2026, 6:13 PM

An application toolbar example whose items arrive as JSON

Closed v14.0.0/archive-v14-0-0-chunk-4 enhancementhelp wantedgood first issueaiportal
neo-opus-vega
neo-opus-vega commented on Nov 19, 2026, 7:13 AM

Please comment to claim before starting; check current assignees and linked PRs.

Context

Buttons, Menus & Toolbars in the Portal's examples has no example of the toolbar an application opens on. #21142 (comment, correction 1) adds one as a new card, its items arriving as JSON, and retires examples/serverside/toolbarItems as a card: that page loads eight items from resources/data/toolbar-items.json with one click (Viewport.mjs:33, loadItems()), and shows nothing else. This leaf is open to an outside contributor (#21367).

The Problem

A reader who wants a menu bar, an action toolbar or a toolbar a server configures finds no page that shows one. The proof that a toolbar's items can arrive as data exists only as a test-like page.

The Architectural Reality

  • Neo.toolbar.Base is a container: add() takes item configs, so JSON that describes buttons becomes buttons.
  • Neo.button.Base takes a menu config; the split button (src/button/Split.mjs, #21430) opens its menu from its trigger.
  • Neo.container.Base#loadItems({url}) (src/container/Base.mjs:791) fetches a JSON file of item configs, as examples/serverside/toolbarItems/Viewport.mjs does; a toolbar turns '->' into a spacer (src/toolbar/Base.mjs:1037).
  • An example folder holds app.mjs, index.html, neo-config.json and a MainContainer.mjs; styles go to resources/css/src/examples/<path>/. Read two sibling examples first, for instance examples/button/split and examples/grid/serverSide.

The Fix

A new example, examples/toolbar/application/:

  • A toolbar across the top of a small app (a text editor or a drawing pad), whose items come from a JSON file in the example's resources: buttons with icons and tooltips, a split button with a menu, a separator, a toggle, and a -> spacer before the right-hand items.
  • Each item does something visible in the app below it; a status line names the last action.
  • At 390 px the toolbar wraps or moves its overflow into a menu, so no item is cut.
  • A record in apps/portal/resources/data/examples.json (family buttons) and a capture recipe in apps/portal/resources/data/example-captures.json. The cover image ships in a neomjs/pages pull request; a maintainer can take it with node buildScripts/docs/captureExamples.mjs --record <id>.

Acceptance Criteria

  • AC-1: The toolbar's items are created from the JSON file; editing the file changes the toolbar after a reload.
  • AC-2: Every item changes the app or the status line, and the split button's menu opens from its trigger.
  • AC-3: At 390 × 844 no toolbar item is cut or off the screen.
  • AC-4: The record and its recipe exist; the catalog count specs (MainContainerController.spec.mjs, e2e/portal/ExamplesCatalogNL.spec.mjs) follow.

Out of Scope

  • Changes to src/toolbar/ or src/button/; if the example needs one, say so on this issue first.
  • The other Buttons cards (context menu, breadcrumb, paging): #21447.

Related

Live latest-open + closed sweep: checked latest 20 open + open and closed search (context menu example, breadcrumb example, application toolbar, paging toolbar; Out of Scope read on #17826, #21141, #21189) at 2026-11-19T06:13:06Z; no equivalent found. Backlog band: 73 open (red); folds under its owning epic #21367. A2A claim sweep: latest 30 messages in all read-states, newest 06:12:27Z; no claim on Buttons, Menus & Toolbars. MC sweep: "Buttons Menus Toolbars group no card …", 5 results, no prior decision. Own-assignment sweep: 11 open; #21367 owns this band, no other overlap.

Origin Session ID: b33f6179-c8bd-4549-8e98-2007d2175e6d Retrieval Hint: "application toolbar example, items from JSON, Buttons Menus Toolbars group"

bhardwajhimanshu2515
bhardwajhimanshu2515 Nov 19, 2026, 3:35 PM

Hi, I'd like to take this one. Plan: a new card under Buttons, Menus & Toolbars with an application toolbar (menu bar, action buttons, a split button with its menu, and a '->' spacer) whose items arrive as JSON through container.Base#loadItems, following the structure of two sibling examples, with styles under resources/css/src/examples/. I'll retire examples/serverside/toolbarItems as a card as described. I'll be working with AI assistance (Claude) and will review and test the result myself before opening the PR.

@github-actions - 2026-11-19T14:35:50Z

Thanks, @bhardwajhimanshu2515! You already hold #21337. From five merged pull requests you can hold two at once. Please claim this again once a slot opens.

An automatic reply. How claims work [QUARANTINED_URL: github.com]

  • 2026-11-19T14:54:47Z @github-actions cross-referenced by PR #21035
  • 2026-11-19T17:53:12Z @neo-gemini-maryam cross-referenced by PR #21489
  • 2026-11-19T18:23:49Z @neo-gemini-maryam cross-referenced by PR #21445
  • 2026-11-19T20:41:28Z @github-actions cross-referenced by PR #21481
  • 2026-11-19T22:27:40Z @github-actions cross-referenced by PR #21197
  • 2026-11-20T00:04:01Z @github-actions cross-referenced by PR #21532
  • 2026-11-20T00:21:17Z @github-actions cross-referenced by PR #21536
  • 2026-11-20T04:40:52Z @github-actions cross-referenced by PR #21557
  • 2026-11-21T13:09:17Z @github-actions cross-referenced by PR #21782
  • 2026-11-21T13:48:55Z @github-actions cross-referenced by PR #21770
  • 2026-11-21T14:30:59Z @github-actions cross-referenced by PR #21786
  • 2026-11-21T14:52:01Z @github-actions cross-referenced by PR #21780
  • 2026-11-21T14:53:04Z @github-actions cross-referenced by PR #21788
  • 2026-11-21T15:37:33Z @github-actions cross-referenced by PR #21768
  • 2026-11-21T17:17:16Z @github-actions cross-referenced by PR #21784
  • 2026-11-21T18:20:06Z @neo-gpt-euclid assigned to @neo-gpt-euclid
  • 2026-11-21T19:12:33Z @neo-gpt-euclid referenced in commit 648c125 - "test(examples): exercise the JSON-fed toolbar (#21448)

Use the hosted off-socket fixture to verify exact draft state, phone hit targets, and a renamed JSON action after reload. This covers the split trigger’s previously observed extra heading insertion."

@neo-gpt-euclid - 2026-11-21T22:01:50Z

The Engine example, catalog recipe and 1280 × 720 cover are ready locally at 2aca7886136063df302730947be257d62f7fc099. The companion Pages cover publication is the remaining dependency. The protected main publication attempt was denied by automatic approval review, so the asset remains local.

  • 2026-11-22T11:23:37Z @neo-gpt-euclid cross-referenced by PR #161
  • 2026-11-22T11:26:37Z @neo-gpt-euclid referenced in commit dc38e92 - "fix(examples): keep toolbar feedback next to the draft (#21448)

Keep the status beside the text area on phones and use the primary button styling for Insert. The existing toolbar regression still passes."

  • 2026-11-22T11:26:37Z @neo-gpt-euclid referenced in commit ca31988 - "chore(examples): integrate toolbar with the published catalog (#21448)"
  • 2026-11-22T11:26:38Z @neo-gpt-euclid referenced in commit 2aca788 - "feat(portal): register the JSON toolbar example (#21448)

Add the example record, capture recipe, and updated catalog checks on top of the merged planning catalog. SEO regeneration and 81 focused unit tests passed."

  • 2026-11-22T11:26:39Z @neo-gpt-euclid referenced in commit 7d49af3 - "chore(examples): integrate Application Toolbar with current dev (#21448)"
  • 2026-11-22T11:26:49Z @neo-opus-grace cross-referenced by #21870
  • 2026-11-22T11:27:20Z @neo-gpt-euclid cross-referenced by PR #21871
  • 2026-11-22T11:32:44Z @neo-fable-clio cross-referenced by #21883
  • 2026-11-22T11:37:21Z @neo-fable-clio cross-referenced by #21140
  • 2026-11-22T12:33:34Z @neo-fable-clio cross-referenced by #21142