Skip to content

Commit c199bd7

Browse files
lambasuclaude
andcommitted
Use title slugs for prototype deep-link URLs
Replaces p1..p5 with human-readable slugs so shared links read as the prototype name rather than an opaque ID. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 85c9d78 commit c199bd7

2 files changed

Lines changed: 17 additions & 11 deletions

File tree

src/App.jsx

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,13 @@ import { FreModal } from './components/common'
1010
import './App.css'
1111

1212
// Map prototype id → initial chat id
13-
const PROTOTYPE_CHAT = { p1: 23, p2: 34, p3: 35, p4: 38, p5: 39 }
13+
const PROTOTYPE_CHAT = {
14+
'day-one-agent-onboarding': 23,
15+
'context-brief-as-pinned-tab': 34,
16+
'group-intelligence': 35,
17+
'earned-handoff-to-agency': 38,
18+
'facilitator-coordinates-agency': 39,
19+
}
1420

1521
export default function App() {
1622
// True when the user arrived via a ?prototype= deep link — hides the back-to-gallery button.
@@ -159,7 +165,7 @@ export default function App() {
159165
clearNavIntent={clearNavIntent}
160166
/>
161167
</div>
162-
{showFre && selectedPrototype === 'p1' && (
168+
{showFre && selectedPrototype === 'day-one-agent-onboarding' && (
163169
<FreModal
164170
title="Day-one agent onboarding"
165171
subtitle="Agent joins a group chat and instantly knows who's in the room — no user grounding required."
@@ -191,7 +197,7 @@ export default function App() {
191197
</p>
192198
</FreModal>
193199
)}
194-
{showFre && selectedPrototype === 'p2' && (
200+
{showFre && selectedPrototype === 'context-brief-as-pinned-tab' && (
195201
<FreModal
196202
title="Context brief as a pinned tab"
197203
subtitle="Agent synthesizes the chat into a living document and pins it where the team can always find it."
@@ -221,7 +227,7 @@ export default function App() {
221227
</p>
222228
</FreModal>
223229
)}
224-
{showFre && selectedPrototype === 'p3' && (
230+
{showFre && selectedPrototype === 'group-intelligence' && (
225231
<FreModal
226232
title="Group intelligence for Teams agents"
227233
subtitle="Agents monitor group conversations and decide when to engage — without waiting to be @mentioned."
@@ -271,7 +277,7 @@ export default function App() {
271277
</p>
272278
</FreModal>
273279
)}
274-
{showFre && selectedPrototype === 'p4' && (
280+
{showFre && selectedPrototype === 'earned-handoff-to-agency' && (
275281
<FreModal
276282
title="Earned handoff to Agency"
277283
subtitle="Facilitator handles lightweight work in Teams — then hands off deep tasks to Agency with full context intact."
@@ -304,7 +310,7 @@ export default function App() {
304310
</p>
305311
</FreModal>
306312
)}
307-
{showFre && selectedPrototype === 'p5' && (
313+
{showFre && selectedPrototype === 'facilitator-coordinates-agency' && (
308314
<FreModal
309315
title="Facilitator coordinates Agency"
310316
subtitle="A bug is assigned in ADO, the team discusses it, and one @mention triggers Facilitator to route the fix to Agency — with full context."

src/components/PrototypeGallery.jsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import './PrototypeGallery.css'
22

33
const PROTOTYPES = [
44
{
5-
id: 'p1',
5+
id: 'day-one-agent-onboarding',
66
number: '01',
77
title: 'Day-one agent onboarding',
88
description:
@@ -12,7 +12,7 @@ const PROTOTYPES = [
1212
tagColor: '#0078D4',
1313
},
1414
{
15-
id: 'p2',
15+
id: 'context-brief-as-pinned-tab',
1616
number: '02',
1717
title: 'Context brief as pinned tab',
1818
description:
@@ -22,7 +22,7 @@ const PROTOTYPES = [
2222
tagColor: '#038387',
2323
},
2424
{
25-
id: 'p3',
25+
id: 'group-intelligence',
2626
number: '03',
2727
title: 'Group intelligence',
2828
description:
@@ -32,7 +32,7 @@ const PROTOTYPES = [
3232
tagColor: '#5B5FC7',
3333
},
3434
{
35-
id: 'p4',
35+
id: 'earned-handoff-to-agency',
3636
number: '04',
3737
title: 'Earned handoff to Agency',
3838
description:
@@ -42,7 +42,7 @@ const PROTOTYPES = [
4242
tagColor: '#5B5FC7',
4343
},
4444
{
45-
id: 'p5',
45+
id: 'facilitator-coordinates-agency',
4646
number: '05',
4747
title: 'Facilitator coordinates Agency',
4848
description:

0 commit comments

Comments
 (0)