@purview-dev/pm-docs-site 0.0.0-stage → 0.1.0-pre.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.
Files changed (69) hide show
  1. package/LICENSE.md +9 -0
  2. package/README.md +219 -2
  3. package/dist/cli.d.ts +2 -0
  4. package/dist/cli.js +90 -0
  5. package/dist/index.d.ts +7 -0
  6. package/dist/index.js +118 -0
  7. package/dist/options.d.ts +5 -0
  8. package/dist/options.js +46 -0
  9. package/dist/repo-docs.d.ts +33 -0
  10. package/dist/repo-docs.js +94 -0
  11. package/dist/schema-version.d.ts +10 -0
  12. package/dist/schema-version.js +19 -0
  13. package/dist/sidebar.d.ts +10 -0
  14. package/dist/sidebar.js +30 -0
  15. package/dist/site-options.d.ts +9 -0
  16. package/dist/site-options.js +39 -0
  17. package/dist/types.d.ts +47 -0
  18. package/dist/types.js +4 -0
  19. package/lib/repo-docs.ts +124 -0
  20. package/lib/schema-version.ts +24 -0
  21. package/package.json +68 -5
  22. package/src/components/ExportStamp.astro +29 -0
  23. package/src/components/FeatureSummary.astro +160 -0
  24. package/src/components/FeatureTable.astro +64 -0
  25. package/src/components/ItemDetail.astro +16 -0
  26. package/src/components/ItemDialog.astro +16 -0
  27. package/src/components/LinkedFrom.astro +33 -0
  28. package/src/components/LinkedText.astro +12 -0
  29. package/src/components/PlanInteractions.astro +30 -0
  30. package/src/components/RefLink.astro +18 -0
  31. package/src/components/StateBadge.astro +15 -0
  32. package/src/components/board/Board.tsx +244 -0
  33. package/src/components/board/KanbanItemCard.tsx +129 -0
  34. package/src/components/board/LinkRuns.tsx +21 -0
  35. package/src/components/board/TaskKanbanCard.tsx +81 -0
  36. package/src/components/board/useBoardUrlState.ts +41 -0
  37. package/src/components/lib/KanbanItemCard.astro +264 -0
  38. package/src/components/lib/StatusTimelineFeed.astro +194 -0
  39. package/src/components/lib/TaskKanbanCard.astro +215 -0
  40. package/src/components/timeline/Timeline.tsx +159 -0
  41. package/src/components/timeline/useTimelineLayout.ts +39 -0
  42. package/src/content.config.ts +16 -0
  43. package/src/env.d.ts +7 -0
  44. package/src/lib/board-data.ts +84 -0
  45. package/src/lib/board.ts +209 -0
  46. package/src/lib/planning-types.ts +207 -0
  47. package/src/lib/planning.ts +415 -0
  48. package/src/lib/references.ts +360 -0
  49. package/src/lib/timeline.ts +156 -0
  50. package/src/loaders/repo-docs.ts +69 -0
  51. package/src/pages/index.astro +158 -0
  52. package/src/pages/plan/board.astro +41 -0
  53. package/src/pages/plan/log.astro +83 -0
  54. package/src/pages/plan/risks/[id].astro +72 -0
  55. package/src/pages/plan/risks.astro +263 -0
  56. package/src/pages/plan/roadmap.astro +108 -0
  57. package/src/routes/plan/briefs.astro +66 -0
  58. package/src/routes/plan/features/[id].astro +113 -0
  59. package/src/routes/plan/features/index.astro +29 -0
  60. package/src/routes/plan/inbox.astro +78 -0
  61. package/src/routes/plan/milestones/[milestone].astro +113 -0
  62. package/src/routes/plan/milestones/index.astro +56 -0
  63. package/src/routes/plan/now.astro +135 -0
  64. package/src/routes/plan/strategy.astro +194 -0
  65. package/src/scripts/plan.ts +40 -0
  66. package/src/styles/components.css +491 -0
  67. package/src/styles/kanban.css +277 -0
  68. package/src/styles/timeline.css +210 -0
  69. package/src/styles/width.css +4 -0
