Skip to content

Local viewer: prominent scan switcher + rename to "pentest" terminology#848

Merged
0xallam merged 4 commits into
mainfrom
viewer-scan-switcher
Jul 22, 2026
Merged

Local viewer: prominent scan switcher + rename to "pentest" terminology#848
0xallam merged 4 commits into
mainfrom
viewer-scan-switcher

Conversation

@0xallam

@0xallam 0xallam commented Jul 22, 2026

Copy link
Copy Markdown
Member

Scan/pentest switcher (top bar)

The switcher was a small, low-contrast button many users didn't notice or realize switched runs.

  • Trigger: filled background, visible border, larger text, a leading label, and a wider name.
  • Dropdown: wider (w-64w-96), a header, and roomier rows with the target under each entry.

Terminology

  • "Overview" → "Pentest Overview" (sidebar + mobile tab).
  • "scan" → "pentest" across user-facing copy (switcher label/header, empty/running states, run-details "Pentest mode", re-run CTA, live-prompt placeholder, fallbacks). API fields and code identifiers unchanged.

Rebuilt the committed static bundle.

The scan switcher in the top bar was a small, low-contrast button that many
users didn't notice or understand. Give it a filled background, a "Scan"
label, larger text, and a wider name; widen the dropdown and add a "Switch
scan" header so it reads clearly as a scan selector.

Rebuilt the committed static bundle.
@greptile-apps

greptile-apps Bot commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR refreshes the local viewer’s pentest terminology and run switcher. The main changes are:

  • Makes the pentest switcher larger and more prominent.
  • Renames user-facing scan and overview labels.
  • Adds feedback and agent-steering telemetry.
  • Tracks sidebar upgrade actions.
  • Rebuilds the committed frontend assets.

Confidence Score: 5/5

The latest changes look safe to merge.

  • No new blocking issue remains after applying the follow-up selection scope.

Important Files Changed

Filename Overview
strix/viewer/frontend/src/App.tsx Updates the pentest switcher layout and user-facing terminology.
strix/viewer/frontend/src/components/Sidebar.tsx Renames the overview entry and adds tracking when upgrade dialogs open.
strix/viewer/server.py Emits telemetry after successful feedback relay and for agent-steering events.
strix/telemetry/posthog.py Adds telemetry helpers for feedback submission and agent steering.
strix/viewer/static/index.html Points the viewer at the rebuilt frontend bundle.

Reviews (2): Last reviewed commit: "Add telemetry for feedback, agent steeri..." | Re-trigger Greptile

<div
className="absolute right-0 z-50 mt-1.5 max-h-80 w-64 overflow-y-auto rounded-lg py-1 shadow-xl"
style={{ border: "1px solid #2a2a2a", background: "#0a0a0a" }}
className="absolute right-0 z-50 mt-2 max-h-96 w-96 overflow-y-auto rounded-xl py-1.5 shadow-2xl"

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.

P1 Dropdown Extends Beyond Mobile Viewport

The fixed w-96 makes the menu 384px wide, so it extends past the left edge of 320px and 375px mobile viewports when opened with right-0. The beginning of each scan name can become inaccessible because the menu has no viewport-aware width limit.

Suggested change
className="absolute right-0 z-50 mt-2 max-h-96 w-96 overflow-y-auto rounded-xl py-1.5 shadow-2xl"
className="absolute right-0 z-50 mt-2 max-h-96 w-96 max-w-[calc(100vw-1.5rem)] overflow-y-auto rounded-xl py-1.5 shadow-2xl"
Prompt To Fix With AI
This is a comment left during a code review.
Path: strix/viewer/frontend/src/App.tsx
Line: 438

Comment:
**Dropdown Extends Beyond Mobile Viewport**

The fixed `w-96` makes the menu 384px wide, so it extends past the left edge of 320px and 375px mobile viewports when opened with `right-0`. The beginning of each scan name can become inaccessible because the menu has no viewport-aware width limit.

```suggestion
          className="absolute right-0 z-50 mt-2 max-h-96 w-96 max-w-[calc(100vw-1.5rem)] overflow-y-auto rounded-xl py-1.5 shadow-2xl"
```

How can I resolve this? If you propose a fix, please make it concise.

Terminology pass on user-facing copy: the Overview nav/tab is now "Pentest
Overview", and display strings that said "scan" now say "pentest" (the switcher
label + header, empty/running states, run-details "Pentest mode", the re-run
CTA, the live-prompt placeholder, and the untitled fallback). API fields and
identifiers are unchanged.

Rebuilt the committed static bundle.
@0xallam 0xallam changed the title Local viewer: make the scan switcher prominent and wider Local viewer: prominent scan switcher + rename to "pentest" terminology Jul 22, 2026
0xallam added 2 commits July 22, 2026 19:02
- Export-report disclosure button now reads "Export report" (was "Continue
  with your email" / "Email me the encrypted PDF") to match the page title.
- Re-run CTA reads "Re-run in Strix Pro with more depth".

Rebuilt the committed static bundle.
Audit of viewer telemetry after the recent changes:
- Feedback submissions were untracked. Fire viewer_feedback_submitted
  server-side in /api/feedback on a successful relay (respects the opt-out;
  no message/email content is sent).
- agent_steered was emitted by the SPA but dropped by the event handler's
  whitelist. Forward it as viewer_agent_steered.
- Opening the upgrade dialog from the sidebar lost its click event when those
  rows became dialogs; record it via trackCta(slug, "sidebar").

Adds tests for the feedback and agent_steered paths. Rebuilt static bundle.
@0xallam

0xallam commented Jul 22, 2026

Copy link
Copy Markdown
Member Author

@greptile

@0xallam
0xallam merged commit 1f73737 into main Jul 22, 2026
1 check passed
@0xallam
0xallam deleted the viewer-scan-switcher branch July 22, 2026 16:17
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