Skip to content

Commit 3590f97

Browse files
committed
feat(web): add new aura backgrounds and update persona aura structure
- Introduced new vertical aura background images for various personas, enhancing visual representation in stories. - Updated the `PersonaAura` interface to include a vertical background property for better support of story layouts. - Adjusted existing persona aura definitions to incorporate the new vertical backgrounds, ensuring consistency across the application.
1 parent 2a5891a commit 3590f97

9 files changed

Lines changed: 299 additions & 156 deletions
5.73 MB
Loading
6.05 MB
Loading
4.59 MB
Loading
4.97 MB
Loading
5.48 MB
Loading
4.74 MB
Loading
4.8 MB
Loading

apps/web/src/app/api/share/story/[userId]/route.tsx

Lines changed: 277 additions & 155 deletions
Large diffs are not rendered by default.

apps/web/src/lib/persona-auras.ts

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,10 @@
1515
*/
1616

1717
export interface PersonaAura {
18-
/** Full-card background image */
18+
/** Full-card background image (horizontal) */
1919
background: string;
20+
/** Vertical background for stories (9:16 aspect ratio) */
21+
verticalBackground: string;
2022
/** Compact icon/badge image */
2123
icon: string;
2224
/** Alt text describing the visual metaphor */
@@ -44,18 +46,21 @@ export const PERSONA_AURAS: Record<string, PersonaAura> = {
4446
// Dynamic/fast personas
4547
rapid_risk_taker: {
4648
background: "/aura-backgrounds/bg-rapid-risk-taker-v2.webp",
49+
verticalBackground: "/aura-backgrounds/bg-rapid-risk-taker-vertical.webp",
4750
icon: "/aura-icons/icon-rapid-risk-taker.webp",
4851
alt: "Purple flames and speed lines suggesting bold, fast movement",
4952
description: "Ships fast, skips guardrails, embraces risk",
5053
},
5154
prompt_sprinter: {
5255
background: "/aura-backgrounds/bg-prompt-sprinter-v2.webp",
56+
verticalBackground: "/aura-backgrounds/bg-prompt-sprinter-vertical.webp",
5357
icon: "/aura-icons/icon-prompt-sprinter.webp",
5458
alt: "Lightning bolts and iteration circles suggesting rapid prompting",
5559
description: "Rapid iteration cycles, fast prompting and fixing",
5660
},
5761
fix_loop_hacker: {
5862
background: "/aura-backgrounds/bg-prompt-sprinter-v2.webp",
63+
verticalBackground: "/aura-backgrounds/bg-prompt-sprinter-vertical.webp",
5964
icon: "/aura-icons/icon-fix-loop-hacker.webp",
6065
alt: "Loop arrows with bug being squashed - rapid debug cycles",
6166
description: "Quick fixes and rapid iteration loops",
@@ -64,18 +69,21 @@ export const PERSONA_AURAS: Record<string, PersonaAura> = {
6469
// Balanced/thoughtful personas
6570
balanced_builder: {
6671
background: "/aura-backgrounds/bg-reflective-balancer-v2.webp",
72+
verticalBackground: "/aura-backgrounds/bg-reflective-balancer-vertical.webp",
6773
icon: "/aura-icons/icon-balanced-builder.webp",
6874
alt: "Balance scale weighing building blocks - thoughtful construction",
6975
description: "Balanced approach between speed and safety",
7076
},
7177
reflective_balancer: {
7278
background: "/aura-backgrounds/bg-reflective-balancer-v2.webp",
79+
verticalBackground: "/aura-backgrounds/bg-reflective-balancer-vertical.webp",
7380
icon: "/aura-icons/icon-reflective-balancer.webp",
7481
alt: "Balance scales and yin-yang suggesting thoughtful equilibrium",
7582
description: "Thoughtful consideration of tradeoffs",
7683
},
7784
guardrailed_viber: {
7885
background: "/aura-backgrounds/bg-guardrailed-viber-v2.webp",
86+
verticalBackground: "/aura-backgrounds/bg-guardrailed-viber-vertical.webp",
7987
icon: "/aura-icons/icon-guardrailed-viber.webp",
8088
alt: "Shield with engineered guardrails and safety net mesh suggesting protection",
8189
description: "Tests as contracts, safety nets before shipping",
@@ -84,12 +92,14 @@ export const PERSONA_AURAS: Record<string, PersonaAura> = {
8492
// Structured/methodical personas
8593
spec_first_director: {
8694
background: "/aura-backgrounds/bg-methodical-architect-v2.webp",
95+
verticalBackground: "/aura-backgrounds/bg-methodical-architect-vertical.webp",
8796
icon: "/aura-icons/icon-spec-first-director.webp",
8897
alt: "Clipboard with flowchart directing arrows outward",
8998
description: "Specs and plans before implementation",
9099
},
91100
methodical_architect: {
92101
background: "/aura-backgrounds/bg-methodical-architect-v2.webp",
102+
verticalBackground: "/aura-backgrounds/bg-methodical-architect-vertical.webp",
93103
icon: "/aura-icons/icon-methodical-architect.webp",
94104
alt: "Isometric blocks on blueprint grid suggesting structured planning",
95105
description: "Plans carefully before building",
@@ -99,19 +109,22 @@ export const PERSONA_AURAS: Record<string, PersonaAura> = {
99109
// Gas Pump (Gas Town) for agent coordination
100110
vertical_slice_shipper: {
101111
background: "/aura-backgrounds/bg-orchestrator-v5.webp",
112+
verticalBackground: "/aura-backgrounds/bg-orchestrator-vertical.webp",
102113
icon: "/aura-icons/icon-vertical-slice-shipper.webp",
103114
alt: "Rocket carrying full stack - shipping complete end-to-end",
104115
description: "Ships complete vertical slices end-to-end",
105116
},
106117
// Factory for building/manufacturing personas
107118
toolsmith_viber: {
108119
background: "/aura-backgrounds/bg-orchestrator-factory.webp",
120+
verticalBackground: "/aura-backgrounds/bg-orchestrator-factory-vertical.webp",
109121
icon: "/aura-icons/icon-toolsmith-viber.webp",
110122
alt: "Anvil forging a gear with sparks - crafting tools",
111123
description: "Builds and coordinates tools and workflows",
112124
},
113125
infra_weaver: {
114126
background: "/aura-backgrounds/bg-orchestrator-factory.webp",
127+
verticalBackground: "/aura-backgrounds/bg-orchestrator-factory-vertical.webp",
115128
icon: "/aura-icons/icon-infra-weaver.webp",
116129
alt: "Spider web network with glowing nodes - weaving infrastructure",
117130
description: "Weaves infrastructure and systems together",
@@ -120,42 +133,49 @@ export const PERSONA_AURAS: Record<string, PersonaAura> = {
120133
// Legacy persona IDs (for backwards compatibility)
121134
"vibe-prototyper": {
122135
background: "/aura-backgrounds/bg-prompt-sprinter-v2.webp",
136+
verticalBackground: "/aura-backgrounds/bg-prompt-sprinter-vertical.webp",
123137
icon: "/aura-icons/icon-prompt-sprinter.webp",
124138
alt: "Creative burst pattern",
125139
description: "Fast prototyping and experimentation",
126140
},
127141
"test-validator": {
128142
background: "/aura-backgrounds/bg-guardrailed-viber-v2.webp",
143+
verticalBackground: "/aura-backgrounds/bg-guardrailed-viber-vertical.webp",
129144
icon: "/aura-icons/icon-guardrailed-viber.webp",
130145
alt: "Protective shield pattern",
131146
description: "Tests first, validates before shipping",
132147
},
133148
"spec-architect": {
134149
background: "/aura-backgrounds/bg-methodical-architect-v2.webp",
150+
verticalBackground: "/aura-backgrounds/bg-methodical-architect-vertical.webp",
135151
icon: "/aura-icons/icon-methodical-architect.webp",
136152
alt: "Blueprint grid pattern",
137153
description: "Architecture and specs before code",
138154
},
139155
"agent-orchestrator": {
140156
background: "/aura-backgrounds/bg-orchestrator-v5.webp",
157+
verticalBackground: "/aura-backgrounds/bg-orchestrator-vertical.webp",
141158
icon: "/aura-icons/icon-orchestrator.webp",
142159
alt: "Gas Town - fueling station for agent coordination",
143160
description: "Coordinates AI agents and workflows",
144161
},
145162
"reflective-balancer": {
146163
background: "/aura-backgrounds/bg-reflective-balancer-v2.webp",
164+
verticalBackground: "/aura-backgrounds/bg-reflective-balancer-vertical.webp",
147165
icon: "/aura-icons/icon-reflective-balancer.webp",
148166
alt: "Balance and equilibrium pattern",
149167
description: "Balances competing priorities",
150168
},
151169
"infra-architect": {
152170
background: "/aura-backgrounds/bg-orchestrator-factory.webp",
171+
verticalBackground: "/aura-backgrounds/bg-orchestrator-factory-vertical.webp",
153172
icon: "/aura-icons/icon-infra-weaver.webp",
154173
alt: "Factory infrastructure weaving pattern",
155174
description: "Infrastructure governance and system design",
156175
},
157176
"specialist-consultant": {
158177
background: "/aura-backgrounds/bg-methodical-architect-v2.webp",
178+
verticalBackground: "/aura-backgrounds/bg-methodical-architect-vertical.webp",
159179
icon: "/aura-icons/icon-spec-first-director.webp",
160180
alt: "Specification-driven direction and planning",
161181
description: "Assigns roles and review steps with precision",
@@ -165,6 +185,7 @@ export const PERSONA_AURAS: Record<string, PersonaAura> = {
165185
// Default aura for unknown personas - use the balanced one as neutral
166186
export const DEFAULT_AURA: PersonaAura = {
167187
background: "/aura-backgrounds/bg-reflective-balancer-v2.webp",
188+
verticalBackground: "/aura-backgrounds/bg-reflective-balancer-vertical.webp",
168189
icon: "/aura-icons/icon-reflective-balancer.webp",
169190
alt: "Abstract balanced pattern",
170191
description: "Your unique coding style",

0 commit comments

Comments
 (0)