@designa8/vibedesign-linear-internal-v1-b737 0.14.0 → 0.14.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/styles.css CHANGED
@@ -1903,6 +1903,12 @@
1903
1903
  .text-ink {
1904
1904
  color: var(--color-ink);
1905
1905
  }
1906
+ .text-ink\/80 {
1907
+ color: color-mix(in srgb, #1B1C22 80%, transparent);
1908
+ @supports (color: color-mix(in lab, red, red)) {
1909
+ color: color-mix(in oklab, var(--color-ink) 80%, transparent);
1910
+ }
1911
+ }
1906
1912
  .text-inverse-ink {
1907
1913
  color: var(--color-inverse-ink);
1908
1914
  }
@@ -2336,14 +2342,6 @@
2336
2342
  border-color: var(--color-semantic-success);
2337
2343
  }
2338
2344
  }
2339
- .hover\:-translate-y-px {
2340
- &:hover {
2341
- @media (hover: hover) {
2342
- --tw-translate-y: -1px;
2343
- translate: var(--tw-translate-x) var(--tw-translate-y);
2344
- }
2345
- }
2346
- }
2347
2345
  .hover\:border-hairline-soft {
2348
2346
  &:hover {
2349
2347
  @media (hover: hover) {
@@ -2541,12 +2539,6 @@
2541
2539
  }
2542
2540
  }
2543
2541
  }
2544
- .active\:translate-y-0 {
2545
- &:active {
2546
- --tw-translate-y: 0;
2547
- translate: var(--tw-translate-x) var(--tw-translate-y);
2548
- }
2549
- }
2550
2542
  .active\:cursor-grabbing {
2551
2543
  &:active {
2552
2544
  cursor: grabbing;
@@ -2896,16 +2888,6 @@
2896
2888
  transition-property: none;
2897
2889
  }
2898
2890
  }
2899
- .motion-reduce\:hover\:translate-y-0 {
2900
- @media (prefers-reduced-motion: reduce) {
2901
- &:hover {
2902
- @media (hover: hover) {
2903
- --tw-translate-y: 0;
2904
- translate: var(--tw-translate-x) var(--tw-translate-y);
2905
- }
2906
- }
2907
- }
2908
- }
2909
2891
  .sm\:left-auto {
2910
2892
  @media (width >= 640px) {
2911
2893
  left: auto;
@@ -3074,6 +3056,14 @@
3074
3056
  background-color: var(--color-ink);
3075
3057
  }
3076
3058
  }
