Skip to content

docs: animate the remaining static diagrams and add five new ones - #119

Open
alexander-sei wants to merge 8 commits into
mainfrom
docs/animate-remaining-diagrams
Open

alexander-sei wants to merge 8 commits into
mainfrom
docs/animate-remaining-diagrams

Conversation

@alexander-sei

@alexander-sei alexander-sei commented Dec 4, 2026 •

Copy link
Copy Markdown
Collaborator

What is the purpose of the change?

This PR finishes the move to animated diagrams and adds new ones where a page explains a process in prose only. Every diagram that was still a static SVG now plays like the Giga diagrams. Five new diagrams cover Twin Turbo Consensus, x402 payments, state sync, block tags, and pending state. The PR also fixes places where a diagram or its page said more than the docs support.

Describe the changes to the documentation

Step players. Each one uses the existing player: Play, Pause, Back, Next, and step dots. It autoplays once a third of it scrolls into view, loops, and pauses off screen. Under prefers-reduced-motion, nothing starts on its own.

Page Diagrams
giga/index GigaProposerComparison
giga/specs GigaLanesAndCuts, GigaSlotPipeline, GigaStorageArchitecture, GigaBudWindow
giga/developers GigaFeeSplit
evm/nonce-lanes NonceLanes, NonceLaneDelegation, NonceLanePipeline, NonceLaneFailureIsolation
learn/twin-turbo-consensus TwinTurboPipeline (new)
ai/x402 X402PaymentFlow (new)
node/statesync StateSyncFlow (new)
evm/evm-parity/finality BlockTagsComparison (new)
evm/differences-with-ethereum PendingStateComparison (new)
  • GigaLanesAndCuts shows why a cut is a vector of certified tips. V3's newest proposal has no PoA yet, so the cut passes behind it, and it waits for a later cut.
  • GigaStorageArchitecture links its two columns with an arrow from execution to the block's write log.
  • GigaFeeSplit branches one signed transaction into its three fees, then shows tips being pooled.
  • TwinTurboPipeline replaces the page's two cards and its "(Consensus reached) →" arrow. It compares Tendermint's sequential rounds with Sei's early preparation, execution during prevote and precommit, and commit to SeiDB. It uses only the page's claims, so it has no millisecond axis, and prefetching and early execution appear as things a validator can do.
  • X402PaymentFlow is a sequence diagram of one paid GET /weather on Sei Testnet, following the page's Express example: 402 with PAYMENT-REQUIRED, an EIP-3009 authorization, the retry with PAYMENT-SIGNATURE, verification, settlement by an optional facilitator, and the held response released with PAYMENT-RESPONSE. The existing <Steps> stay as the text version.
  • StateSyncFlow walks a new node from an empty state to in sync: a trust height rounded down to a multiple of 100,000, the [statesync] and ss-backend settings, snapshot discovery, forward verification, restore, and block sync. Heights are schematic.
  • BlockTagsComparison shows latest, safe, and finalized on three different Ethereum blocks, with gaps instead of block counts, and all three on one Sei block.
  • PendingStateComparison shows Ethereum's proposer executing before it broadcasts, which leaves its state pending, and Sei's proposer broadcasting first so that every node executes after acceptance.

One-time reveals. The Giga roadmap track and the three nonce-lane benchmark charts aren't sequences, so they draw in once when they first scroll into view. The server render is the finished chart. Nothing is hidden under reduced motion or when the chart is already on screen at load. The scaling chart inside the Tuning accordion reveals when the accordion opens.

Accuracy fixes

  • AgenticWalletFlow said a TEE always signs and showed a "network" policy check. The page says a self-custodial ViemWalletProvider has no TEE, and that chain restriction is not a Privy policy condition. The signing step and the check label now match the page.
  • learn/twin-turbo-consensus.mdx told readers to wait one block "for probabilistic finality", which contradicted the page's own "instant, deterministic finality".
  • evm/differences-with-ethereum.mdx said Ethereum state is pending "until the node is accepted". It now says the block.
  • GigaBudWindow's leaf caption no longer overlaps the proof-window label.

How it was checked

  • Console: in mint dev, with console errors recorded, I clicked through every step of every diagram on the ten changed pages, plus Back and Play/Pause (134 step changes). Nothing was logged, and the Next.js error overlay never appeared.
  • Visuals: I checked the final step of each diagram in light mode, and the Twin Turbo diagram in dark mode. The roadmap and charts start hidden when off screen and reveal on scroll, including inside the accordion.
  • Local checks: check-snippet-theme-default, check-redirects, check-skills, and jq empty docs.json pass. typos is clean, and Vale reports nothing on changed lines.

Notes

  • Four snippet files are new: consensus-diagrams.jsx, x402-diagrams.jsx, statesync-diagrams.jsx, and finality-diagrams.jsx. Like the other diagram files, each export carries its own constants and player, because Mintlify evaluates exports in isolation.

Made with Cursor

alexander-sei and others added 4 commits December 4, 2026 23:13
Turn the proposer comparison, lanes and cuts, slot pipeline, storage
architecture, BUD window, and fee split into step players that match the
other Giga diagrams, and reveal the roadmap track when it scrolls into view.

