Shell redesign#141
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
Pull request overview
This PR redesigns the PAPI Console layout into a shell with a collapsible left-hand sidebar for navigation and a top bar that hosts a new global command palette. The previous header (with inline nav links and the block-search input on the BlockTable) is replaced; the command palette absorbs block-by-hash / block-by-number lookup and quick navigation.
Changes:
- Introduce
AppShell(sidebar + topbar) and wire it intoApp.tsx, removing the oldHeadercomponent. - Add
GlobalCommandPalettewith Cmd/Ctrl+K shortcut for navigation, block hash and block number lookups. - Remove the on-table
BlockInput/SearchInputand trimTitleaccordingly; refactorNetworkSwitcherto take aclassNameinstead of aforSmallScreenflag; add GitHub themed icon assets.
Reviewed changes
Copilot reviewed 9 out of 11 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| src/App.tsx | Replace inline header/layout with AppShell wrapping the routes. |
| src/pages/AppShell.tsx | New shell with sidebar groups, mobile sheet, top bar, theme toggle, GitHub link. |
| src/pages/Header.tsx | Deleted; replaced by AppShell. |
| src/components/GlobalCommandPalette.tsx | New command palette (block hash/number/route + section nav, Cmd/Ctrl+K). |
| src/pages/Network/Network.tsx | NetworkSwitcher now takes className; minor tailwind size token swap. |
| src/pages/Explorer/BlockTable.tsx | Drop BlockInput/search input from the recent-blocks title. |
| src/pages/Explorer/FinalizingTable.tsx | Remove the search slot from the Title component. |
| src/components/ui/search-input.tsx | Removed (no longer used). |
| src/components/Icons.tsx | Add GithubIcon themed icon. |
| src/components/icons/github_light.svg, github_dark.svg | New GitHub mark assets. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This changes the PAPI Console overall design to a shell:
More breathing room overall :)
For the icons of each page I've selected some sensible ones, but some of them I wasn't too sure about. I've left a few alternatives commented in the code just in case we want to change them.