Skip to content

FEAT: Compact Chat seed inspiration and dataset navigation - #4487

Open
Richard Lundeen (richlundeen) wants to merge 2 commits into
microsoft:mainfrom
richlundeen:richlundeen-compact-seed-prompt-helper
Open

Richard Lundeen (richlundeen) wants to merge 2 commits into
microsoft:mainfrom
richlundeen:richlundeen-compact-seed-prompt-helper

Conversation

@richlundeen

@richlundeen Richard Lundeen (richlundeen) commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Description

Replace the wide Chat inspiration banner and standalone Seed prompts action with one tiny, persistent paperclip browse helper below the composer. Remove the redundant Back to datasets link while keeping contextual Return to Chat and a working sidebar route to the dataset catalog.

  • Keep the exact helper text Need inspiration? Browse seed prompts available while drafting, after every turn, and while sending is gated; leave all send gates unchanged.
  • Use existing theme tokens, keyboard-accessible buttons, wrapping layout, and mobile touch targets without dependencies or animation.
  • Make the active Datasets sidebar action return detail pages to their preserved catalog filters or /datasets, including bookmarked and invalid selections; retain detail/paging restoration when entering from another workspace.
  • Preserve imports, draft/setup handoff, and filter/cursor history; update the related documentation and regression coverage.

Real matched captures use the same offline target, light theme, and empty conversation at each viewport. Screenshots appear only in this description.

Chat

Viewport Before After
Desktop, 1280 × 900 Chat before: wide inspiration banner and standalone Seed prompts action Chat after: the persistent paperclip helper is the sole browse action
Narrow, 390 × 844 Narrow Chat before with inspiration banner and standalone browse action Narrow Chat after with only the compact persistent helper

Dataset detail

Viewport Before After
Desktop, 1280 × 900 Dataset detail before: Back to datasets and Return to Chat Dataset detail after: contextual Return to Chat remains and the sidebar opens the catalog
Narrow, 390 × 844 Narrow dataset detail before with redundant back link Narrow dataset detail after without redundant back link

Refines #3987.

Replace the full-width inspiration callout with a themed paperclip helper beside Seed prompts until the first conversation turn. Remove the redundant dataset detail back link while preserving contextual navigation, drafts, and imports.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings November 21, 2026 03:14

Copilot AI 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.

🟡 Changes recommended

Direct-entry dataset detail pages lack an in-app route back to the catalog because the Datasets sidebar restores the same detail URL, requiring a navigation fix and an App-level regression test.

1 open issue
What changed in this PR

Refines seed-prompt discovery in PyRIT’s Chat workspace with a compact helper and simpler dataset-detail navigation, building on #3987.

Changes:

  • Replaces the wide inspiration banner with a paperclip helper beside Seed prompts, visible while drafting until the first conversation turn.
  • Removes Back to datasets from dataset detail while retaining contextual Return to Chat.
  • Updates documentation and regression coverage for helper visibility, draft preservation, and browser-history navigation.
File Description
frontend/​src/​components/​Datasets/​DatasetSelection.tsx Removes the catalog-return link.
frontend/​src/​components/​Datasets/​DatasetSelection.test.tsx Updates detail-page navigation assertions.
frontend/​src/​components/​Datasets/​DatasetCatalog.test.tsx Checks filter and pagination restoration through browser history.
frontend/​src/​components/​Chat/​PromptEditor.styles.ts Adds compact, wrapping helper styles and touch sizing.
frontend/​src/​components/​Chat/​ChatWindow.tsx Keeps inspiration visible while the transcript is empty.
frontend/​src/​components/​Chat/​ChatWindow.test.tsx Covers visibility during drafting and after sending.
frontend/​src/​components/​Chat/​ChatInputArea.tsx Places the paperclip helper beside the persistent browse action.
frontend/​src/​components/​Chat/​ChatInputArea.seed-inspiration.test.tsx Covers keyboard activation and drafting with attachments.
frontend/​src/​App.drafts.test.tsx Updates navigation assertions during draft round trips.
frontend/​README.md Revises dataset navigation guidance.
frontend/​e2e/​datasets.spec.ts Updates browser-history navigation checks.
frontend/​e2e/​datasets.seeded.spec.ts Updates helper and navigation checks against the seeded backend.
doc/​gui/​0_gui.md Documents the compact helper and its visibility.

Review effort: Balanced

Remove the redundant standalone Seed prompts action and keep the paperclip browse helper available after each turn and while sends are gated. Make active Datasets navigation return detail pages to their preserved catalog or the catalog root, without losing detail restoration from other workspaces.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

This branch has not been deployed

No deployments
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.

2 participants