Co-authored-by: Cursor <cursoragent@cursor.com>
… keys and policies

The signing step now says the TEE applies to managed wallets such as Privy,
and that a self-custodial ViemWalletProvider has no TEE. The policy check
drops the network rule, because chain restriction is not a Privy policy
condition.

Co-authored-by: Cursor <cursoragent@cursor.com>
Turn the two-dimensional nonce, EIP-7702 delegation, relayer pipeline, and
failure isolation diagrams into step players, and grow the three benchmark
charts in when they first scroll into view.

Co-authored-by: Cursor <cursoragent@cursor.com>
…eline

The consensus page drew its pipeline with two cards and a text arrow. A
step player now compares Tendermint's sequential rounds with Sei's early
preparation, execution during voting, and commit to SeiDB, using only the
claims on the page. The one-confirmation advice no longer calls committed
blocks probabilistically final.

Co-authored-by: Cursor <cursoragent@cursor.com>
@mintlify

mintlify Bot commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
sei-docs 🟢 Ready View Preview Dec 4, 2026, 10:55 PM

💡 Tip: Enable Automations to automatically generate PRs for you.

@cursor

cursor Bot commented Dec 4, 2026 •

Copy link
Copy Markdown

PR Summary

Low Risk
Documentation-only additions and React diagram snippet enhancements with no impact on core runtime code.

Reviewed by Cursor Bugbot for commit 6f0adb2. Bugbot is set up for automated code reviews on this repo. Configure here.

@seidroid seidroid Bot 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.

This PR turns the remaining static diagrams into step players and one-time reveals, adds a TwinTurboPipeline diagram, and fixes two accuracy problems in the docs; the theme-seed check passes and I found nothing blocking. One accuracy fix is incomplete: the agentic-wallet diagram still labels its signing step and node as a TEE signer, which the new caption says isn't true for every provider.

Findings: 0 blocking | 2 non-blocking | 1 posted inline

Blockers

  • None at the file/PR level.

Non-blocking

  • None at the file/PR level.
  • 1 suggestion(s)/nit(s) flagged inline on specific lines.
  • 1 non-blocking pre-existing issue(s) listed below under pre-existing issues.

Pre-existing issues

  • [suggestion] In every step player, togglePlay (e.g. snippets/giga-diagrams.jsx on main, now copied into snippets/consensus-diagrams.jsx and the new nonce-lane and Giga players) calls setStep(step + 1) right away. Pressing Play after a pause skips the step the reader stopped on, and pressing Play on step 1 jumps to step 2. Consider letting the playback timer do the advancing and resetting to step 0 only when replaying from the last step.

{
title: 'The TEE signs',
text: 'The private key stays inside a Trusted Execution Environment (TEE). The signer hands back only the signed transaction.'
text: <>In a managed wallet such as Privy, the private key stays inside a Trusted Execution Environment (TEE), and the signer hands back only the signed transaction. With a self-custodial <code>ViemWalletProvider</code>, you hold the key yourself and there is no TEE.</>

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.

[suggestion] The new caption says a self-custodial ViemWalletProvider has no TEE, but other parts of the diagram still say a TEE always signs: the step title ('The TEE signs', line 36), the stage node ('TEE signer', line 54), and the SVG aria-label ("the TEE signer signs it"). Readers and screen-reader users still get the claim this PR is meant to correct. Use a generic label such as "The signer signs" / "Signer" / "holds the key" and leave the provider-specific TEE detail to the caption.

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit fba617e. Configure here.

Comment thread snippets/agentic-wallet-diagrams.jsx Resolved
alexander-sei and others added 3 commits December 4, 2026 23:48
Step through one paid request on Sei Testnet: the 402 response with
PAYMENT-REQUIRED, the EIP-3009 authorization, the retry with
PAYMENT-SIGNATURE, verification, facilitator settlement, and the held
response released with PAYMENT-RESPONSE.

Co-authored-by: Cursor <cursoragent@cursor.com>
Show how a new node picks a trusted block, configures state sync, finds a
snapshot, verifies forward from the trust height, restores the snapshot,
and block syncs to the tip with history that starts at the snapshot.

Co-authored-by: Cursor <cursoragent@cursor.com>
The finality page shows latest, safe, and finalized pointing to different
Ethereum blocks and to one Sei block. The differences page shows why
executing before broadcasting creates a pending window that Sei does not
have, and its text now says the block, not the node, is accepted.

Co-authored-by: Cursor <cursoragent@cursor.com>
@alexander-sei alexander-sei changed the title docs: animate the remaining static diagrams and the Twin Turbo pipeline docs: animate the remaining static diagrams and add five new ones Dec 4, 2026
…diagram

The step title, the stage node, the aria-label, and the lock label still
said a TEE always signs. They now name a generic signer, and the step text
keeps the managed-versus-self-custodial detail.

Co-authored-by: Cursor <cursoragent@cursor.com>

This branch was successfully deployed

1 active deployment
staging — 6f0adb20 Deployed Dec 4, 2026 by mintlify[bot]
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