Skip to content

feat(portal): URL-based routing for create destination steps#793

Merged
alexluong merged 2 commits intomainfrom
feat/portal-url-routing
Mar 25, 2026
Merged

feat(portal): URL-based routing for create destination steps#793
alexluong merged 2 commits intomainfrom
feat/portal-url-routing

Conversation

@alexluong
Copy link
Copy Markdown
Collaborator

@alexluong alexluong commented Mar 24, 2026

Summary

  • Replace in-memory currentStepIndex state with URL paths (/new/topics, /new/type, /new/config) so the browser back/forward buttons work between create destination steps
  • Refactor CreateDestination into a layout component with nested <Routes>, extracting each step into its own component (TopicsStep, TypeStep, ConfigStep)
  • Share form state across steps via React context (CreateDestinationContext); track max reached step to prevent skipping ahead via sidebar

🤖 Generated with Claude Code

Replace in-memory step index with URL paths (/new/topics, /new/type,
/new/config) so the browser back/forward buttons work between steps.

- Refactor CreateDestination into a layout component with nested routes
- Extract TopicsStep, TypeStep, ConfigStep into separate components
- Share form state across steps via React context
- Track max reached step to control sidebar navigation
- Redirect to first step when accessing /new or /new/config without data

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel bot commented Mar 24, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
outpost-docs Ready Ready Preview, Comment Mar 25, 2026 3:18pm
outpost-website Ready Ready Preview, Comment Mar 25, 2026 3:18pm

Request Review

Encode topics and type as search params (?topics=a,b&type=webhook) so
refreshing on /new/config preserves the selected destination type and
topics. If required params are missing, redirect back to first step.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@alexluong alexluong merged commit 5c13bf5 into main Mar 25, 2026
7 checks passed
@alexluong alexluong deleted the feat/portal-url-routing branch March 25, 2026 20:36
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