ui: port sitemap panel to new design#9
Open
Moriz82 wants to merge 1 commit into
Open
Conversation
Rewrite SitemapPanel.tsx to match the new 3-column design:
- Left: per-host collapsible tree with method chip + path rows and
finding dots.
- Center: toolbar (host crumb, search, GET/POST/PUT/DELETE/HEAD method
chips, status 2/3/4/5xx filters, export) plus Method/Path/Status/Tech/
Source/Findings table.
- Right: inspector with endpoint glyph, method/status badges, prop rows
(Host/Title/Tech/Source/Findings), and Open-in-graph/Re-scan/cURL/
Copy URL action buttons.
Data is fetched from /api/graph?kinds=Endpoint and row selection
pulls /api/responses/{id} for headers/body shown in the inspector.
Add frontend/src/styles/{tokens,base,screens}.css with the design
tokens and sitemap-owned selectors ported from the new UI. Shared
primitives (.searchbar, .chip, .method, .status-chip, .insp-*,
.prop-*, .btn) are scoped under .sitemap to avoid conflicts with
sibling panel ports.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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.
Summary
SitemapPanel.tsxto match the new 3-column design (host tree / filtered table / inspector) from/tmp/new_ui/src/screens/sitemap_screen.jsx, wired to the live/api/graph?kinds=Endpoint+/api/responses/{id}backends.frontend/src/styles/{tokens,base,screens}.csswith sitemap-owned selectors ported from/tmp/new_ui/styles/; shared primitives (.searchbar,.chip,.method,.status-chip,.insp-*,.prop-*,.btn) are scoped under.sitemapto avoid conflicts with sibling panel ports.useMemo.Test plan
npx tsc --noEmit— no new errors from SitemapPanel/main/styles (pre-existing errors on main unchanged).npm run build— succeeds.gossamer/gossamer, navigate to Sitemap tab.facts.htb,oss.maxcdn.com,fonts.googleapis.com) with 127 endpoints for the selected host.Screenshots:
/tmp/sitemap-after-login.png,/tmp/sitemap-filtered.png,/tmp/sitemap-inspector.png.🤖 Generated with Claude Code