@@ -0,0 +1,264 @@
1
+ ---
2
+ /**
3
+ * KanbanItemCard — Polished agile kanban ticket with priority pill, assignee avatar, attachment count, and comment indicators.
4
+ *
5
+ * From the Astro Components Kit by Konstantin (https://astrocomponents.dev/docs/kanban-item-card/,
6
+ * https://github.com/konstantinWDK/astro-components), MIT License. Copied from its manual-install
7
+ * source; the only changes are that hard-coded dark-theme colours use Starlight theme variables,
8
+ * so the card reads in light and dark themes, and that the title (and tag) can be a link, for the
9
+ * site's item popup and backlinks (href, itemId, tagHref), and the due-date line (and a title that is not a link) links known IDs.
10
+ *
11
+ * @param {string} title - The description or summary of the task ticket.
12
+ * @param {'low'|'medium'|'high'|'urgent'} priority - Priority level flag. Default is 'high'.
13
+ * @param {string} tag - Contextual sprint or component tag (e.g. 'Core Graphics').
14
+ * @param {string} assignee - Initials for assignee badge (e.g. 'AK'). Default is 'AK'.
15
+ * @param {string} dueDate - Due date label string. Default is 'Tomorrow'.
16
+ * @param {number} commentsCount - Number of discussion comments. Default is 3.
17
+ * @param {number} attachmentsCount - Number of files attached. Default is 2.
18
+ * @param {string} href - The title's link: the item's page. Optional.
19
+ * @param {string} itemId - The item's ID, marking the title link as the popup trigger. Optional.
20
+ * @param {string} tagHref - The tag's link. Optional.
21
+ */
22
+ import LinkedText from '../LinkedText.astro';
23
+
24
+ interface Props {
25
+ title?: string;
26
+ priority?: 'low' | 'medium' | 'high' | 'urgent';
27
+ tag?: string;
28
+ assignee?: string;
29
+ dueDate?: string;
30
+ commentsCount?: number;
31
+ attachmentsCount?: number;
32
+ href?: string;
33
+ itemId?: string;
34
+ tagHref?: string | null;
35
+ }
36
+
37
+ const {
38
+ title = 'Implement WebGL Shader Transition Pipeline',
39
+ priority = 'high',
40
+ tag = 'Core Graphics',
41
+ assignee = 'AK',
42
+ dueDate = 'Tomorrow',
43
+ commentsCount = 3,
44
+ attachmentsCount = 2,
45
+ href,
46
+ itemId,
47
+ tagHref,
48
+ } = Astro.props;
49
+
50
+ const priorityMap = {
51
+ low: { label: 'Low', color: '#059669', bg: 'rgba(16, 185, 129, 0.12)' },
52
+ medium: { label: 'Medium', color: '#d97706', bg: 'rgba(245, 158, 11, 0.12)' },
53
+ high: { label: 'High', color: '#dc2626', bg: 'rgba(239, 68, 68, 0.12)' },
54
+ urgent: { label: 'Urgent', color: '#db2777', bg: 'rgba(236, 72, 153, 0.15)' },
55
+ };
56
+
57
+ const currentPriority = priorityMap[priority] || priorityMap.high;
58
+ ---
59
+
60
+ <div class="k-item" tabindex="0" role="article" aria-label={`Task: ${title}`}>
61
+ <div class="k-item__head">
62
+ {tagHref ? <a class="k-item__tag" href={tagHref}>{tag}</a> : <span class="k-item__tag">{tag}</span>}
63
+ <span
64
+ class="k-item__priority"
65
+ style={`color: ${currentPriority.color}; background: ${currentPriority.bg}; border-color: ${currentPriority.color}33;`}
66
+ >
67
+ <span class="k-item__priority-dot" style={`background: ${currentPriority.color};`}></span>
68
+ {currentPriority.label}
69
+ </span>
70
+ </div>
71
+
72
+ <h4 class="k-item__title">{href ? <a class="plan-item-link" href={href} data-item={itemId}>{title}</a> : <LinkedText text={title} />}</h4>
73
+
74
+ <div class="k-item__footer">
75
+ <div class="k-item__meta">
76
+ <div class="k-item__meta-item" title="Due Date">
77
+ <svg
78
+ class="k-item__icon"
79
+ width="13"
80
+ height="13"
81
+ viewBox="0 0 24 24"
82
+ fill="none"
83
+ stroke="currentColor"
84
+ stroke-width="2"
85
+ stroke-linecap="round"
86
+ stroke-linejoin="round"
87
+ aria-hidden="true"
88
+ >
89
+ <circle cx="12" cy="12" r="10"></circle>
90
+ <polyline points="12 6 12 12 16 14"></polyline>
91
+ </svg>
92
+ <span><LinkedText text={dueDate} /></span>
93
+ </div>
94
+
95
+ {
96
+ commentsCount > 0 && (
97
+ <div class="k-item__meta-item" title={`${commentsCount} comments`}>
98
+ <svg
99
+ class="k-item__icon"
100
+ width="13"
101
+ height="13"
102
+ viewBox="0 0 24 24"
103
+ fill="none"
104
+ stroke="currentColor"
105
+ stroke-width="2"
106
+ stroke-linecap="round"
107
+ stroke-linejoin="round"
108
+ aria-hidden="true"
109
+ >
110
+ <path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z" />
111
+ </svg>
112
+ <span>{commentsCount}</span>
113
+ </div>
114
+ )
115
+ }
116
+
117
+ {
118
+ attachmentsCount > 0 && (
119
+ <div class="k-item__meta-item" title={`${attachmentsCount} attachments`}>
120
+ <svg
121
+ class="k-item__icon"
122
+ width="13"
123
+ height="13"
124
+ viewBox="0 0 24 24"
125
+ fill="none"
126
+ stroke="currentColor"
127
+ stroke-width="2"
128
+ stroke-linecap="round"
129
+ stroke-linejoin="round"
130
+ aria-hidden="true"
131
+ >
132
+ <path d="M21.44 11.05l-9.19 9.19a6 6 0 0 1-8.49-8.49l9.19-9.19a4 4 0 0 1 5.66 5.66l-9.2 9.19a2 2 0 0 1-2.83-2.83l8.49-8.48" />
133
+ </svg>
134
+ <span>{attachmentsCount}</span>
135
+ </div>
136
+ )
137
+ }
138
+ </div>
139
+
140
+ <div class="k-item__assignee" title={`Assigned to ${assignee}`}>
141
+ {assignee}
142
+ </div>
143
+ </div>
144
+ </div>
145
+
146
+ <style>
147
+ .k-item {
148
+ background: var(--sl-color-bg-nav, rgba(17, 24, 39, 0.7));
149
+ backdrop-filter: blur(12px);
150
+ border: 1px solid var(--sl-color-hairline, rgba(255, 255, 255, 0.08));
151
+ border-radius: var(--r-md, 12px);
152
+ padding: var(--sp-4, 1rem);
153
+ display: flex;
154
+ flex-direction: column;
155
+ gap: 0.65rem;
156
+ cursor: grab;
157
+ transition:
158
+ transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
159
+ border-color 0.2s ease,
160
+ box-shadow 0.2s ease;
161
+ max-width: 300px;
162
+ box-sizing: border-box;
163
+ outline: none;
164
+ }
165
+
166
+ .k-item:hover,
167
+ .k-item:focus-visible {
168
+ transform: translateY(-2px);
169
+ border-color: var(--sl-color-accent, rgba(99, 102, 241, 0.4));
170
+ box-shadow: 0 10px 24px -6px rgba(0, 0, 0, 0.25);
171
+ }
172
+
173
+ .k-item:focus-visible {
174
+ box-shadow: 0 0 0 2px var(--c-primary, #6366f1);
175
+ }
176
+
177
+ .k-item__head {
178
+ display: flex;
179
+ justify-content: space-between;
180
+ align-items: center;
181
+ gap: 0.5rem;
182
+ }
183
+
184
+ .k-item__tag {
185
+ font-size: 0.68rem;
186
+ font-weight: 700;
187
+ color: var(--c-text-2, #94a3b8);
188
+ background: var(--sl-color-bg, rgba(255, 255, 255, 0.04));
189
+ border: 1px solid var(--sl-color-hairline, rgba(255, 255, 255, 0.08));
190
+ padding: 2px 7px;
191
+ border-radius: 4px;
192
+ letter-spacing: 0.03em;
193
+ }
194
+
195
+ .k-item__priority {
196
+ font-size: 0.66rem;
197
+ font-weight: 800;
198
+ padding: 2px 7px;
199
+ border-radius: 4px;
200
+ border: 1px solid;
201
+ display: inline-flex;
202
+ align-items: center;
203
+ gap: 4px;
204
+ text-transform: uppercase;
205
+ letter-spacing: 0.04em;
206
+ }
207
+
208
+ .k-item__priority-dot {
209
+ width: 5px;
210
+ height: 5px;
211
+ border-radius: 50%;
212
+ }
213
+
214
+ .k-item__title {
215
+ margin: 0;
216
+ font-size: 0.88rem;
217
+ font-weight: 600;
218
+ color: var(--c-text-1, #f8fafc);
219
+ line-height: 1.45;
220
+ }
221
+
222
+ .k-item__footer {
223
+ display: flex;
224
+ justify-content: space-between;
225
+ align-items: center;
226
+ gap: 0.5rem;
227
+ padding-top: 0.5rem;
228
+ border-top: 1px solid var(--sl-color-hairline, rgba(255, 255, 255, 0.06));
229
+ margin-top: 0.1rem;
230
+ }
231
+
232
+ .k-item__meta {
233
+ display: flex;
234
+ align-items: center;
235
+ gap: 0.6rem;
236
+ }
237
+
238
+ .k-item__meta-item {
239
+ display: flex;
240
+ align-items: center;
241
+ gap: 3px;
242
+ font-size: 0.72rem;
243
+ color: var(--c-text-3, #64748b);
244
+ }
245
+
246
+ .k-item__icon {
247
+ opacity: 0.75;
248
+ }
249
+
250
+ .k-item__assignee {
251
+ min-width: 24px;
252
+ height: 24px;
253
+ padding: 0 4px;
254
+ box-sizing: border-box;
255
+ border-radius: 12px;
256
+ background: linear-gradient(135deg, var(--c-primary, #6366f1), var(--c-primary-light, #818cf8));
257
+ color: #fff;
258
+ font-size: 0.6rem;
259
+ font-weight: 800;
260
+ display: grid;
261
+ place-items: center;
262
+ border: 1px solid rgba(255, 255, 255, 0.2);
263
+ }
264
+ </style>
@@ -0,0 +1,194 @@
1
+ ---
2
+ /**
3
+ * StatusTimelineFeed — Chronological event audit feed with status icons, timestamps, and detail lines.
4
+ *
5
+ * From the Astro Components Kit by Konstantin (https://astrocomponents.dev/docs/status-timeline-feed/,
6
+ * https://github.com/konstantinWDK/astro-components), MIT License. Copied from its manual-install
7
+ * source; the only changes are that hard-coded dark-theme colours use Starlight theme variables,
8
+ * the feed fills its column instead of stopping at 440px, and an event's title can be a link (href,
9
+ * itemId) and its description links known IDs, for the site's item popup and backlinks.
10
+ *
11
+ * @param {Array<{title: string, desc: string, time: string, status: 'done' | 'active' | 'pending', href?: string, itemId?: string}>} events - Timeline events.
12
+ */
13
+ import LinkedText from '../LinkedText.astro';
14
+
15
+ interface Props {
16
+ events?: Array<{
17
+ title: string;
18
+ desc: string;
19
+ time: string;
20
+ status: 'done' | 'active' | 'pending';
21
+ href?: string;
22
+ itemId?: string;
23
+ }>;
24
+ }
25
+
26
+ const {
27
+ events = [
28
+ {
29
+ title: 'Production Deployment #104',
30
+ desc: 'Container vtzmu4t7 synchronized with latest Git commit.',
31
+ time: 'Just now',
32
+ status: 'done',
33
+ },
34
+ {
35
+ title: 'Automated Playwright Audits',
36
+ desc: 'All 214 pages verified with 0 visual regressions.',
37
+ time: '12 mins ago',
38
+ status: 'done',
39
+ },
40
+ {
41
+ title: 'Edge Cache Invalidation',
42
+ desc: 'Purging stale Cloudflare and Traefik edge routes.',
43
+ time: 'In progress',
44
+ status: 'active',
45
+ },
46
+ {
47
+ title: 'Global CDN Replication',
48
+ desc: 'Waiting for European and US west points of presence.',
49
+ time: 'Queued',
50
+ status: 'pending',
51
+ },
52
+ ],
53
+ } = Astro.props;
54
+ ---
55
+
56
+ <div class="status-feed">
57
+ <div class="status-feed__line" aria-hidden="true"></div>
58
+ {
59
+ events.map((evt) => (
60
+ <div class:list={['status-feed__item', `status-feed__item--${evt.status}`]}>
61
+ <div class="status-feed__bullet">
62
+ {evt.status === 'done' && '✓'}
63
+ {evt.status === 'active' && '●'}
64
+ {evt.status === 'pending' && '○'}
65
+ </div>
66
+ <div class="status-feed__content">
67
+ <div class="status-feed__header">
68
+ <h5 class="status-feed__title">{evt.href ? <a class="plan-item-link" href={evt.href} data-item={evt.itemId}>{evt.title}</a> : evt.title}</h5>
69
+ <span class="status-feed__time">{evt.time}</span>
70
+ </div>
71
+ <p class="status-feed__desc">
72
+ <LinkedText text={evt.desc} />
73
+ </p>
74
+ </div>
75
+ </div>
76
+ ))
77
+ }
78
+ </div>
79
+
80
+ <style>
81
+ .status-feed {
82
+ position: relative;
83
+ display: flex;
84
+ flex-direction: column;
85
+ gap: 20px;
86
+ width: 100%;
87
+ font-family: var(--font-sans, system-ui, sans-serif);
88
+ padding: 4px 0;
89
+ }
90
+
91
+ .status-feed__line {
92
+ position: absolute;
93
+ top: 14px;
94
+ bottom: 14px;
95
+ left: 12px;
96
+ width: 2px;
97
+ background: var(--sl-color-hairline, rgba(255, 255, 255, 0.08));
98
+ pointer-events: none;
99
+ }
100
+
101
+ .status-feed__item {
102
+ position: relative;
103
+ display: flex;
104
+ align-items: flex-start;
105
+ gap: 16px;
106
+ }
107
+
108
+ .status-feed__bullet {
109
+ position: relative;
110
+ z-index: 2;
111
+ display: grid;
112
+ place-items: center;
113
+ width: 26px;
114
+ height: 26px;
115
+ border-radius: 50%;
116
+ background: var(--sl-color-bg, #0a0a0e);
117
+ border: 1px solid var(--sl-color-gray-5, rgba(255, 255, 255, 0.15));
118
+ font-size: 0.75rem;
119
+ font-weight: 900;
120
+ flex-shrink: 0;
121
+ color: var(--c-text-3, #737373);
122
+ }
123
+
124
+ .status-feed__item--done .status-feed__bullet {
125
+ background: rgba(16, 185, 129, 0.15);
126
+ border-color: #10b981;
127
+ color: #059669;
128
+ }
129
+
130
+ .status-feed__item--active .status-feed__bullet {
131
+ background: rgba(212, 160, 23, 0.2);
132
+ border-color: var(--c-primary-light, #d4a017);
133
+ color: var(--c-primary-light, #d4a017);
134
+ box-shadow: 0 0 10px rgba(212, 160, 23, 0.5);
135
+ animation: status-pulse 2s infinite ease-in-out;
136
+ }
137
+
138
+ .status-feed__content {
139
+ flex: 1;
140
+ padding: 0.65rem 1rem;
141
+ background: var(--sl-color-bg-nav, rgba(255, 255, 255, 0.02));
142
+ border: 1px solid var(--sl-color-hairline, rgba(255, 255, 255, 0.06));
143
+ border-radius: var(--r-md, 12px);
144
+ transition: border-color 0.2s ease;
145
+ }
146
+
147
+ .status-feed__content:hover {
148
+ border-color: var(--sl-color-accent, rgba(184, 134, 11, 0.3));
149
+ }
150
+
151
+ .status-feed__header {
152
+ display: flex;
153
+ justify-content: space-between;
154
+ align-items: center;
155
+ gap: 1rem;
156
+ margin-bottom: 2px;
157
+ }
158
+
159
+ .status-feed__title {
160
+ font-size: 0.85rem;
161
+ font-weight: 700;
162
+ color: var(--c-text-1, #ffffff);
163
+ margin: 0;
164
+ }
165
+
166
+ .status-feed__time {
167
+ font-size: 0.7rem;
168
+ color: var(--c-text-3, #737373);
169
+ white-space: nowrap;
170
+ }
171
+
172
+ .status-feed__desc {
173
+ font-size: 0.78rem;
174
+ color: var(--c-text-2, #a3a3a3);
175
+ margin: 0;
176
+ line-height: 1.45;
177
+ }
178
+
179
+ @keyframes status-pulse {
180
+ 0%,
181
+ 100% {
182
+ transform: scale(1);
183
+ }
184
+ 50% {
185
+ transform: scale(1.1);
186
+ }
187
+ }
188
+
189
+ @media (prefers-reduced-motion: reduce) {
190
+ .status-feed__item--active .status-feed__bullet {
191
+ animation: none;
192
+ }
193
+ }
194
+ </style>
@@ -0,0 +1,215 @@
1
+ ---
2
+ /**
3
+ * TaskKanbanCard — Agile task card with priority labels, progress completion bar, and due date.
4
+ *
5
+ * From the Astro Components Kit by Konstantin (https://astrocomponents.dev/docs/task-kanban-card/,
6
+ * https://github.com/konstantinWDK/astro-components), MIT License. Copied from its manual-install
7
+ * source; the only changes are that hard-coded dark-theme colours use Starlight theme variables,
8
+ * so the card reads in light and dark themes, and that the task can be a link, for the site's
9
+ * item popup and backlinks (href, itemId), and a task that is not a link links known IDs.
10
+ *
11
+ * @param {string} task - The description of the task being managed.
12
+ * @param {string} date - Visual date string indicator (e.g. 'Oct 28').
13
+ * @param {string} assigneeInitials - Short initials for the user avatar (e.g. 'MJ').
14
+ * @param {'low'|'med'|'high'} priority - Priority tag variant. Default is 'med'.
15
+ * @param {number} progress - Task completion percentage (0 - 100). Default is 65.
16
+ * @param {string} href - The task's link: the item's page. Optional.
17
+ * @param {string} itemId - The item's ID, marking the link as the popup trigger. Optional.
18
+ */
19
+ import LinkedText from '../LinkedText.astro';
20
+
21
+ interface Props {
22
+ task?: string;
23
+ date?: string;
24
+ assigneeInitials?: string;
25
+ priority?: 'low' | 'med' | 'high';
26
+ progress?: number;
27
+ href?: string;
28
+ itemId?: string;
29
+ }
30
+
31
+ const {
32
+ task = 'Optimize dynamic route code-splitting and asset prefetching',
33
+ date = 'Oct 28',
34
+ assigneeInitials = 'MJ',
35
+ priority = 'med',
36
+ progress = 65,
37
+ href,
38
+ itemId,
39
+ } = Astro.props;
40
+
41
+ const priorityLabels = { low: 'Low', med: 'Medium', high: 'High' };
42
+ ---
43
+
44
+ <div class="task-card" role="article" aria-label={`Task: ${task}`}>
45
+ <div class="task-card__tags">
46
+ <span class={`task-card__tag task-card__tag--${priority}`}>
47
+ <span class="task-card__tag-dot" aria-hidden="true"></span>
48
+ {priorityLabels[priority]}
49
+ </span>
50
+ <span class="task-card__pct">{progress}%</span>
51
+ </div>
52
+
53
+ <p class="task-card__desc">{href ? <a class="plan-item-link" href={href} data-item={itemId}>{task}</a> : <LinkedText text={task} />}</p>
54
+
55
+ <div
56
+ class="task-card__progress-wrap"
57
+ role="progressbar"
58
+ aria-valuenow={progress}
59
+ aria-valuemin="0"
60
+ aria-valuemax="100"
61
+ aria-label="Task progress"
62
+ >
63
+ <div class="task-card__progress-bar" style={`width: ${progress}%;`}></div>
64
+ </div>
65
+
66
+ <div class="task-card__footer">
67
+ <div class="task-card__date">
68
+ <svg
69
+ class="task-card__date-icon"
70
+ width="13"
71
+ height="13"
72
+ viewBox="0 0 24 24"
73
+ fill="none"
74
+ stroke="currentColor"
75
+ stroke-width="2"
76
+ stroke-linecap="round"
77
+ stroke-linejoin="round"
78
+ aria-hidden="true"
79
+ >
80
+ <rect x="3" y="4" width="18" height="18" rx="2" ry="2"></rect>
81
+ <line x1="16" y1="2" x2="16" y2="6"></line>
82
+ <line x1="8" y1="2" x2="8" y2="6"></line>
83
+ <line x1="3" y1="10" x2="21" y2="10"></line>
84
+ </svg>
85
+ <span>{date}</span>
86
+ </div>
87
+
88
+ <div class="task-card__assignee" title={`Assigned to ${assigneeInitials}`}>
89
+ {assigneeInitials}
90
+ </div>
91
+ </div>
92
+ </div>
93
+
94
+ <style>
95
+ .task-card {
96
+ background: var(--sl-color-bg-nav, rgba(30, 41, 59, 0.7));
97
+ backdrop-filter: blur(12px);
98
+ padding: var(--sp-4, 1rem);
99
+ border-radius: var(--r-md, 12px);
100
+ border: 1px solid var(--sl-color-hairline, rgba(255, 255, 255, 0.08));
101
+ display: flex;
102
+ flex-direction: column;
103
+ gap: 0.65rem;
104
+ max-width: 320px;
105
+ box-sizing: border-box;
106
+ transition:
107
+ transform 0.2s ease,
108
+ border-color 0.2s ease,
109
+ box-shadow 0.2s ease;
110
+ }
111
+
112
+ .task-card:hover {
113
+ transform: translateY(-2px);
114
+ border-color: var(--sl-color-accent, rgba(99, 102, 241, 0.35));
115
+ box-shadow: 0 10px 24px -6px rgba(0, 0, 0, 0.25);
116
+ }
117
+
118
+ .task-card__tags {
119
+ display: flex;
120
+ justify-content: space-between;
121
+ align-items: center;
122
+ }
123
+
124
+ .task-card__tag {
125
+ font-size: 0.7rem;
126
+ font-weight: 700;
127
+ padding: 2px 8px;
128
+ border-radius: 4px;
129
+ display: inline-flex;
130
+ align-items: center;
131
+ gap: 4px;
132
+ }
133
+
134
+ .task-card__tag-dot {
135
+ width: 5px;
136
+ height: 5px;
137
+ border-radius: 50%;
138
+ background: currentColor;
139
+ }
140
+
141
+ .task-card__tag--high {
142
+ background: rgba(239, 68, 68, 0.12);
143
+ color: #dc2626;
144
+ }
145
+
146
+ .task-card__tag--med {
147
+ background: rgba(245, 158, 11, 0.12);
148
+ color: #b45309;
149
+ }
150
+
151
+ .task-card__tag--low {
152
+ background: rgba(52, 211, 153, 0.12);
153
+ color: #047857;
154
+ }
155
+
156
+ .task-card__pct {
157
+ font-size: 0.72rem;
158
+ font-weight: 700;
159
+ color: var(--c-text-2, #94a3b8);
160
+ }
161
+
162
+ .task-card__desc {
163
+ font-size: 0.88rem;
164
+ color: var(--c-text-1, #f1f5f9);
165
+ margin: 0;
166
+ font-weight: 500;
167
+ line-height: 1.45;
168
+ }
169
+
170
+ .task-card__progress-wrap {
171
+ height: 4px;
172
+ background: var(--sl-color-hairline, rgba(255, 255, 255, 0.08));
173
+ border-radius: 2px;
174
+ overflow: hidden;
175
+ }
176
+
177
+ .task-card__progress-bar {
178
+ height: 100%;
179
+ background: linear-gradient(90deg, var(--c-primary, #6366f1), var(--c-primary-light, #818cf8));
180
+ border-radius: 2px;
181
+ }
182
+
183
+ .task-card__footer {
184
+ display: flex;
185
+ justify-content: space-between;
186
+ align-items: center;
187
+ padding-top: 0.35rem;
188
+ }
189
+
190
+ .task-card__date {
191
+ display: flex;
192
+ align-items: center;
193
+ gap: 4px;
194
+ font-size: 0.75rem;
195
+ color: var(--c-text-2, #94a3b8);
196
+ }
197
+
198
+ .task-card__date-icon {
199
+ opacity: 0.75;
200
+ }
201
+
202
+ .task-card__assignee {
203
+ min-width: 24px;
204
+ height: 24px;
205
+ padding: 0 4px;
206
+ box-sizing: border-box;
207
+ background: var(--c-primary, #6366f1);
208
+ color: #fff;
209
+ font-size: 0.6rem;
210
+ border-radius: 12px;
211
+ display: grid;
212
+ place-items: center;
213
+ font-weight: 800;
214
+ }
215
+ </style>