Skip to content

[Issue 62 10/10] Port full cyber-grid shell into generated UI#72

Open
snissn wants to merge 15 commits intoissue-62/pr-09-cyber-grid-default-themefrom
issue-62/pr-10-port-cyber-grid-shell
Open

[Issue 62 10/10] Port full cyber-grid shell into generated UI#72
snissn wants to merge 15 commits intoissue-62/pr-09-cyber-grid-default-themefrom
issue-62/pr-10-port-cyber-grid-shell

Conversation

@snissn
Copy link
Contributor

@snissn snissn commented Mar 23, 2026

Source of truth: #62

Stack position: 10/10

This follow-on PR ports the full Cyber Grid shell into the generated Next export UI so the explicit/default cyber-grid preset from #71 produces the intended Token Host visual system in generated apps, including the canonical microblog example.

Do not merge this PR without human approval.

Verification

pnpm build
pnpm mocha test/testCliGenerateUi.js

@snissn
Copy link
Contributor Author

snissn commented Mar 23, 2026

Fixed the local preview feed error. Root cause was browser reads on custom pages falling back to viem's default Anvil RPC (127.0.0.1:8545) even when the preview instance was deployed against a different local RPC port.\n\nThis patch makes / serve an augmented manifest with , and the generated runtime now prefers that read RPC before the chain default.\n\nAdded integration coverage for a non-default local Anvil port via .

@snissn
Copy link
Contributor Author

snissn commented Mar 23, 2026

Fixed the local preview feed error.

Root cause: browser reads on custom pages were falling back to viem's default Anvil RPC (http://127.0.0.1:8545) even when the preview instance had been deployed against a different local RPC port.

This patch makes th preview and th up serve an augmented manifest with extensions.localPreview.rpcUrl, and the generated runtime now prefers that read RPC before the chain default.

Added integration coverage for the non-default local Anvil port case in test/integration/testCliLocalIntegration.js.

@snissn
Copy link
Contributor Author

snissn commented Mar 23, 2026

Follow-up shell polish is pushed.

Included in this update:

  • removed the /tokenhost/ops sublabel from the default header brand
  • scaled the brand treatment up so the logo reads taller in the fixed nav shell
  • aligned the template palette with the upstream Cyber Grid polarity: light mode uses cyan as primary, dark mode uses magenta as primary
  • converted the floating section copy blocks into layered panel sections in both the default template and the canonical microblog home page

I did not change /home/mikers/dev/nil-store/cybergrid-theme because its light/dark primary polarity was already correct; Token Host was the repo that had drifted.

@snissn
Copy link
Contributor Author

snissn commented Mar 23, 2026

Also fixed the local sponsored-write confirmation hang.

Root cause: the preview relay already waits for the receipt and returns it, but the generated client was discarding that receipt and waiting a second time on the public read RPC. If that second read path lagged, the UI stayed on "Waiting for confirmation…" even though the post had already succeeded.

The generated submitWriteTx helper now uses body.receipt immediately when the relay provides it.

@snissn
Copy link
Contributor Author

snissn commented Mar 23, 2026

Patched the same preview-RPC issue on the generated collection routes.

The earlier fix covered the custom microblog home/tag pages, but /Post/, /Profile/, and the generated create/view/edit/delete clients were still booting reads from ?rpc= or the chain default only.

They now also honor getReadRpcUrl(manifest), so redirects after create/edit/delete stay on the same live preview RPC instead of falling back to 127.0.0.1:8545.

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.

1 participant