3059
+ .dark\:text-ink\/85 {
3060
+ &:where([data-theme="dark"], [data-theme="dark"] *) {
3061
+ color: color-mix(in srgb, #1B1C22 85%, transparent);
3062
+ @supports (color: color-mix(in lab, red, red)) {
3063
+ color: color-mix(in oklab, var(--color-ink) 85%, transparent);
3064
+ }
3065
+ }
3066
+ }
3077
3067
 
3078
3068
  :root {
3079
3069
  --text-overline-text-transform: uppercase;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@designa8/vibedesign-linear-internal-v1-b737",
3
- "version": "0.14.0",
3
+ "version": "0.14.2",
4
4
  "description": "Complete design system \"My Project linear-internal-v1\" generated by Atoms Design.",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",
@@ -14,8 +14,8 @@ export interface AnnouncementCardProps {
14
14
  */
15
15
  variant?: "default" | "promo";
16
16
  /**
17
- * Large glyph drawn over the illustration. Promo only. Renders in inverse ink so
18
- * it stays legible on the gradient.
17
+ * Large glyph drawn over the illustration. Promo only. Drawn in ink so it stays
18
+ * legible on the gradient in both themes (near-black on light, white on dark).
19
19
  */
20
20
  icon?: IconName;
21
21
  /** Destination. Used as the fallback when `onClick` is not supplied. */
@@ -35,49 +35,56 @@ const cardBase =
35
35
  "group relative flex w-full cursor-pointer overflow-hidden rounded-xl border border-hairline transition duration-200 ease-out focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus-blue";
36
36
 
37
37
  /**
38
- * The illustration dissolves toward the copy: the left of the card stays clean
39
- * canvas, so the copy sits on a pale wash while the colour builds on the right.
38
+ * The illustration dissolves toward the copy: fully transparent across the whole
39
+ * copy column, then a long slow ramp. Nothing opaque appears before ~64% of the
40
+ * width, so the title and subtitle always read on the plain card surface — on a
41
+ * narrow rail and on a wide card alike.
40
42
  */
41
43
  const LEFT_FADE =
42
- "linear-gradient(to right, transparent 30%, color-mix(in srgb, black 40%, transparent) 44%, color-mix(in srgb, black 84%, transparent) 56%, black 64%)";
44
+ "linear-gradient(to right, transparent 62%, color-mix(in srgb, black 18%, transparent) 72%, color-mix(in srgb, black 62%, transparent) 82%, black 92%)";
43
45
 
44
46
  /**
45
- * The warm corner wash: peach at the very top-right, drifting through pink violet
46
- * until it blends into the hills. Painted above them so it warms their crests the
47
- * way the reference does, kept tight so it never whitens the whole card.
47
+ * The warm corner wash — peach at the top-right corner drifting through pink on its
48
+ * way down. Painted as the bottom layer, so the hills stay saturated and the wash
49
+ * only shows on the near-white field above their crests.
48
50
  */
49
51
  const GLOW =
50
- "radial-gradient(42% 58% at 100% -8%, var(--color-promo-glow) 0%, color-mix(in srgb, var(--color-promo-glow-pink) 72%, transparent) 44%, transparent 84%)";
52
+ "radial-gradient(62% 54% at 100% -18%, var(--color-promo-glow) 0%, color-mix(in srgb, var(--color-promo-glow-pink) 62%, transparent) 48%, transparent 88%)";
51
53
 
52
54
  interface Hill {
53
55
  id: string;
54
56
  /**
55
- * Alpha mask: one broad ellipse whose centre sits just below the card, so its
56
- * gently curved crest falls inside the card — a rolling hill, never a circle. The
57
- * crests step down from the back hill at the right to the front hill, which
58
- * sweeps along the bottom-left like the reference.
57
+ * One very wide ellipse whose centre sits below the card, so only its gently
58
+ * curved crest falls inside and the flanks sink out of the bottom edge — a rolling
59
+ * hill, never a diagonal sweep. Each crest height is quoted in the layer comments.
59
60
  */
60
61
  shape: string;
61
62
  /** Vertical shading within the hill, so each layer falls off toward its base. */
62
63
  fill: string;
63
64
  }
64
65
 
65
- /** Back to front: deep indigo-violet, then violet, then the bright cyan front hill. */
66
+ /**
67
+ * Back to front, crests quoted as a share of the card height. The band occupies only
68
+ * the bottom ~55-60% and the top-right keeps its warm glow.
69
+ * violet: crest ~42%, peaking around three-quarters of the width — the main hill.
70
+ * indigo: crest ~30% at the far right, so the glyph sits on saturated violet.
71
+ * cyan: crest ~62%, drawn last, the bright front hill along the lower-left.
72
+ */
66
73
  const HILLS: Hill[] = [
67
74
  {
68
- id: "back",
69
- shape: "radial-gradient(64% 118% at 104% 108%, black 0 99.2%, transparent 100%)",
70
- fill: "linear-gradient(200deg, var(--color-promo-hill-back) 0%, var(--color-promo-hill-back-deep) 94%)",
75
+ id: "violet",
76
+ shape: "radial-gradient(48% 80% at 76% 122%, black 0 98.6%, transparent 100%)",
77
+ fill: "linear-gradient(188deg, var(--color-promo-hill-mid) 0%, var(--color-promo-hill-mid-deep) 88%)",
71
78
  },
72
79
  {
73
- id: "middle",
74
- shape: "radial-gradient(54% 104% at 70% 120%, black 0 99.2%, transparent 100%)",
75
- fill: "linear-gradient(188deg, var(--color-promo-hill-mid) 0%, var(--color-promo-hill-mid-deep) 92%)",
80
+ id: "indigo",
81
+ shape: "radial-gradient(32% 100% at 100% 130%, black 0 98.6%, transparent 100%)",
82
+ fill: "linear-gradient(190deg, var(--color-promo-hill-back) 0%, var(--color-promo-hill-back-deep) 90%)",
76
83
  },
77
84
  {
78
- id: "front",
79
- shape: "radial-gradient(66% 88% at 30% 142%, black 0 99.2%, transparent 100%)",
80
- fill: "linear-gradient(to bottom, var(--color-promo-hill-front) 0%, var(--color-promo-hill-front-deep) 96%)",
85
+ id: "cyan",
86
+ shape: "radial-gradient(38% 68% at 54% 136%, black 0 98.6%, transparent 100%)",
87
+ fill: "linear-gradient(to bottom, var(--color-promo-hill-front) 0%, var(--color-promo-hill-front-deep) 92%)",
81
88
  },
82
89
  ];
83
90
 
@@ -99,36 +106,41 @@ export const AnnouncementCard = React.forwardRef<HTMLAnchorElement, Announcement
99
106
  aria-label={subtitle ? `${eyebrow}: ${title} — ${subtitle}` : `${eyebrow}: ${title}`}
100
107
  className={cn(
101
108
  cardBase,
102
- "items-center gap-xs bg-canvas py-base pl-md pr-sm shadow-card",
103
- "hover:-translate-y-px hover:shadow-md active:translate-y-0 motion-reduce:transition-none motion-reduce:hover:translate-y-0",
109
+ // Flat in the flow: no lift, no shadow escalation, so the card can never
110
+ // ride up over the nav rows above it. Hover is a hairline emphasis only.
111
+ "items-center gap-md bg-canvas py-base pl-md pr-sm",
112
+ "hover:border-hairline-strong",
104
113
  className,
105
114
  )}
106
115
  >
107
- {/* Decorative illustration only: the whole layer is masked to a horizontal
108
- fade, so the hills and the glow both dissolve before reaching the copy. */}
109
- <span aria-hidden="true" className="pointer-events-none absolute inset-0 overflow-hidden">
110
- <span
111
- className="absolute inset-0"
112
- style={{ maskImage: LEFT_FADE, WebkitMaskImage: LEFT_FADE }}
113
- >
114
- {HILLS.map((hill) => (
115
- <span
116
- key={hill.id}
117
- className="absolute inset-0"
118
- style={{
119
- backgroundImage: hill.fill,
120
- maskImage: hill.shape,
121
- WebkitMaskImage: hill.shape,
122
- }}
123
- />
124
- ))}
125
- <span className="absolute inset-0" style={{ backgroundImage: GLOW }} />
126
- </span>
116
+ {/* Decorative illustration only: one masked layer, so the hills and the glow
117
+ both dissolve well before they reach the copy. */}
118
+ <span
119
+ aria-hidden="true"
120
+ className="pointer-events-none absolute inset-0 overflow-hidden"
121
+ style={{ maskImage: LEFT_FADE, WebkitMaskImage: LEFT_FADE }}
122
+ >
123
+ <span className="absolute inset-0" style={{ backgroundImage: GLOW }} />
124
+ {HILLS.map((hill) => (
125
+ <span
126
+ key={hill.id}
127
+ className="absolute inset-0"
128
+ style={{
129
+ backgroundImage: hill.fill,
130
+ maskImage: hill.shape,
131
+ WebkitMaskImage: hill.shape,
132
+ }}
133
+ />
134
+ ))}
127
135
  </span>
128
136
 
129
- <span className="relative flex min-w-0 flex-1 flex-col gap-xxs">
130
- <span className="truncate text-body-md font-weight-heading-sm text-ink">{title}</span>
131
- {subtitle && <span className="truncate text-caption text-muted">{subtitle}</span>}
137
+ <span className="relative flex min-w-0 flex-1 flex-col gap-xs">
138
+ {/* Near-black on the light card, near-white on the dark one — `ink` flips
139
+ with the theme, so no `dark:` override is needed for the title. */}
140
+ <span className="truncate text-body-md font-weight-label text-ink">{title}</span>
141
+ {subtitle && (
142
+ <span className="truncate text-caption text-ink/80 dark:text-ink/85">{subtitle}</span>
143
+ )}
132
144
  </span>
133
145
 
134
146
  {icon && (
@@ -136,8 +148,7 @@ export const AnnouncementCard = React.forwardRef<HTMLAnchorElement, Announcement
136
148
  name={icon}
137
149
  size={26}
138
150
  strokeWidth={2}
139
- tone="inverse"
140
- className="relative shrink-0"
151
+ className="relative shrink-0 text-ink"
141
152
  />
142
153
  )}
143
154
  </a>
@@ -7,7 +7,35 @@ export default function Preview() {
7
7
  return (
8
8
  <div className="w-full max-w-3xl mx-auto p-lg space-y-lg bg-canvas">
9
9
  <div className="space-y-sm">
10
- <p className="text-caption text-muted">Promo — upgrade card with illustration</p>
10
+ <p className="text-caption text-muted">
11
+ Promo in the rail — hills stay low and to the right, copy sits on clean white
12
+ </p>
13
+ {/* Rail frame only: fixed width so the card is judged at its real sidebar size. */}
14
+ <div className="space-y-sm" style={{ width: "256px" }}>
15
+ <AnnouncementCard
16
+ variant="promo"
17
+ eyebrow="Plan"
18
+ title="Upgrade to Pro"
19
+ subtitle="Unlock more features"
20
+ icon="crown"
21
+ href="#upgrade"
22
+ onClick={() => setClicks((n) => n + 1)}
23
+ />
24
+ <AnnouncementCard
25
+ variant="promo"
26
+ eyebrow="Credits"
27
+ title="Add credits"
28
+ subtitle="Top up when you run low"
29
+ icon="zap"
30
+ href="#credits"
31
+ onClick={() => setClicks((n) => n + 1)}
32
+ />
33
+ </div>
34
+ <p className="text-caption text-muted">Click handled: {clicks}</p>
35
+ </div>
36
+
37
+ <div className="space-y-sm">
38
+ <p className="text-caption text-muted">Promo at full width</p>
11
39
  <AnnouncementCard
12
40
  variant="promo"
13
41
  eyebrow="Plan"
@@ -17,7 +45,6 @@ export default function Preview() {
17
45
  href="#upgrade"
18
46
  onClick={() => setClicks((n) => n + 1)}
19
47
  />
20
- <p className="text-caption text-muted">Click handled: {clicks}</p>
21
48
  </div>
22
49
 
23
50
  <div className="space-y-sm">
@@ -19,15 +19,20 @@ const SECTIONS: SidebarSection[] = [
19
19
  id: "teams",
20
20
  label: "Your teams",
21
21
  items: [
22
- {
23
- id: "engineering",
24
- label: "Engineering",
25
- icon: "monitor",
26
- children: [
27
- { id: "eng-issues", label: "Issues", icon: "copy", badge: "12" },
28
- { id: "eng-projects", label: "Projects", icon: "box" },
29
- ],
30
- },
22
+ { id: "core", label: "My Project core-app", icon: "box" },
23
+ { id: "canva", label: "My Project canva-deepseek", icon: "box" },
24
+ { id: "supabase", label: "My Project supabase-deeps", icon: "box" },
25
+ { id: "cloud", label: "My Project cloud-runtime", icon: "box" },
26
+ { id: "design", label: "My Project design-tokens", icon: "box" },
27
+ ],
28
+ },
29
+ {
30
+ id: "try",
31
+ label: "Try",
32
+ items: [
33
+ { id: "import", label: "Import issues", icon: "copy" },
34
+ { id: "invite", label: "Invite people", icon: "plus" },
35
+ { id: "cycles", label: "Cycles", icon: "circle-dot" },
31
36
  ],
32
37
  },
33
38
  ];
@@ -71,7 +76,7 @@ export default function SidebarPreview() {
71
76
  const [collapsed, setCollapsed] = React.useState(false);
72
77
  const [mobileOpen, setMobileOpen] = React.useState(false);
73
78
  const [active, setActive] = React.useState("my-issues");
74
- const [upgrades, setUpgrades] = React.useState(0);
79
+ const [credits, setCredits] = React.useState(0);
75
80
 
76
81
  const navigate = (link: { id: string }, e: React.MouseEvent<HTMLAnchorElement>) => {
77
82
  e.preventDefault();
@@ -80,7 +85,7 @@ export default function SidebarPreview() {
80
85
 
81
86
  const shared = {
82
87
  sections: SECTIONS,
83
- defaultExpanded: ["teams", "engineering"],
88
+ defaultExpanded: ["teams", "try"],
84
89
  activeId: active,
85
90
  onNavigate: navigate,
86
91
  workspaceName: "Northwind Studio",
@@ -93,26 +98,26 @@ export default function SidebarPreview() {
93
98
  };
94
99
 
95
100
  const promoAnnouncement = {
96
- eyebrow: "Plan",
97
- title: "Upgrade to Pro",
98
- subtitle: "Unlock more features",
101
+ eyebrow: "Credits",
102
+ title: "Add credits",
103
+ subtitle: "Top up when you run low",
99
104
  variant: "promo" as const,
100
- icon: "crown" as const,
101
- href: "#upgrade",
102
- onClick: () => setUpgrades((n) => n + 1),
105
+ icon: "zap" as const,
106
+ href: "#credits",
107
+ onClick: () => setCredits((n) => n + 1),
103
108
  };
104
109
 
105
110
  return (
106
111
  <div className="mx-auto w-full max-w-4xl space-y-md p-md">
107
112
  <p className="text-caption text-muted">
108
- The workspace switcher opens a menu when `workspaceMenuItems` is supplied — click a switcher to try it.
109
- The pro card below is the new promo announcement; clicking it increments the counter instead of navigating.
113
+ The nav is the only scrolling region: its last row ends at the hairline above the promo card, so no
114
+ project row can slide under the card. Rows are 32px tall so a longer project list still fits above it.
110
115
  </p>
111
116
 
112
117
  <div className="grid w-full gap-md md:grid-cols-2">
113
118
  <div className="w-full">
114
- <p className="mb-xs text-caption text-muted">Default announcement — unchanged</p>
115
- <div className="w-full overflow-hidden rounded-lg border border-hairline" style={{ height: "16rem" }}>
119
+ <p className="mb-xs text-caption text-muted">Default announcement card in flow</p>
120
+ <div className="w-full overflow-hidden rounded-lg border border-hairline" style={{ height: "24rem" }}>
116
121
  <Sidebar
117
122
  {...shared}
118
123
  {...menu}
@@ -124,27 +129,28 @@ export default function SidebarPreview() {
124
129
  >
125
130
  <div className="p-md">
126
131
  <h3 className="text-heading-sm text-ink">Issues</h3>
127
- <p className="mt-xs text-body-sm text-muted">Fold the rail with the panel button to try the avatar trigger.</p>
132
+ <p className="mt-xs text-body-sm text-muted">
133
+ Fold the rail with the panel button to try the avatar trigger.
134
+ </p>
128
135
  </div>
129
136
  </Sidebar>
130
137
  </div>
131
138
  </div>
132
139
 
133
140
  <div className="w-full">
134
- <p className="mb-xs text-caption text-muted">Promo announcement — upgrade card ({upgrades} clicks)</p>
135
- <div className="w-full overflow-hidden rounded-lg border border-hairline" style={{ height: "16rem" }}>
141
+ <p className="mb-xs text-caption text-muted">Promo card — "{credits}" opened {credits} time(s)</p>
142
+ <div className="w-full overflow-hidden rounded-lg border border-hairline" style={{ height: "24rem" }}>
136
143
  <Sidebar
137
144
  {...shared}
138
145
  {...menu}
139
146
  headerActions={HEADER_ACTIONS}
140
147
  announcement={promoAnnouncement}
141
148
  onSettingsClick={() => {}}
142
- workspacePlacement="bottom"
143
149
  >
144
150
  <div className="p-md">
145
151
  <h3 className="text-heading-sm text-ink">Issues</h3>
146
152
  <p className="mt-xs text-body-sm text-muted">
147
- The promo card sits above the bottom workspace row and opens its menu upward.
153
+ Title, subtitle and the glyph all use ink — near-black here, near-white in dark mode.
148
154
  </p>
149
155
  </div>
150
156
  </Sidebar>
@@ -155,7 +161,7 @@ export default function SidebarPreview() {
155
161
  <div className="grid w-full gap-md md:grid-cols-2">
156
162
  <div className="w-full">
157
163
  <p className="mb-xs text-caption text-muted">Folded rail — announcement hidden as before</p>
158
- <div className="w-full overflow-hidden rounded-lg border border-hairline" style={{ height: "12rem" }}>
164
+ <div className="w-full overflow-hidden rounded-lg border border-hairline" style={{ height: "14rem" }}>
159
165
  <Sidebar
160
166
  {...shared}
161
167
  {...menu}
@@ -179,7 +185,7 @@ export default function SidebarPreview() {
179
185
  >
180
186
  <SidebarMobile
181
187
  sections={SECTIONS}
182
- defaultExpanded={["teams", "engineering"]}
188
+ defaultExpanded={["teams", "try"]}
183
189
  activeId={active}
184
190
  onNavigate={navigate}
185
191
  workspaceName="Northwind Studio"
@@ -79,7 +79,7 @@ export interface SidebarDesktopProps extends React.HTMLAttributes<HTMLDivElement
79
79
  onNavigate?: (link: SidebarDesktopLink, event: React.MouseEvent<HTMLAnchorElement>) => void;
80
80
  /** ids of groups and sections open on first render. Sections default to open. */
81
81
  defaultExpanded?: string[];
82
- /** Small "What's new" (or promo) card above the footer. */
82
+ /** Small "What's new" (or promo) card above the footer, in normal flow under the nav. */
83
83
  announcement?: SidebarDesktopAnnouncement;
84
84
  userName?: string;
85
85
  userAvatarSrc?: string;
@@ -109,8 +109,13 @@ export interface SidebarDesktopProps extends React.HTMLAttributes<HTMLDivElement
109
109
  const cn = (...parts: Array<string | false | null | undefined>) =>
110
110
  parts.filter(Boolean).join(" ");
111
111
 
112
+ /**
113
+ * Dense nav row: 32px tall, 16px glyph, 14px label, 8px horizontal inset and only
114
+ * 2px of breathing room between rows — so a long project list fits, and the list
115
+ * visibly ends above the announcement card instead of running under it.
116
+ */
112
117
  const linkBase =
113
- "flex h-8 items-center rounded-md border border-transparent text-body-md cursor-pointer transition-colors duration-150 ease-out focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-focus-blue";
118
+ "flex h-8 w-full items-center rounded-md border border-transparent px-sm text-body-md cursor-pointer transition-colors duration-150 ease-out focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-focus-blue";
114
119
 
115
120
  const hasBadge = (badge: React.ReactNode) => badge !== undefined && badge !== null && badge !== false;
116
121
 
@@ -202,7 +207,7 @@ export const SidebarDesktop = React.forwardRef<HTMLDivElement, SidebarDesktopPro
202
207
  onClick={(e) => onNavigate?.(link, e)}
203
208
  className={cn(
204
209
  linkBase,
205
- collapsed ? "w-9 justify-center" : cn("w-full gap-sm px-sm", nested && "pl-xl"),
210
+ collapsed ? "w-9 justify-center px-0" : cn("gap-sm", nested && "pl-xl"),
206
211
  current
207
212
  ? "bg-surface-strong text-ink font-weight-label"
208
213
  : "text-ink hover:bg-surface-soft active:bg-surface-strong",
@@ -388,8 +393,16 @@ export const SidebarDesktop = React.forwardRef<HTMLDivElement, SidebarDesktopPro
388
393
  {!workspaceAtBottom && workspaceRow}
389
394
 
390
395
  {/* Vertical-only containment: a horizontal two-finger swipe over the nav
391
- still reaches the browser's back/forward gesture. */}
392
- <nav aria-label="Main" className={cn("min-h-0 flex-1 overflow-y-auto overscroll-y-contain pb-sm", collapsed ? "px-0" : "px-sm")}>
396
+ still reaches the browser's back/forward gesture. This is the ONLY
397
+ scrolling region — the announcement card below it is a sibling, so the
398
+ list stops at the card's top edge instead of bleeding under it. */}
399
+ <nav
400
+ aria-label="Main"
401
+ className={cn(
402
+ "min-h-0 flex-1 overflow-y-auto overscroll-y-contain pb-sm",
403
+ collapsed ? "px-0" : "px-sm",
404
+ )}
405
+ >
393
406
  {sections.map((section, i) => {
394
407
  const sectionOpen = !section.label || isOpen(section.id);
395
408
  const listId = `${baseId}-section-${section.id}`;
@@ -404,7 +417,7 @@ export const SidebarDesktop = React.forwardRef<HTMLDivElement, SidebarDesktopPro
404
417
  onClick={() => flip(section.id)}
405
418
  className="px-sm"
406
419
  >
407
- <span className="inline-flex items-center gap-xs text-muted">
420
+ <span className="inline-flex items-center gap-xs text-caption text-muted">
408
421
  {section.label}
409
422
  <Icon
410
423
  name="chevron-down"
@@ -429,7 +442,10 @@ export const SidebarDesktop = React.forwardRef<HTMLDivElement, SidebarDesktopPro
429
442
  </nav>
430
443
 
431
444
  {announcement && !collapsed && (
432
- <div className="shrink-0 px-sm pb-sm">
445
+ /* Normal flow, after the scroll area: a 12px gap plus a hairline divider
446
+ separate the last nav row from the card. No negative margin, no
447
+ absolute placement, no lift — nothing can paint over a row. */
448
+ <div className="shrink-0 border-t border-hairline px-sm pb-sm pt-md">
433
449
  {announcement.variant === "promo" ? (
434
450
  <AnnouncementCard
435
451
  eyebrow={announcement.eyebrow}
@@ -441,22 +457,13 @@ export const SidebarDesktop = React.forwardRef<HTMLDivElement, SidebarDesktopPro
441
457
  variant="promo"
442
458
  />
443
459
  ) : (
444
- <a
445
- href={announcement.href ?? "#"}
446
- onClick={(event) => {
447
- if (announcement.onClick) {
448
- event.preventDefault();
449
- announcement.onClick();
450
- }
451
- }}
452
- className="flex flex-col gap-xxs rounded-lg border border-hairline bg-canvas px-md py-sm cursor-pointer transition-colors duration-150 ease-out hover:bg-surface-soft focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus-blue"
453
- >
454
- <span className="text-caption text-muted">{announcement.eyebrow}</span>
455
- <span className="text-body-sm text-ink">{announcement.title}</span>
456
- {announcement.subtitle && (
457
- <span className="text-caption text-muted">{announcement.subtitle}</span>
458
- )}
459
- </a>
460
+ <AnnouncementCard
461
+ eyebrow={announcement.eyebrow}
462
+ title={announcement.title}
463
+ subtitle={announcement.subtitle}
464
+ href={announcement.href}
465
+ onClick={announcement.onClick}
466
+ />
460
467
  )}
461
468
  </div>
462
469
  )}
@@ -17,25 +17,10 @@ const SECTIONS: SidebarDesktopSection[] = [
17
17
  id: "teams",
18
18
  label: "Your teams",
19
19
  items: [
20
- {
21
- id: "engineering",
22
- label: "Engineering Team",
23
- icon: "monitor",
24
- children: [
25
- { id: "eng-issues", label: "Issues", icon: "copy", badge: "12" },
26
- { id: "eng-projects", label: "Projects", icon: "box" },
27
- ],
28
- },
29
- {
30
- id: "workspace-team",
31
- label: "AS Mobbin",
32
- icon: "globe",
33
- children: [
34
- { id: "issues", label: "Issues", icon: "copy" },
35
- { id: "projects", label: "Projects", icon: "box" },
36
- { id: "views", label: "Views", icon: "layers" },
37
- ],
38
- },
20
+ { id: "engineering", label: "Engineering Team", icon: "monitor" },
21
+ { id: "canva", label: "My Project canva-deepseek", icon: "box" },
22
+ { id: "supabase", label: "My Project supabase-deeps", icon: "box" },
23
+ { id: "workspace-team", label: "My Project core-app", icon: "globe" },
39
24
  ],
40
25
  },
41
26
  {
@@ -72,15 +57,15 @@ const HEADER_ACTIONS = (
72
57
 
73
58
  export default function SidebarDesktopPreview() {
74
59
  const [collapsed, setCollapsed] = React.useState(false);
75
- const [active, setActive] = React.useState("issues");
76
- const [clicks, setClicks] = React.useState({ help: 0, settings: 0 });
60
+ const [active, setActive] = React.useState("canva");
61
+ const [credits, setCredits] = React.useState(0);
77
62
 
78
63
  return (
79
64
  <div className="mx-auto w-full max-w-5xl space-y-lg p-lg">
80
65
  <div className="w-full overflow-hidden rounded-lg border border-hairline" style={{ height: "26rem" }}>
81
66
  <SidebarDesktop
82
67
  sections={SECTIONS}
83
- defaultExpanded={["teams", "try", "workspace-team"]}
68
+ defaultExpanded={["teams", "try"]}
84
69
  activeId={active}
85
70
  onNavigate={(link, e) => {
86
71
  e.preventDefault();
@@ -89,20 +74,26 @@ export default function SidebarDesktopPreview() {
89
74
  workspaceName="AS Mobbin"
90
75
  userName="AS Mobbin"
91
76
  headerActions={HEADER_ACTIONS}
92
- onHelpClick={() => setClicks((c) => ({ ...c, help: c.help + 1 }))}
93
- onSettingsClick={() => setClicks((c) => ({ ...c, settings: c.settings + 1 }))}
77
+ onSettingsClick={() => setCredits((n) => n + 1)}
78
+ announcement={{
79
+ eyebrow: "Credits",
80
+ title: "Add credits",
81
+ subtitle: "Top up when you run low",
82
+ icon: "zap",
83
+ variant: "promo",
84
+ href: "#credits",
85
+ onClick: () => setCredits((n) => n + 1),
86
+ }}
94
87
  collapsed={collapsed}
95
88
  onCollapsedChange={setCollapsed}
96
89
  >
97
90
  <div className="p-lg">
98
91
  <h1 className="text-heading-sm text-ink">Issues</h1>
99
92
  <p className="mt-xs text-body-sm text-muted">
100
- Counts sit at the end of each row; search and compose sit beside the workspace switcher and fold
101
- away with the rail.
102
- </p>
103
- <p className="mt-sm text-body-sm text-muted">
104
- Footer buttons clicked: help {clicks.help}, settings {clicks.settings}.
93
+ The nav is the only scrolling region — its last row stops at the divider above the promo card,
94
+ so nothing slides under the card.
105
95
  </p>
96
+ <p className="mt-sm text-body-sm text-muted">Promo opened: {credits}</p>
106
97
  </div>
107
98
  </SidebarDesktop>
108
99
  </div>
@@ -114,7 +105,8 @@ export default function SidebarDesktopPreview() {
114
105
  defaultExpanded={["main"]}
115
106
  activeId="inbox"
116
107
  userName="AS Mobbin"
117
- onSettingsClick={() => setClicks((c) => ({ ...c, settings: c.settings + 1 }))}
108
+ onSettingsClick={() => setCredits((n) => n + 1)}
109
+ announcement={{ eyebrow: "What's new", title: "Projects are now shareable", href: "#new" }}
118
110
  />
119
111
  </div>
120
112
  <div className="w-full overflow-hidden rounded-lg border border-hairline" style={{ height: "20rem" }}>
@@ -128,8 +120,8 @@ export default function SidebarDesktopPreview() {
128
120
  </div>
129
121
  </div>
130
122
  <p className="text-body-sm text-muted">
131
- Left: settings handler only, so no help button. Right: showFooter=false drops the row for apps that keep
132
- those actions in the nav and account menu.
123
+ Left: plain "what's new" card in flow plus a settings handler. Right: showFooter=false drops the row for
124
+ apps that keep those actions in the nav and account menu.
133
125
  </p>
134
126
 
135
127
  <div className="w-full overflow-hidden rounded-lg border border-hairline" style={{ height: "22rem" }}>