1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
|
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE NoImplicitPrelude #-}
-- : dep clay
module Omni.Jr.Web.Style
( css,
statusBadgeClass,
priorityBadgeClass,
)
where
import Alpha hiding (wrap, (**), (|>))
import Clay
import qualified Clay.Flexbox as Flexbox
import qualified Clay.Media as Media
import qualified Clay.Stylesheet as Stylesheet
import qualified Data.Text.Lazy as LazyText
css :: LazyText.Text
css = render stylesheet
stylesheet :: Css
stylesheet = do
baseStyles
layoutStyles
navigationStyles
cardStyles
statusBadges
buttonStyles
formStyles
activityTimelineStyles
markdownStyles
responsiveStyles
darkModeStyles
baseStyles :: Css
baseStyles = do
star ? boxSizing borderBox
html <> body ? do
margin (px 0) (px 0) (px 0) (px 0)
padding (px 0) (px 0) (px 0) (px 0)
body ? do
fontFamily
[ "-apple-system",
"BlinkMacSystemFont",
"Segoe UI",
"Roboto",
"Helvetica Neue",
"Arial",
"Noto Sans",
"sans-serif"
]
[sansSerif]
fontSize (px 14)
lineHeight (em 1.3)
color "#1f2937"
backgroundColor "#f5f5f5"
minHeight (vh 100)
"h1" ? do
fontSize (px 20)
fontWeight bold
margin (px 0) (px 0) (em 0.3) (px 0)
"h2" ? do
fontSize (px 16)
fontWeight (weight 600)
color "#374151"
margin (em 1) (px 0) (em 0.5) (px 0)
"h3" ? do
fontSize (px 14)
fontWeight (weight 600)
color "#374151"
margin (em 0.75) (px 0) (em 0.25) (px 0)
a ? do
color "#0066cc"
textDecoration none
a # hover ? textDecoration underline
code ? do
fontFamily ["SF Mono", "Monaco", "Consolas", "monospace"] [monospace]
fontSize (em 0.9)
backgroundColor "#f3f4f6"
padding (px 1) (px 4) (px 1) (px 4)
borderRadius (px 2) (px 2) (px 2) (px 2)
pre ? do
fontFamily ["SF Mono", "Monaco", "Consolas", "monospace"] [monospace]
fontSize (px 12)
backgroundColor "#1e1e1e"
color "#d4d4d4"
padding (px 8) (px 8) (px 8) (px 8)
borderRadius (px 2) (px 2) (px 2) (px 2)
overflow auto
whiteSpace preWrap
maxHeight (px 500)
layoutStyles :: Css
layoutStyles = do
".container" ? do
width (pct 100)
maxWidth (px 960)
margin (px 0) auto (px 0) auto
padding (px 8) (px 12) (px 8) (px 12)
main_ ? do
Stylesheet.key "flex" ("1 0 auto" :: Text)
".page-content" ? do
padding (px 0) (px 0) (px 0) (px 0)
".stats-grid" ? do
display grid
Stylesheet.key "grid-template-columns" ("repeat(auto-fit, minmax(80px, 1fr))" :: Text)
Stylesheet.key "gap" ("6px" :: Text)
".task-list" ? do
display flex
flexDirection column
Stylesheet.key "gap" ("2px" :: Text)
".detail-row" ? do
display flex
flexWrap Flexbox.wrap
padding (px 6) (px 0) (px 6) (px 0)
borderBottom (px 1) solid "#e5e7eb"
".detail-row" # lastChild ? borderBottom (px 0) none transparent
".detail-label" ? do
fontWeight (weight 600)
width (px 100)
color "#6b7280"
minWidth (px 80)
fontSize (px 13)
".detail-value" ? do
Stylesheet.key "flex" ("1" :: Text)
minWidth (px 0)
".detail-section" ? do
marginTop (em 0.75)
paddingTop (em 0.75)
borderTop (px 1) solid "#e5e7eb"
".dep-list" <> ".child-list" ? do
margin (px 4) (px 0) (px 4) (px 0)
paddingLeft (px 16)
(".dep-list" ** li) <> (".child-list" ** li) ? margin (px 2) (px 0) (px 2) (px 0)
".dep-type" <> ".child-status" ? do
color "#6b7280"
fontSize (px 12)
".child-title" ? color "#374151"
".priority-desc" ? do
color "#6b7280"
marginLeft (px 4)
navigationStyles :: Css
navigationStyles = do
".navbar" ? do
backgroundColor white
padding (px 6) (px 12) (px 6) (px 12)
borderBottom (px 1) solid "#d0d0d0"
marginBottom (px 8)
display flex
alignItems center
justifyContent spaceBetween
flexWrap Flexbox.wrap
Stylesheet.key "gap" ("8px" :: Text)
".navbar-brand" ? do
fontSize (px 18)
fontWeight bold
color "#0066cc"
textDecoration none
".navbar-brand" # hover ? textDecoration none
".navbar-links" ? do
display flex
Stylesheet.key "gap" ("2px" :: Text)
flexWrap Flexbox.wrap
".navbar-link" ? do
display inlineBlock
padding (px 4) (px 10) (px 4) (px 10)
color "#374151"
textDecoration none
borderRadius (px 2) (px 2) (px 2) (px 2)
fontSize (px 13)
fontWeight (weight 500)
transition "background-color" (ms 150) ease (sec 0)
".navbar-link" # hover ? do
backgroundColor "#f3f4f6"
textDecoration none
header ? do
backgroundColor white
padding (px 6) (px 12) (px 6) (px 12)
borderBottom (px 1) solid "#d0d0d0"
marginBottom (px 8)
".nav-content" ? do
maxWidth (px 960)
margin (px 0) auto (px 0) auto
display flex
alignItems center
justifyContent spaceBetween
flexWrap Flexbox.wrap
Stylesheet.key "gap" ("8px" :: Text)
".nav-brand" ? do
fontSize (px 16)
fontWeight bold
color "#1f2937"
textDecoration none
".nav-brand" # hover ? textDecoration none
".nav-links" ? do
display flex
Stylesheet.key "gap" ("4px" :: Text)
flexWrap Flexbox.wrap
".actions" ? do
display flex
flexWrap Flexbox.wrap
Stylesheet.key "gap" ("6px" :: Text)
marginBottom (px 8)
cardStyles :: Css
cardStyles = do
".card"
<> ".task-card"
<> ".stat-card"
<> ".task-detail"
<> ".task-summary"
<> ".filter-form"
<> ".status-form"
<> ".diff-section"
<> ".review-actions"
? do
backgroundColor white
borderRadius (px 2) (px 2) (px 2) (px 2)
padding (px 8) (px 10) (px 8) (px 10)
border (px 1) solid "#d0d0d0"
".stat-card" ? textAlign center
".stat-count" ? do
fontSize (px 22)
fontWeight bold
".stat-label" ? do
fontSize (px 11)
color "#6b7280"
marginTop (px 2)
".stat-card.badge-open" ? do
borderLeft (px 4) solid "#f59e0b"
(".stat-card.badge-open" |> ".stat-count") ? color "#92400e"
".stat-card.badge-inprogress" ? borderLeft (px 4) solid "#3b82f6"
(".stat-card.badge-inprogress" |> ".stat-count") ? color "#1e40af"
".stat-card.badge-review" ? borderLeft (px 4) solid "#8b5cf6"
(".stat-card.badge-review" |> ".stat-count") ? color "#6b21a8"
".stat-card.badge-approved" ? borderLeft (px 4) solid "#06b6d4"
(".stat-card.badge-approved" |> ".stat-count") ? color "#0e7490"
".stat-card.badge-done" ? borderLeft (px 4) solid "#10b981"
(".stat-card.badge-done" |> ".stat-count") ? color "#065f46"
".task-card" ? do
transition "border-color" (ms 150) ease (sec 0)
".task-card" # hover ? do
borderColor "#999"
".task-card-link" ? do
display block
textDecoration none
color inherit
cursor pointer
".task-card-link" # hover ? textDecoration none
".task-header" ? do
display flex
flexWrap Flexbox.wrap
alignItems center
Stylesheet.key "gap" ("6px" :: Text)
marginBottom (px 4)
".task-id" ? do
fontFamily ["SF Mono", "Monaco", "monospace"] [monospace]
color "#0066cc"
textDecoration none
fontSize (px 12)
padding (px 2) (px 0) (px 2) (px 0)
".task-id" # hover ? textDecoration underline
".priority" ? do
fontSize (px 11)
color "#6b7280"
".task-title" ? do
fontSize (px 14)
margin (px 0) (px 0) (px 0) (px 0)
".empty-msg" ? do
color "#6b7280"
fontStyle italic
".ready-link" ? do
fontSize (px 13)
color "#0066cc"
".count-badge" ? do
backgroundColor "#0066cc"
color white
padding (px 2) (px 8) (px 2) (px 8)
borderRadius (px 10) (px 10) (px 10) (px 10)
fontSize (px 12)
verticalAlign middle
".description" ? do
backgroundColor "#f9fafb"
padding (px 8) (px 8) (px 8) (px 8)
borderRadius (px 2) (px 2) (px 2) (px 2)
margin (px 0) (px 0) (px 0) (px 0)
color "#374151"
fontSize (px 13)
".diff-block" ? do
maxHeight (px 600)
overflowY auto
".progress-bar" ? do
height (px 6)
backgroundColor "#e5e7eb"
borderRadius (px 2) (px 2) (px 2) (px 2)
overflow hidden
marginTop (px 6)
".progress-fill" ? do
height (pct 100)
backgroundColor "#0066cc"
borderRadius (px 2) (px 2) (px 2) (px 2)
transition "width" (ms 300) ease (sec 0)
".stats-section" ? do
backgroundColor white
borderRadius (px 2) (px 2) (px 2) (px 2)
padding (px 8) (px 10) (px 8) (px 10)
border (px 1) solid "#d0d0d0"
".stats-row" ? do
display flex
alignItems center
Stylesheet.key "gap" ("8px" :: Text)
padding (px 4) (px 0) (px 4) (px 0)
borderBottom (px 1) solid "#e5e7eb"
".stats-row" # lastChild ? borderBottom (px 0) none transparent
".stats-label" ? do
minWidth (px 80)
fontWeight (weight 500)
fontSize (px 13)
".stats-bar-container" ? do
Stylesheet.key "flex" ("1" :: Text)
".stats-count" ? do
minWidth (px 32)
textAlign (alignSide sideRight)
fontWeight (weight 500)
fontSize (px 13)
".summary-section" ? do
backgroundColor white
borderRadius (px 2) (px 2) (px 2) (px 2)
padding (px 8) (px 10) (px 8) (px 10)
border (px 1) solid "#d0d0d0"
".no-commit-msg" ? do
backgroundColor "#fff3cd"
border (px 1) solid "#ffc107"
borderRadius (px 2) (px 2) (px 2) (px 2)
padding (px 8) (px 10) (px 8) (px 10)
margin (px 8) (px 0) (px 8) (px 0)
".conflict-warning" ? do
backgroundColor "#fee2e2"
border (px 1) solid "#ef4444"
borderRadius (px 2) (px 2) (px 2) (px 2)
padding (px 8) (px 10) (px 8) (px 10)
margin (px 8) (px 0) (px 8) (px 0)
statusBadges :: Css
statusBadges = do
".badge" ? do
display inlineBlock
padding (px 2) (px 6) (px 2) (px 6)
borderRadius (px 2) (px 2) (px 2) (px 2)
fontSize (px 11)
fontWeight (weight 500)
whiteSpace nowrap
".badge-open" ? do
backgroundColor "#fef3c7"
color "#92400e"
".badge-inprogress" ? do
backgroundColor "#dbeafe"
color "#1e40af"
".badge-review" ? do
backgroundColor "#ede9fe"
color "#6b21a8"
".badge-approved" ? do
backgroundColor "#cffafe"
color "#0e7490"
".badge-done" ? do
backgroundColor "#d1fae5"
color "#065f46"
buttonStyles :: Css
buttonStyles = do
".btn"
<> ".action-btn"
<> ".filter-btn"
<> ".submit-btn"
<> ".accept-btn"
<> ".reject-btn"
<> ".review-link-btn"
? do
display inlineBlock
minHeight (px 32)
padding (px 6) (px 12) (px 6) (px 12)
borderRadius (px 2) (px 2) (px 2) (px 2)
border (px 0) none transparent
fontSize (px 13)
fontWeight (weight 500)
textDecoration none
cursor pointer
textAlign center
transition "all" (ms 150) ease (sec 0)
Stylesheet.key "touch-action" ("manipulation" :: Text)
".action-btn" ? do
backgroundColor white
border (px 1) solid "#d1d5db"
color "#374151"
".action-btn" # hover ? do
backgroundColor "#f9fafb"
borderColor "#9ca3af"
".action-btn-primary" <> ".filter-btn" <> ".submit-btn" ? do
backgroundColor "#0066cc"
color white
borderColor "#0066cc"
".action-btn-primary"
# hover
<> ".filter-btn"
# hover
<> ".submit-btn"
# hover
? do
backgroundColor "#0052a3"
".accept-btn" ? do
backgroundColor "#10b981"
color white
".accept-btn" # hover ? backgroundColor "#059669"
".reject-btn" ? do
backgroundColor "#ef4444"
color white
".reject-btn" # hover ? backgroundColor "#dc2626"
".clear-btn" ? do
display inlineBlock
minHeight (px 32)
padding (px 6) (px 10) (px 6) (px 10)
backgroundColor "#6b7280"
color white
borderRadius (px 2) (px 2) (px 2) (px 2)
textDecoration none
fontSize (px 13)
cursor pointer
".clear-btn" # hover ? backgroundColor "#4b5563"
".review-link-btn" ? do
backgroundColor "#8b5cf6"
color white
".review-link-btn" # hover ? backgroundColor "#7c3aed"
".review-link-section" ? margin (px 8) (px 0) (px 8) (px 0)
formStyles :: Css
formStyles = do
".filter-row" ? do
display flex
flexWrap Flexbox.wrap
Stylesheet.key "gap" ("8px" :: Text)
alignItems flexEnd
".filter-group" ? do
display flex
flexDirection column
Stylesheet.key "gap" ("2px" :: Text)
(".filter-group" |> label) ? do
fontSize (px 11)
color "#6b7280"
fontWeight (weight 500)
".filter-select" <> ".filter-input" <> ".status-select" ? do
minHeight (px 32)
padding (px 6) (px 10) (px 6) (px 10)
border (px 1) solid "#d1d5db"
borderRadius (px 2) (px 2) (px 2) (px 2)
fontSize (px 13)
minWidth (px 100)
".filter-input" ? minWidth (px 120)
".inline-form" ? display inlineBlock
".reject-form" ? do
display flex
Stylesheet.key "gap" ("6px" :: Text)
Stylesheet.key "flex" ("1" :: Text)
minWidth (px 200)
flexWrap Flexbox.wrap
".reject-notes" ? do
Stylesheet.key "flex" ("1" :: Text)
minWidth (px 160)
minHeight (px 32)
padding (px 6) (px 10) (px 6) (px 10)
border (px 1) solid "#d1d5db"
borderRadius (px 2) (px 2) (px 2) (px 2)
fontSize (px 13)
Stylesheet.key "resize" ("vertical" :: Text)
".edit-description" ? do
marginTop (px 8)
padding (px 8) (px 0) (px 0) (px 0)
borderTop (px 1) solid "#e5e7eb"
(".edit-description" |> "summary") ? do
cursor pointer
color "#0066cc"
fontSize (px 13)
fontWeight (weight 500)
(".edit-description" |> "summary") # hover ? textDecoration underline
".description-textarea" ? do
width (pct 100)
minHeight (px 250)
padding (px 8) (px 10) (px 8) (px 10)
border (px 1) solid "#d1d5db"
borderRadius (px 2) (px 2) (px 2) (px 2)
fontSize (px 13)
fontFamily ["SF Mono", "Monaco", "Consolas", "monospace"] [monospace]
lineHeight (em 1.5)
Stylesheet.key "resize" ("vertical" :: Text)
marginTop (px 8)
".form-actions" ? do
marginTop (px 8)
activityTimelineStyles :: Css
activityTimelineStyles = do
".activity-section" ? do
marginTop (em 1)
backgroundColor white
borderRadius (px 2) (px 2) (px 2) (px 2)
padding (px 8) (px 10) (px 8) (px 10)
border (px 1) solid "#d0d0d0"
".activity-timeline" ? do
position relative
paddingLeft (px 20)
marginTop (px 8)
".activity-timeline" # before ? do
Stylesheet.key "content" ("''" :: Text)
position absolute
left (px 6)
top (px 0)
bottom (px 0)
width (px 2)
backgroundColor "#e5e7eb"
".activity-item" ? do
position relative
display flex
Stylesheet.key "gap" ("8px" :: Text)
paddingBottom (px 10)
marginBottom (px 0)
".activity-item" # lastChild ? paddingBottom (px 0)
".activity-icon" ? do
position absolute
left (px (-16))
width (px 14)
height (px 14)
borderRadius (pct 50) (pct 50) (pct 50) (pct 50)
display flex
alignItems center
justifyContent center
fontSize (px 8)
fontWeight bold
backgroundColor white
border (px 2) solid "#e5e7eb"
".activity-content" ? do
Stylesheet.key "flex" ("1" :: Text)
".activity-header" ? do
display flex
alignItems center
Stylesheet.key "gap" ("6px" :: Text)
marginBottom (px 2)
".activity-stage" ? do
fontWeight (weight 600)
fontSize (px 12)
".activity-time" ? do
fontSize (px 11)
color "#6b7280"
".activity-message" ? do
margin (px 2) (px 0) (px 0) (px 0)
fontSize (px 12)
color "#374151"
".activity-metadata" ? do
marginTop (px 4)
(".activity-metadata" |> "summary") ? do
fontSize (px 11)
color "#6b7280"
cursor pointer
".metadata-json" ? do
fontSize (px 10)
backgroundColor "#f3f4f6"
padding (px 4) (px 6) (px 4) (px 6)
borderRadius (px 2) (px 2) (px 2) (px 2)
marginTop (px 2)
maxHeight (px 150)
overflow auto
".stage-claiming" |> ".activity-icon" ? do
borderColor "#3b82f6"
color "#3b82f6"
".stage-running" |> ".activity-icon" ? do
borderColor "#f59e0b"
color "#f59e0b"
".stage-reviewing" |> ".activity-icon" ? do
borderColor "#8b5cf6"
color "#8b5cf6"
".stage-retrying" |> ".activity-icon" ? do
borderColor "#f97316"
color "#f97316"
".stage-completed" |> ".activity-icon" ? do
borderColor "#10b981"
color "#10b981"
".stage-failed" |> ".activity-icon" ? do
borderColor "#ef4444"
color "#ef4444"
markdownStyles :: Css
markdownStyles = do
".markdown-content" ? do
width (pct 100)
lineHeight (em 1.6)
fontSize (px 14)
color "#374151"
".md-h1" ? do
fontSize (px 18)
fontWeight bold
margin (em 1) (px 0) (em 0.5) (px 0)
paddingBottom (em 0.3)
borderBottom (px 1) solid "#e5e7eb"
".md-h2" ? do
fontSize (px 16)
fontWeight (weight 600)
margin (em 0.8) (px 0) (em 0.4) (px 0)
".md-h3" ? do
fontSize (px 14)
fontWeight (weight 600)
margin (em 0.6) (px 0) (em 0.3) (px 0)
".md-para" ? do
margin (em 0.5) (px 0) (em 0.5) (px 0)
".md-code" ? do
fontFamily ["SF Mono", "Monaco", "Consolas", "monospace"] [monospace]
fontSize (px 12)
backgroundColor "#1e1e1e"
color "#d4d4d4"
padding (px 10) (px 12) (px 10) (px 12)
borderRadius (px 4) (px 4) (px 4) (px 4)
overflow auto
whiteSpace preWrap
margin (em 0.5) (px 0) (em 0.5) (px 0)
".md-list" ? do
margin (em 0.5) (px 0) (em 0.5) (px 0)
paddingLeft (px 24)
(".md-list" ** li) ? do
margin (px 4) (px 0) (px 4) (px 0)
".md-inline-code" ? do
fontFamily ["SF Mono", "Monaco", "Consolas", "monospace"] [monospace]
fontSize (em 0.9)
backgroundColor "#f3f4f6"
padding (px 1) (px 4) (px 1) (px 4)
borderRadius (px 2) (px 2) (px 2) (px 2)
responsiveStyles :: Css
responsiveStyles = do
query Media.screen [Media.maxWidth (px 600)] <| do
body ? fontSize (px 13)
".container" ? padding (px 6) (px 8) (px 6) (px 8)
".navbar" ? do
flexDirection column
alignItems flexStart
padding (px 6) (px 8) (px 6) (px 8)
".navbar-links" ? do
width (pct 100)
justifyContent center
".nav-content" ? do
flexDirection column
alignItems flexStart
".stats-grid" ? do
Stylesheet.key "grid-template-columns" ("repeat(2, 1fr)" :: Text)
".detail-row" ? do
flexDirection column
Stylesheet.key "gap" ("2px" :: Text)
".detail-label" ? width auto
".filter-row" ? flexDirection column
".filter-group" ? width (pct 100)
".filter-select" <> ".filter-input" ? width (pct 100)
".review-actions" ? do
flexDirection column
".reject-form" ? do
width (pct 100)
flexDirection column
".reject-notes" ? width (pct 100)
".actions" ? flexDirection column
".action-btn" ? width (pct 100)
darkModeStyles :: Css
darkModeStyles =
query Media.screen [prefersDark] <| do
body ? do
backgroundColor "#111827"
color "#f3f4f6"
".card"
<> ".task-card"
<> ".stat-card"
<> ".task-detail"
<> ".task-summary"
<> ".filter-form"
<> ".status-form"
<> ".diff-section"
<> ".review-actions"
? do
backgroundColor "#1f2937"
borderColor "#374151"
header ? do
backgroundColor "#1f2937"
borderColor "#374151"
".navbar" ? do
backgroundColor "#1f2937"
borderColor "#374151"
".navbar-brand" ? color "#60a5fa"
".navbar-link" ? color "#d1d5db"
".navbar-link" # hover ? backgroundColor "#374151"
".nav-brand" ? color "#f3f4f6"
"h2" <> "h3" ? color "#d1d5db"
a ? color "#60a5fa"
".detail-row" ? borderBottomColor "#374151"
".detail-label"
<> ".priority"
<> ".dep-type"
<> ".child-status"
<> ".empty-msg"
<> ".stat-label"
<> ".priority-desc"
? color "#9ca3af"
".child-title" ? color "#d1d5db"
code ? do
backgroundColor "#374151"
color "#f3f4f6"
".detail-section" ? borderTopColor "#374151"
".description" ? backgroundColor "#374151"
".badge-open" ? do
backgroundColor "#78350f"
color "#fcd34d"
".badge-inprogress" ? do
backgroundColor "#1e3a8a"
color "#93c5fd"
".badge-review" ? do
backgroundColor "#4c1d95"
color "#c4b5fd"
".badge-approved" ? do
backgroundColor "#164e63"
color "#67e8f9"
".badge-done" ? do
backgroundColor "#064e3b"
color "#6ee7b7"
".action-btn" ? do
backgroundColor "#374151"
borderColor "#4b5563"
color "#f3f4f6"
".action-btn" # hover ? backgroundColor "#4b5563"
".filter-select" <> ".filter-input" <> ".status-select" <> ".reject-notes" ? do
backgroundColor "#374151"
borderColor "#4b5563"
color "#f3f4f6"
".stats-section" <> ".summary-section" ? do
backgroundColor "#1f2937"
borderColor "#374151"
".stats-row" ? borderBottomColor "#374151"
".progress-bar" ? backgroundColor "#374151"
".progress-fill" ? backgroundColor "#60a5fa"
".activity-section" ? do
backgroundColor "#1f2937"
borderColor "#374151"
".activity-timeline" # before ? backgroundColor "#374151"
".activity-icon" ? do
backgroundColor "#1f2937"
borderColor "#374151"
".activity-time" ? color "#9ca3af"
".activity-message" ? color "#d1d5db"
(".activity-metadata" |> "summary") ? color "#9ca3af"
".metadata-json" ? backgroundColor "#374151"
".markdown-content" ? color "#d1d5db"
".md-h1" ? borderBottomColor "#374151"
".md-inline-code" ? do
backgroundColor "#374151"
color "#f3f4f6"
".edit-description" ? borderTopColor "#374151"
(".edit-description" |> "summary") ? color "#60a5fa"
".description-textarea" ? do
backgroundColor "#374151"
borderColor "#4b5563"
color "#f3f4f6"
prefersDark :: Stylesheet.Feature
prefersDark =
Stylesheet.Feature "prefers-color-scheme" (Just (Clay.value ("dark" :: Text)))
statusBadgeClass :: Text -> Text
statusBadgeClass status = case status of
"Open" -> "badge badge-open"
"InProgress" -> "badge badge-inprogress"
"Review" -> "badge badge-review"
"Approved" -> "badge badge-approved"
"Done" -> "badge badge-done"
_ -> "badge"
priorityBadgeClass :: Text -> Text
priorityBadgeClass priority = case priority of
"P0" -> "badge badge-p0"
"P1" -> "badge badge-p1"
"P2" -> "badge badge-p2"
"P3" -> "badge badge-p3"
"P4" -> "badge badge-p4"
_ -> "badge"
|