@usalyt/ui 0.0.1 → 0.0.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/CHANGELOG.md +19 -0
- package/LICENSE +21 -674
- package/NOTICE +7 -8
- package/README.md +6 -7
- package/THIRD_PARTY_NOTICES.md +1 -1
- package/dist/{app-shell-layout-S_85mtFG.cjs → app-shell-layout-BwhU0DNY.cjs} +8 -8
- package/dist/{app-shell-layout-C63PPxCb.mjs → app-shell-layout-Dpl6jPni.mjs} +9 -9
- package/dist/app-shell-layout-Dpl6jPni.mjs.map +1 -0
- package/dist/blocks/app-shell-layout/index.cjs +1 -1
- package/dist/blocks/app-shell-layout/index.mjs +1 -1
- package/dist/blocks/auth-form/index.cjs +4 -4
- package/dist/blocks/auth-form/index.mjs +4 -4
- package/dist/blocks/auth-form/index.mjs.map +1 -1
- package/dist/blocks/collaboration-chat-panel/index.cjs +1 -1
- package/dist/blocks/collaboration-chat-panel/index.mjs +1 -1
- package/dist/blocks/color-palette-sheet/index.cjs +191 -0
- package/dist/blocks/color-palette-sheet/index.d.cts +42 -0
- package/dist/blocks/color-palette-sheet/index.d.cts.map +1 -0
- package/dist/blocks/color-palette-sheet/index.d.mts +42 -0
- package/dist/blocks/color-palette-sheet/index.d.mts.map +1 -0
- package/dist/blocks/color-palette-sheet/index.mjs +190 -0
- package/dist/blocks/color-palette-sheet/index.mjs.map +1 -0
- package/dist/blocks/dashboard-header/index.cjs +1 -1
- package/dist/blocks/dashboard-header/index.mjs +1 -1
- package/dist/blocks/dashboard-header/index.mjs.map +1 -1
- package/dist/blocks/data-table-with-filters/index.cjs +4 -3
- package/dist/blocks/data-table-with-filters/index.d.cts.map +1 -1
- package/dist/blocks/data-table-with-filters/index.d.mts.map +1 -1
- package/dist/blocks/data-table-with-filters/index.mjs +4 -3
- package/dist/blocks/data-table-with-filters/index.mjs.map +1 -1
- package/dist/blocks/empty-state-block/index.cjs +1 -1
- package/dist/blocks/empty-state-block/index.mjs +1 -1
- package/dist/blocks/evaluation-summary-report/index.cjs +1 -1
- package/dist/blocks/evaluation-summary-report/index.mjs +1 -1
- package/dist/blocks/form-with-validation/index.cjs +57 -54
- package/dist/blocks/form-with-validation/index.d.cts +2 -2
- package/dist/blocks/form-with-validation/index.d.mts +2 -2
- package/dist/blocks/form-with-validation/index.mjs +57 -54
- package/dist/blocks/form-with-validation/index.mjs.map +1 -1
- package/dist/blocks/heuristic-finding-card/index.cjs +1 -1
- package/dist/blocks/heuristic-finding-card/index.mjs +1 -1
- package/dist/blocks/inspector-split-view/index.cjs +1 -1
- package/dist/blocks/inspector-split-view/index.mjs +1 -1
- package/dist/blocks/instrument-metrics-grid/index.cjs +225 -0
- package/dist/blocks/instrument-metrics-grid/index.d.cts +32 -0
- package/dist/blocks/instrument-metrics-grid/index.d.cts.map +1 -0
- package/dist/blocks/instrument-metrics-grid/index.d.mts +32 -0
- package/dist/blocks/instrument-metrics-grid/index.d.mts.map +1 -0
- package/dist/blocks/instrument-metrics-grid/index.mjs +224 -0
- package/dist/blocks/instrument-metrics-grid/index.mjs.map +1 -0
- package/dist/blocks/project-kanban-board/index.cjs +1 -1
- package/dist/blocks/project-kanban-board/index.mjs +1 -1
- package/dist/blocks/schedule-timeline-board/index.cjs +327 -0
- package/dist/blocks/schedule-timeline-board/index.d.cts +51 -0
- package/dist/blocks/schedule-timeline-board/index.d.cts.map +1 -0
- package/dist/blocks/schedule-timeline-board/index.d.mts +51 -0
- package/dist/blocks/schedule-timeline-board/index.d.mts.map +1 -0
- package/dist/blocks/schedule-timeline-board/index.mjs +326 -0
- package/dist/blocks/schedule-timeline-board/index.mjs.map +1 -0
- package/dist/blocks/stats-card-grid/index.cjs +11 -10
- package/dist/blocks/stats-card-grid/index.d.cts +2 -0
- package/dist/blocks/stats-card-grid/index.d.cts.map +1 -1
- package/dist/blocks/stats-card-grid/index.d.mts +2 -0
- package/dist/blocks/stats-card-grid/index.d.mts.map +1 -1
- package/dist/blocks/stats-card-grid/index.mjs +11 -10
- package/dist/blocks/stats-card-grid/index.mjs.map +1 -1
- package/dist/blocks/team-members-table/index.cjs +1 -1
- package/dist/blocks/team-members-table/index.mjs +1 -1
- package/dist/{collaboration-chat-panel-DuIoQQ6W.mjs → collaboration-chat-panel-BO-k0fqo.mjs} +10 -10
- package/dist/collaboration-chat-panel-BO-k0fqo.mjs.map +1 -0
- package/dist/{collaboration-chat-panel-D-o2i4-Y.cjs → collaboration-chat-panel-CR14FNw6.cjs} +9 -9
- package/dist/components/accordion/index.cjs +2 -2
- package/dist/components/accordion/index.mjs +2 -2
- package/dist/components/accordion/index.mjs.map +1 -1
- package/dist/components/alert/index.cjs +8 -4
- package/dist/components/alert/index.d.cts +4 -4
- package/dist/components/alert/index.d.cts.map +1 -1
- package/dist/components/alert/index.d.mts +4 -4
- package/dist/components/alert/index.d.mts.map +1 -1
- package/dist/components/alert/index.mjs +8 -4
- package/dist/components/alert/index.mjs.map +1 -1
- package/dist/components/alert-dialog/index.cjs +2 -2
- package/dist/components/alert-dialog/index.mjs +2 -2
- package/dist/components/alert-dialog/index.mjs.map +1 -1
- package/dist/components/avatar/index.cjs +1 -1
- package/dist/components/avatar/index.mjs +1 -1
- package/dist/components/avatar/index.mjs.map +1 -1
- package/dist/components/badge/index.cjs +3 -1
- package/dist/components/badge/index.d.cts +1 -1
- package/dist/components/badge/index.d.cts.map +1 -1
- package/dist/components/badge/index.d.mts +1 -1
- package/dist/components/badge/index.d.mts.map +1 -1
- package/dist/components/badge/index.mjs +3 -1
- package/dist/components/badge/index.mjs.map +1 -1
- package/dist/components/button/index.cjs +50 -15
- package/dist/components/button/index.d.cts +1 -1
- package/dist/components/button/index.d.mts +1 -1
- package/dist/components/button/index.mjs +50 -15
- package/dist/components/button/index.mjs.map +1 -1
- package/dist/components/calendar/index.cjs +5 -5
- package/dist/components/calendar/index.mjs +5 -5
- package/dist/components/calendar/index.mjs.map +1 -1
- package/dist/components/card/index.cjs +9 -7
- package/dist/components/card/index.d.cts +1 -1
- package/dist/components/card/index.d.cts.map +1 -1
- package/dist/components/card/index.d.mts +1 -1
- package/dist/components/card/index.d.mts.map +1 -1
- package/dist/components/card/index.mjs +9 -7
- package/dist/components/card/index.mjs.map +1 -1
- package/dist/components/carousel/index.d.cts +1 -1
- package/dist/components/carousel/index.d.mts +1 -1
- package/dist/components/chart/index.cjs +1 -1
- package/dist/components/chart/index.mjs +1 -1
- package/dist/components/chart/index.mjs.map +1 -1
- package/dist/components/combobox/index.cjs +1 -1
- package/dist/components/combobox/index.mjs +1 -1
- package/dist/components/combobox/index.mjs.map +1 -1
- package/dist/components/command/index.d.cts +11 -11
- package/dist/components/command/index.d.cts.map +1 -1
- package/dist/components/command/index.d.mts +11 -11
- package/dist/components/command/index.d.mts.map +1 -1
- package/dist/components/context-menu/index.cjs +2 -2
- package/dist/components/context-menu/index.mjs +2 -2
- package/dist/components/context-menu/index.mjs.map +1 -1
- package/dist/components/copy-button/index.d.cts +1 -1
- package/dist/components/copy-button/index.d.mts +1 -1
- package/dist/components/data-table/index.cjs +1 -1
- package/dist/components/data-table/index.mjs +1 -1
- package/dist/components/data-table/index.mjs.map +1 -1
- package/dist/components/dialog/index.cjs +8 -7
- package/dist/components/dialog/index.d.cts +3 -1
- package/dist/components/dialog/index.d.cts.map +1 -1
- package/dist/components/dialog/index.d.mts +3 -1
- package/dist/components/dialog/index.d.mts.map +1 -1
- package/dist/components/dialog/index.mjs +8 -7
- package/dist/components/dialog/index.mjs.map +1 -1
- package/dist/components/drawer/index.cjs +5 -3
- package/dist/components/drawer/index.d.cts.map +1 -1
- package/dist/components/drawer/index.d.mts.map +1 -1
- package/dist/components/drawer/index.mjs +5 -3
- package/dist/components/drawer/index.mjs.map +1 -1
- package/dist/components/dropdown-menu/index.cjs +3 -3
- package/dist/components/dropdown-menu/index.mjs +3 -3
- package/dist/components/dropdown-menu/index.mjs.map +1 -1
- package/dist/components/file-input/index.cjs +1 -1
- package/dist/components/file-input/index.mjs +1 -1
- package/dist/components/file-input/index.mjs.map +1 -1
- package/dist/components/hover-card/index.cjs +1 -1
- package/dist/components/hover-card/index.d.cts +1 -1
- package/dist/components/hover-card/index.d.mts +1 -1
- package/dist/components/hover-card/index.mjs +1 -1
- package/dist/components/hover-card/index.mjs.map +1 -1
- package/dist/components/input/index.cjs +5 -4
- package/dist/components/input/index.mjs +5 -4
- package/dist/components/input/index.mjs.map +1 -1
- package/dist/components/input-otp/index.cjs +1 -1
- package/dist/components/input-otp/index.d.cts +1 -1
- package/dist/components/input-otp/index.d.mts +1 -1
- package/dist/components/input-otp/index.mjs +1 -1
- package/dist/components/navigation-menu/index.cjs +2 -2
- package/dist/components/navigation-menu/index.d.cts +1 -1
- package/dist/components/navigation-menu/index.d.mts +1 -1
- package/dist/components/navigation-menu/index.mjs +2 -2
- package/dist/components/navigation-menu/index.mjs.map +1 -1
- package/dist/components/number-field/index.cjs +1 -1
- package/dist/components/number-field/index.mjs +1 -1
- package/dist/components/number-field/index.mjs.map +1 -1
- package/dist/components/pagination/index.d.cts +1 -1
- package/dist/components/pagination/index.d.mts +1 -1
- package/dist/components/popover/index.cjs +1 -1
- package/dist/components/popover/index.mjs +1 -1
- package/dist/components/popover/index.mjs.map +1 -1
- package/dist/components/progress/index.cjs +63 -15
- package/dist/components/progress/index.d.cts +3 -1
- package/dist/components/progress/index.d.cts.map +1 -1
- package/dist/components/progress/index.d.mts +3 -1
- package/dist/components/progress/index.d.mts.map +1 -1
- package/dist/components/progress/index.mjs +63 -15
- package/dist/components/progress/index.mjs.map +1 -1
- package/dist/components/resizable/index.d.cts +1 -1
- package/dist/components/resizable/index.d.mts +1 -1
- package/dist/components/select/index.cjs +5 -4
- package/dist/components/select/index.d.cts.map +1 -1
- package/dist/components/select/index.d.mts.map +1 -1
- package/dist/components/select/index.mjs +5 -4
- package/dist/components/select/index.mjs.map +1 -1
- package/dist/components/separator/index.cjs +1 -1
- package/dist/components/separator/index.mjs +1 -1
- package/dist/components/separator/index.mjs.map +1 -1
- package/dist/components/sheet/index.cjs +8 -6
- package/dist/components/sheet/index.d.cts +3 -1
- package/dist/components/sheet/index.d.cts.map +1 -1
- package/dist/components/sheet/index.d.mts +3 -1
- package/dist/components/sheet/index.d.mts.map +1 -1
- package/dist/components/sheet/index.mjs +8 -6
- package/dist/components/sheet/index.mjs.map +1 -1
- package/dist/components/sidebar/index.d.cts +1 -1
- package/dist/components/sidebar/index.d.mts +1 -1
- package/dist/components/spinner/index.d.cts +1 -1
- package/dist/components/spinner/index.d.mts +1 -1
- package/dist/components/stepper/index.d.cts +1 -1
- package/dist/components/stepper/index.d.mts +1 -1
- package/dist/components/switch/index.cjs +1 -1
- package/dist/components/switch/index.mjs +1 -1
- package/dist/components/switch/index.mjs.map +1 -1
- package/dist/components/table/index.cjs +2 -2
- package/dist/components/table/index.mjs +2 -2
- package/dist/components/table/index.mjs.map +1 -1
- package/dist/components/tabs/index.cjs +6 -3
- package/dist/components/tabs/index.d.cts.map +1 -1
- package/dist/components/tabs/index.d.mts.map +1 -1
- package/dist/components/tabs/index.mjs +6 -3
- package/dist/components/tabs/index.mjs.map +1 -1
- package/dist/components/textarea/index.cjs +1 -1
- package/dist/components/textarea/index.mjs +1 -1
- package/dist/components/textarea/index.mjs.map +1 -1
- package/dist/components/toast/index.cjs +8 -7
- package/dist/components/toast/index.d.cts +3 -1
- package/dist/components/toast/index.d.cts.map +1 -1
- package/dist/components/toast/index.d.mts +3 -1
- package/dist/components/toast/index.d.mts.map +1 -1
- package/dist/components/toast/index.mjs +8 -7
- package/dist/components/toast/index.mjs.map +1 -1
- package/dist/components/toggle/index.cjs +1 -1
- package/dist/components/toggle/index.mjs +1 -1
- package/dist/components/toggle-group/index.cjs +1 -1
- package/dist/components/toggle-group/index.mjs +1 -1
- package/dist/{empty-state-block-DePTPvzM.mjs → empty-state-block-DlccTgvo.mjs} +8 -7
- package/dist/empty-state-block-DlccTgvo.mjs.map +1 -0
- package/dist/{empty-state-block-CW1vdx89.cjs → empty-state-block-rrYF_ai9.cjs} +7 -6
- package/dist/evaluation-summary-report-CIa4moWm.cjs +245 -0
- package/dist/evaluation-summary-report-COZZFLS6.mjs +240 -0
- package/dist/evaluation-summary-report-COZZFLS6.mjs.map +1 -0
- package/dist/{heuristic-finding-card-B5zpJp27.cjs → heuristic-finding-card-CeJzuzuN.cjs} +63 -40
- package/dist/{heuristic-finding-card-BFwXci2U.mjs → heuristic-finding-card-hlDwM_of.mjs} +64 -41
- package/dist/heuristic-finding-card-hlDwM_of.mjs.map +1 -0
- package/dist/{index-ClitDRHg.d.mts → index-2Vh9mMtN.d.mts} +2 -2
- package/dist/{index-ClitDRHg.d.mts.map → index-2Vh9mMtN.d.mts.map} +1 -1
- package/dist/index-B6epY4xT.d.cts +18 -0
- package/dist/index-B6epY4xT.d.cts.map +1 -0
- package/dist/index-B8Z5coVq.d.cts.map +1 -1
- package/dist/index-B8Z5coVq.d.mts.map +1 -1
- package/dist/{index-DCrV07Ko.d.cts → index-B_JrTcxF.d.cts} +2 -2
- package/dist/{index-DCrV07Ko.d.cts.map → index-B_JrTcxF.d.cts.map} +1 -1
- package/dist/index-C3V4MOJH.d.mts +18 -0
- package/dist/index-C3V4MOJH.d.mts.map +1 -0
- package/dist/{index-N-mHPudY.d.mts → index-C3ol_8Kk.d.cts} +2 -2
- package/dist/{index-DISRvpYF.d.cts.map → index-C3ol_8Kk.d.cts.map} +1 -1
- package/dist/{index-BfHoUosL.d.cts → index-C5ugjRen.d.cts} +2 -2
- package/dist/{index-BfHoUosL.d.cts.map → index-C5ugjRen.d.cts.map} +1 -1
- package/dist/{index-BfHoUosL.d.mts → index-C5ugjRen.d.mts} +2 -2
- package/dist/{index-BfHoUosL.d.mts.map → index-C5ugjRen.d.mts.map} +1 -1
- package/dist/{index-bO8Bd2qN.d.cts → index-CI5EwPm7.d.cts} +3 -3
- package/dist/{index-bO8Bd2qN.d.cts.map → index-CI5EwPm7.d.cts.map} +1 -1
- package/dist/{index-bO8Bd2qN.d.mts → index-CI5EwPm7.d.mts} +3 -3
- package/dist/{index-bO8Bd2qN.d.mts.map → index-CI5EwPm7.d.mts.map} +1 -1
- package/dist/{index-CxCGf9_1.d.mts → index-CU-siW-K.d.mts} +2 -2
- package/dist/{index-CTCm9Rd3.d.cts.map → index-CU-siW-K.d.mts.map} +1 -1
- package/dist/index-CsF26Fe8.d.cts.map +1 -1
- package/dist/index-CsF26Fe8.d.mts.map +1 -1
- package/dist/{index-D0R6bxY7.d.cts → index-D5_0x-hC.d.cts} +2 -2
- package/dist/{index-D0R6bxY7.d.cts.map → index-D5_0x-hC.d.cts.map} +1 -1
- package/dist/{index-Wut4L1Y4.d.mts → index-DeDN45Ha.d.mts} +2 -2
- package/dist/{index-Wut4L1Y4.d.mts.map → index-DeDN45Ha.d.mts.map} +1 -1
- package/dist/{index-CY6x-q24.d.cts → index-DtPmPGcN.d.cts} +2 -2
- package/dist/index-DtPmPGcN.d.cts.map +1 -0
- package/dist/{index-CY6x-q24.d.mts → index-DtPmPGcN.d.mts} +2 -2
- package/dist/index-DtPmPGcN.d.mts.map +1 -0
- package/dist/{index-DISRvpYF.d.cts → index-o7W0pKFo.d.mts} +2 -2
- package/dist/{index-N-mHPudY.d.mts.map → index-o7W0pKFo.d.mts.map} +1 -1
- package/dist/{index-CTCm9Rd3.d.cts → index-y8s6jpSR.d.cts} +2 -2
- package/dist/{index-CxCGf9_1.d.mts.map → index-y8s6jpSR.d.cts.map} +1 -1
- package/dist/index.cjs +16 -10
- package/dist/index.d.cts +12 -9
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +12 -9
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +14 -11
- package/dist/{input-otp-DyBlKPGM.cjs → input-otp-C7O7AtXb.cjs} +1 -1
- package/dist/{input-otp-CXy8gtKM.mjs → input-otp-CFNLnAuu.mjs} +2 -2
- package/dist/input-otp-CFNLnAuu.mjs.map +1 -0
- package/dist/{inspector-split-view-CSPoFJJC.cjs → inspector-split-view-Cwsvl3-m.cjs} +33 -27
- package/dist/{inspector-split-view-CQeClX4k.mjs → inspector-split-view-D5tX9P5r.mjs} +34 -28
- package/dist/inspector-split-view-D5tX9P5r.mjs.map +1 -0
- package/dist/{project-kanban-board-TUeAebbI.mjs → project-kanban-board-BHLRHooH.mjs} +13 -13
- package/dist/project-kanban-board-BHLRHooH.mjs.map +1 -0
- package/dist/{project-kanban-board-BGypLhTA.cjs → project-kanban-board-DUaDiHZC.cjs} +12 -12
- package/dist/styles.css +1 -1
- package/dist/{team-members-table-Cu5gCqMg.cjs → team-members-table-5OWUc6Ib.cjs} +5 -5
- package/dist/{team-members-table-ChWMZMYw.mjs → team-members-table-DW52BAKr.mjs} +6 -6
- package/dist/team-members-table-DW52BAKr.mjs.map +1 -0
- package/dist/{toggle-BjthGxVv.cjs → toggle-CZG8xQeG.cjs} +1 -1
- package/dist/{toggle-C2RktAMd.mjs → toggle-CpsU8EEk.mjs} +2 -2
- package/dist/toggle-CpsU8EEk.mjs.map +1 -0
- package/package.json +34 -4
- package/scripts/verify-artifacts.mjs +2 -2
- package/src/blocks/app-shell-layout/app-shell-layout.tsx +8 -8
- package/src/blocks/auth-form/auth-form.tsx +4 -4
- package/src/blocks/collaboration-chat-panel/collaboration-chat-panel.tsx +9 -9
- package/src/blocks/color-palette-sheet/color-palette-sheet.stories.tsx +161 -0
- package/src/blocks/color-palette-sheet/color-palette-sheet.test.tsx +45 -0
- package/src/blocks/color-palette-sheet/color-palette-sheet.tsx +287 -0
- package/src/blocks/color-palette-sheet/index.ts +1 -0
- package/src/blocks/dashboard-header/dashboard-header.tsx +1 -1
- package/src/blocks/data-table-with-filters/data-table-with-filters.tsx +4 -3
- package/src/blocks/empty-state-block/empty-state-block.tsx +9 -8
- package/src/blocks/evaluation-summary-report/evaluation-summary-report.test.tsx +16 -8
- package/src/blocks/evaluation-summary-report/evaluation-summary-report.tsx +161 -78
- package/src/blocks/form-with-validation/form-with-validation.tsx +5 -5
- package/src/blocks/heuristic-finding-card/heuristic-finding-card.stories.tsx +1 -1
- package/src/blocks/heuristic-finding-card/heuristic-finding-card.tsx +110 -64
- package/src/blocks/inspector-split-view/inspector-split-view.tsx +15 -15
- package/src/blocks/instrument-metrics-grid/index.ts +1 -0
- package/src/blocks/instrument-metrics-grid/instrument-metrics-grid.stories.tsx +41 -0
- package/src/blocks/instrument-metrics-grid/instrument-metrics-grid.test.tsx +17 -0
- package/src/blocks/instrument-metrics-grid/instrument-metrics-grid.tsx +277 -0
- package/src/blocks/project-kanban-board/project-kanban-board.tsx +12 -12
- package/src/blocks/schedule-timeline-board/index.ts +1 -0
- package/src/blocks/schedule-timeline-board/schedule-timeline-board.stories.tsx +202 -0
- package/src/blocks/schedule-timeline-board/schedule-timeline-board.test.tsx +67 -0
- package/src/blocks/schedule-timeline-board/schedule-timeline-board.tsx +495 -0
- package/src/blocks/stats-card-grid/stats-card-grid.tsx +36 -10
- package/src/blocks/team-members-table/team-members-table.tsx +5 -5
- package/src/components/accordion/accordion.tsx +2 -2
- package/src/components/alert/alert.test.tsx +15 -1
- package/src/components/alert/alert.tsx +13 -9
- package/src/components/alert-dialog/alert-dialog.tsx +2 -2
- package/src/components/avatar/avatar.tsx +1 -1
- package/src/components/badge/badge.tsx +4 -1
- package/src/components/button/button.test.tsx +15 -6
- package/src/components/button/button.tsx +63 -13
- package/src/components/calendar/calendar.tsx +5 -5
- package/src/components/card/card.stories.tsx +1 -1
- package/src/components/card/card.tsx +11 -7
- package/src/components/chart/chart.tsx +1 -1
- package/src/components/combobox/combobox.tsx +1 -1
- package/src/components/context-menu/context-menu.tsx +2 -2
- package/src/components/data-table/data-table.tsx +1 -1
- package/src/components/dialog/dialog.tsx +10 -7
- package/src/components/drawer/drawer.tsx +5 -3
- package/src/components/dropdown-menu/dropdown-menu.tsx +3 -3
- package/src/components/file-input/file-input.tsx +1 -1
- package/src/components/hover-card/hover-card.tsx +1 -1
- package/src/components/input/input.tsx +5 -4
- package/src/components/input-otp/input-otp.tsx +1 -1
- package/src/components/navigation-menu/navigation-menu.tsx +2 -2
- package/src/components/number-field/number-field.tsx +1 -1
- package/src/components/popover/popover.tsx +1 -1
- package/src/components/progress/progress.stories.tsx +39 -0
- package/src/components/progress/progress.tsx +110 -18
- package/src/components/select/select.tsx +5 -4
- package/src/components/separator/separator.tsx +1 -1
- package/src/components/sheet/sheet.tsx +10 -7
- package/src/components/switch/switch.tsx +1 -1
- package/src/components/table/table.tsx +2 -2
- package/src/components/tabs/tabs.tsx +6 -3
- package/src/components/textarea/textarea.tsx +1 -1
- package/src/components/toast/toast.tsx +11 -8
- package/src/components/toggle/toggle.tsx +1 -1
- package/src/index.ts +3 -0
- package/src/test/palette-contract.test.ts +24 -21
- package/src/test/sidebar-contract.test.ts +8 -6
- package/styles/theme.css +279 -191
- package/dist/app-shell-layout-C63PPxCb.mjs.map +0 -1
- package/dist/collaboration-chat-panel-DuIoQQ6W.mjs.map +0 -1
- package/dist/empty-state-block-DePTPvzM.mjs.map +0 -1
- package/dist/evaluation-summary-report-Bx2iT1Pd.cjs +0 -212
- package/dist/evaluation-summary-report-CbaikB0Q.mjs +0 -207
- package/dist/evaluation-summary-report-CbaikB0Q.mjs.map +0 -1
- package/dist/heuristic-finding-card-BFwXci2U.mjs.map +0 -1
- package/dist/index-CY6x-q24.d.cts.map +0 -1
- package/dist/index-CY6x-q24.d.mts.map +0 -1
- package/dist/index-jYLDWfZc.d.cts +0 -15
- package/dist/index-jYLDWfZc.d.cts.map +0 -1
- package/dist/index-jYLDWfZc.d.mts +0 -15
- package/dist/index-jYLDWfZc.d.mts.map +0 -1
- package/dist/input-otp-CXy8gtKM.mjs.map +0 -1
- package/dist/inspector-split-view-CQeClX4k.mjs.map +0 -1
- package/dist/project-kanban-board-TUeAebbI.mjs.map +0 -1
- package/dist/team-members-table-ChWMZMYw.mjs.map +0 -1
- package/dist/toggle-C2RktAMd.mjs.map +0 -1
- package/src/__tests__/storybook-preview.test.tsx +0 -164
- package/src/test/docs-component-usability.test.tsx +0 -98
|
@@ -17,9 +17,7 @@ import {
|
|
|
17
17
|
CardHeader,
|
|
18
18
|
CardTitle,
|
|
19
19
|
} from "../../components/card";
|
|
20
|
-
import { Badge } from "../../components/badge";
|
|
21
20
|
import { Button } from "../../components/button";
|
|
22
|
-
import { Progress } from "../../components/progress";
|
|
23
21
|
|
|
24
22
|
export interface HeuristicScoreItem {
|
|
25
23
|
id: string;
|
|
@@ -41,6 +39,65 @@ export interface EvaluationSummaryReportProps
|
|
|
41
39
|
onShareReport?: () => void;
|
|
42
40
|
}
|
|
43
41
|
|
|
42
|
+
const SCORE_SEGMENTS = 10;
|
|
43
|
+
|
|
44
|
+
function scoreToneClass(score: number): string {
|
|
45
|
+
if (score >= 80) return "bg-pulse-green-foreground";
|
|
46
|
+
if (score >= 70) return "bg-primary";
|
|
47
|
+
return "bg-amber-signal-foreground";
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
function scoreTextClass(score: number): string {
|
|
51
|
+
if (score >= 80) return "text-pulse-green-foreground";
|
|
52
|
+
if (score >= 70) return "text-foreground";
|
|
53
|
+
return "text-amber-signal-foreground";
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
function SegmentedScoreMeter({
|
|
57
|
+
value,
|
|
58
|
+
label,
|
|
59
|
+
compact = false,
|
|
60
|
+
}: {
|
|
61
|
+
value: number;
|
|
62
|
+
label: string;
|
|
63
|
+
compact?: boolean;
|
|
64
|
+
}) {
|
|
65
|
+
const clamped = Math.min(100, Math.max(0, Math.round(value)));
|
|
66
|
+
const filledCount = Math.round((clamped / 100) * SCORE_SEGMENTS);
|
|
67
|
+
const activeClass = scoreToneClass(clamped);
|
|
68
|
+
|
|
69
|
+
return (
|
|
70
|
+
<div
|
|
71
|
+
role="progressbar"
|
|
72
|
+
aria-label={label}
|
|
73
|
+
aria-valuemin={0}
|
|
74
|
+
aria-valuemax={100}
|
|
75
|
+
aria-valuenow={clamped}
|
|
76
|
+
data-slot="score-meter"
|
|
77
|
+
className={cn(
|
|
78
|
+
"flex items-center",
|
|
79
|
+
compact ? "gap-1" : "w-full gap-1.5"
|
|
80
|
+
)}
|
|
81
|
+
>
|
|
82
|
+
{Array.from({ length: SCORE_SEGMENTS }, (_, idx) => {
|
|
83
|
+
const isFilled = idx < filledCount;
|
|
84
|
+
return (
|
|
85
|
+
<span
|
|
86
|
+
key={idx}
|
|
87
|
+
aria-hidden="true"
|
|
88
|
+
data-filled={isFilled ? "true" : "false"}
|
|
89
|
+
className={cn(
|
|
90
|
+
"rounded-[2px] transition-colors duration-150",
|
|
91
|
+
compact ? "h-2.5 w-2" : "h-1.5 flex-1",
|
|
92
|
+
isFilled ? activeClass : "bg-secondary"
|
|
93
|
+
)}
|
|
94
|
+
/>
|
|
95
|
+
);
|
|
96
|
+
})}
|
|
97
|
+
</div>
|
|
98
|
+
);
|
|
99
|
+
}
|
|
100
|
+
|
|
44
101
|
export function EvaluationSummaryReport({
|
|
45
102
|
title = "Heuristic Evaluation Executive Report",
|
|
46
103
|
projectName = "Usalyt Check Project",
|
|
@@ -58,71 +115,71 @@ export function EvaluationSummaryReport({
|
|
|
58
115
|
|
|
59
116
|
return (
|
|
60
117
|
<Card
|
|
61
|
-
className={cn("overflow-hidden border border-border
|
|
118
|
+
className={cn("overflow-hidden border border-border", className)}
|
|
62
119
|
{...props}
|
|
63
120
|
>
|
|
64
|
-
<CardHeader className="flex flex-row flex-wrap items-start justify-between gap-
|
|
65
|
-
<div className="flex min-w-0 flex-1 flex-col gap-1">
|
|
66
|
-
<
|
|
67
|
-
Executive Summary
|
|
68
|
-
</Badge>
|
|
69
|
-
<CardTitle className="text-lg font-bold text-foreground">
|
|
121
|
+
<CardHeader className="flex flex-row flex-wrap items-start justify-between gap-x-6 gap-y-4 space-y-0 border-b border-border/60 px-7 py-6">
|
|
122
|
+
<div className="flex min-w-0 flex-1 flex-col gap-1.5">
|
|
123
|
+
<CardTitle className="text-xl font-semibold tracking-tight text-foreground">
|
|
70
124
|
{title}
|
|
71
125
|
</CardTitle>
|
|
72
|
-
<CardDescription className="text-
|
|
126
|
+
<CardDescription className="text-sm text-muted-foreground">
|
|
73
127
|
{projectName}
|
|
74
128
|
</CardDescription>
|
|
75
129
|
</div>
|
|
76
130
|
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
<
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
131
|
+
{(onShareReport || onExportPdf) && (
|
|
132
|
+
<div className="flex max-w-full flex-wrap items-center gap-2.5">
|
|
133
|
+
{onShareReport && (
|
|
134
|
+
<Button
|
|
135
|
+
variant="outline"
|
|
136
|
+
size="sm"
|
|
137
|
+
onClick={onShareReport}
|
|
138
|
+
className="gap-2 text-xs"
|
|
139
|
+
>
|
|
140
|
+
<Share2 className="h-3.5 w-3.5" />
|
|
141
|
+
<span>Share</span>
|
|
142
|
+
</Button>
|
|
143
|
+
)}
|
|
144
|
+
{onExportPdf && (
|
|
145
|
+
<Button size="sm" onClick={onExportPdf} className="gap-2 text-xs">
|
|
146
|
+
<Download className="h-3.5 w-3.5" />
|
|
147
|
+
<span>Export PDF</span>
|
|
148
|
+
</Button>
|
|
149
|
+
)}
|
|
150
|
+
</div>
|
|
151
|
+
)}
|
|
96
152
|
</CardHeader>
|
|
97
153
|
|
|
98
|
-
<CardContent className="flex flex-col gap-
|
|
154
|
+
<CardContent className="flex flex-col gap-8 px-7 py-7">
|
|
99
155
|
<div
|
|
100
156
|
role="group"
|
|
101
157
|
aria-label="Evaluation score summary"
|
|
102
|
-
className="grid grid-cols-
|
|
158
|
+
className="grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-4"
|
|
103
159
|
>
|
|
104
|
-
<div className="flex flex-col gap-
|
|
105
|
-
<
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
<div className="flex flex-wrap items-baseline gap-2 leading-none">
|
|
111
|
-
<span className="text-3xl font-extrabold leading-none text-foreground">
|
|
160
|
+
<div className="flex flex-col justify-between gap-3 rounded-lg border border-border bg-secondary/60 px-5 py-5">
|
|
161
|
+
<span className="text-xs font-medium text-muted-foreground">
|
|
162
|
+
Overall Usability
|
|
163
|
+
</span>
|
|
164
|
+
<div className="flex flex-wrap items-baseline gap-2 leading-none tabular-nums">
|
|
165
|
+
<span className="text-3xl font-semibold leading-none tracking-tight text-foreground">
|
|
112
166
|
{overallScore}
|
|
113
167
|
</span>
|
|
114
168
|
<span className="text-xs text-muted-foreground">/ 100</span>
|
|
115
169
|
</div>
|
|
116
|
-
<
|
|
170
|
+
<SegmentedScoreMeter
|
|
171
|
+
value={overallScore}
|
|
172
|
+
label="Overall Usability Score"
|
|
173
|
+
/>
|
|
117
174
|
</div>
|
|
118
175
|
|
|
119
|
-
<div className="flex flex-col gap-
|
|
120
|
-
<div className="flex
|
|
176
|
+
<div className="flex flex-col justify-between gap-3 rounded-lg border border-coral-red/30 bg-coral-red/5 px-5 py-5">
|
|
177
|
+
<div className="flex items-center gap-2 text-xs font-medium text-coral-red-foreground">
|
|
121
178
|
<AlertOctagon className="h-3.5 w-3.5 shrink-0" />
|
|
122
179
|
<span className="min-w-0">Critical Issues</span>
|
|
123
180
|
</div>
|
|
124
|
-
<div className="flex flex-wrap items-baseline gap-2 leading-none">
|
|
125
|
-
<span className="text-3xl font-
|
|
181
|
+
<div className="flex flex-wrap items-baseline gap-2 leading-none tabular-nums">
|
|
182
|
+
<span className="text-3xl font-semibold leading-none tracking-tight text-foreground">
|
|
126
183
|
{criticalCount}
|
|
127
184
|
</span>
|
|
128
185
|
</div>
|
|
@@ -131,13 +188,13 @@ export function EvaluationSummaryReport({
|
|
|
131
188
|
</span>
|
|
132
189
|
</div>
|
|
133
190
|
|
|
134
|
-
<div className="flex flex-col gap-
|
|
135
|
-
<div className="flex
|
|
191
|
+
<div className="flex flex-col justify-between gap-3 rounded-lg border border-signal-teal/30 bg-signal-teal/5 px-5 py-5">
|
|
192
|
+
<div className="flex items-center gap-2 text-xs font-medium text-signal-teal-foreground">
|
|
136
193
|
<AlertTriangle className="h-3.5 w-3.5 shrink-0" />
|
|
137
194
|
<span className="min-w-0">Medium Issues</span>
|
|
138
195
|
</div>
|
|
139
|
-
<div className="flex flex-wrap items-baseline gap-2 leading-none">
|
|
140
|
-
<span className="text-3xl font-
|
|
196
|
+
<div className="flex flex-wrap items-baseline gap-2 leading-none tabular-nums">
|
|
197
|
+
<span className="text-3xl font-semibold leading-none tracking-tight text-foreground">
|
|
141
198
|
{mediumCount}
|
|
142
199
|
</span>
|
|
143
200
|
</div>
|
|
@@ -146,13 +203,13 @@ export function EvaluationSummaryReport({
|
|
|
146
203
|
</span>
|
|
147
204
|
</div>
|
|
148
205
|
|
|
149
|
-
<div className="flex flex-col gap-
|
|
150
|
-
<div className="flex
|
|
206
|
+
<div className="flex flex-col justify-between gap-3 rounded-lg border border-pulse-green/30 bg-pulse-green/5 px-5 py-5">
|
|
207
|
+
<div className="flex items-center gap-2 text-xs font-medium text-pulse-green-foreground">
|
|
151
208
|
<CheckCircle2 className="h-3.5 w-3.5 shrink-0" />
|
|
152
209
|
<span className="min-w-0">Positive Points</span>
|
|
153
210
|
</div>
|
|
154
|
-
<div className="flex flex-wrap items-baseline gap-2 leading-none">
|
|
155
|
-
<span className="text-3xl font-
|
|
211
|
+
<div className="flex flex-wrap items-baseline gap-2 leading-none tabular-nums">
|
|
212
|
+
<span className="text-3xl font-semibold leading-none tracking-tight text-foreground">
|
|
156
213
|
{goodCount}
|
|
157
214
|
</span>
|
|
158
215
|
</div>
|
|
@@ -163,44 +220,70 @@ export function EvaluationSummaryReport({
|
|
|
163
220
|
</div>
|
|
164
221
|
|
|
165
222
|
{heuristics.length > 0 && (
|
|
166
|
-
<div className="flex flex-col gap-
|
|
167
|
-
<
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
223
|
+
<div className="flex flex-col gap-4">
|
|
224
|
+
<div className="flex flex-wrap items-center justify-between gap-x-4 gap-y-1">
|
|
225
|
+
<h4 className="m-0 text-sm font-medium text-foreground">
|
|
226
|
+
Heuristics performance
|
|
227
|
+
</h4>
|
|
228
|
+
<span className="text-xs text-muted-foreground tabular-nums">
|
|
229
|
+
{heuristics.length}{" "}
|
|
230
|
+
{heuristics.length === 1 ? "criterion" : "criteria"} evaluated
|
|
231
|
+
</span>
|
|
232
|
+
</div>
|
|
233
|
+
|
|
234
|
+
<div className="divide-y divide-border/70 overflow-hidden rounded-lg border border-border bg-surface-base/40">
|
|
235
|
+
{heuristics.map((item) => {
|
|
236
|
+
const findingsLabel =
|
|
237
|
+
item.findingCount === 1
|
|
238
|
+
? "1 finding"
|
|
239
|
+
: `${item.findingCount} findings`;
|
|
240
|
+
|
|
241
|
+
return (
|
|
242
|
+
<div
|
|
243
|
+
key={item.id}
|
|
244
|
+
className="flex flex-col gap-3 px-5 py-4 transition-colors duration-150 hover:bg-secondary/50 sm:flex-row sm:items-center sm:justify-between sm:gap-x-6"
|
|
245
|
+
>
|
|
246
|
+
<div className="flex min-w-0 flex-1 items-center gap-3.5">
|
|
247
|
+
<span className="inline-flex w-8 shrink-0 items-center justify-center rounded-sm border border-border bg-secondary px-1.5 py-0.5 font-mono text-xs font-medium text-muted-foreground tabular-nums">
|
|
179
248
|
{item.id}
|
|
180
|
-
</
|
|
181
|
-
<span className="min-w-0 break-words font-medium text-foreground">
|
|
249
|
+
</span>
|
|
250
|
+
<span className="min-w-0 break-words text-sm font-medium text-foreground">
|
|
182
251
|
{item.name}
|
|
183
252
|
</span>
|
|
184
253
|
</div>
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
<span className="w-10 text-right font-bold text-foreground">
|
|
190
|
-
{item.score}%
|
|
254
|
+
|
|
255
|
+
<div className="flex shrink-0 flex-wrap items-center justify-between gap-x-5 gap-y-2 sm:justify-end">
|
|
256
|
+
<span className="text-xs text-muted-foreground tabular-nums">
|
|
257
|
+
{findingsLabel}
|
|
191
258
|
</span>
|
|
259
|
+
<div className="flex items-center gap-3.5">
|
|
260
|
+
<SegmentedScoreMeter
|
|
261
|
+
value={item.score}
|
|
262
|
+
label={`${item.name} score`}
|
|
263
|
+
compact
|
|
264
|
+
/>
|
|
265
|
+
<span
|
|
266
|
+
className={cn(
|
|
267
|
+
"w-11 text-right font-mono text-xs font-semibold tabular-nums",
|
|
268
|
+
scoreTextClass(item.score)
|
|
269
|
+
)}
|
|
270
|
+
>
|
|
271
|
+
{item.score}%
|
|
272
|
+
</span>
|
|
273
|
+
</div>
|
|
192
274
|
</div>
|
|
193
275
|
</div>
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
))}
|
|
276
|
+
);
|
|
277
|
+
})}
|
|
197
278
|
</div>
|
|
198
279
|
</div>
|
|
199
280
|
)}
|
|
200
281
|
</CardContent>
|
|
201
282
|
|
|
202
|
-
<CardFooter className="flex flex-wrap items-center justify-between gap-2 border-t border-border/
|
|
203
|
-
<span
|
|
283
|
+
<CardFooter className="flex flex-wrap items-center justify-between gap-x-6 gap-y-2 border-t border-border/60 px-7 py-4 text-xs text-muted-foreground">
|
|
284
|
+
<span className="tabular-nums">
|
|
285
|
+
Total Findings Audited: {totalFindings}
|
|
286
|
+
</span>
|
|
204
287
|
<span>Generated with Usalyt Check</span>
|
|
205
288
|
</CardFooter>
|
|
206
289
|
</Card>
|
|
@@ -64,7 +64,7 @@ export function FormWithValidation({
|
|
|
64
64
|
|
|
65
65
|
return (
|
|
66
66
|
<Card className={className}>
|
|
67
|
-
<CardHeader className="space-y-
|
|
67
|
+
<CardHeader className="space-y-2 px-7 pt-7 pb-5">
|
|
68
68
|
<CardTitle className="text-base font-semibold">
|
|
69
69
|
User Profile Settings
|
|
70
70
|
</CardTitle>
|
|
@@ -72,11 +72,11 @@ export function FormWithValidation({
|
|
|
72
72
|
Update your profile details for heuristic evaluation reports.
|
|
73
73
|
</CardDescription>
|
|
74
74
|
</CardHeader>
|
|
75
|
-
<CardContent>
|
|
75
|
+
<CardContent className="px-7 pb-6 pt-0">
|
|
76
76
|
{submitError && (
|
|
77
77
|
<div
|
|
78
78
|
role="alert"
|
|
79
|
-
className="mb-
|
|
79
|
+
className="mb-5 rounded-md border border-destructive/40 bg-destructive/10 px-4 py-2.5 text-xs font-medium text-foreground"
|
|
80
80
|
>
|
|
81
81
|
{submitError}
|
|
82
82
|
</div>
|
|
@@ -85,7 +85,7 @@ export function FormWithValidation({
|
|
|
85
85
|
<form
|
|
86
86
|
id="profile-form"
|
|
87
87
|
onSubmit={form.handleSubmit(handleSubmit)}
|
|
88
|
-
className="space-y-
|
|
88
|
+
className="space-y-5"
|
|
89
89
|
noValidate
|
|
90
90
|
>
|
|
91
91
|
<FormField
|
|
@@ -135,7 +135,7 @@ export function FormWithValidation({
|
|
|
135
135
|
</form>
|
|
136
136
|
</Form>
|
|
137
137
|
</CardContent>
|
|
138
|
-
<CardFooter className="flex justify-end border-t border-border/60
|
|
138
|
+
<CardFooter className="flex justify-end border-t border-border/60 px-7 py-5">
|
|
139
139
|
<Button type="submit" form="profile-form" loading={pending} disabled={pending}>
|
|
140
140
|
{submitLabel}
|
|
141
141
|
</Button>
|
|
@@ -22,7 +22,7 @@ const sampleFinding: HeuristicFinding = {
|
|
|
22
22
|
rating: 4,
|
|
23
23
|
selector: "button#complete-purchase.btn-primary",
|
|
24
24
|
description:
|
|
25
|
-
"
|
|
25
|
+
"The button does not show a spinner or loading state while processing the transaction, causing double submission by the user.",
|
|
26
26
|
createdAt: "2 Sep 2026",
|
|
27
27
|
evaluatorName: "María R.",
|
|
28
28
|
};
|
|
@@ -38,6 +38,34 @@ export interface HeuristicFindingCardProps
|
|
|
38
38
|
onViewScreenshot?: (finding: HeuristicFinding) => void;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
+
const SEVERITY_STEPS = 5;
|
|
42
|
+
|
|
43
|
+
function getSeverityBadgeVariant(severity: FindingSeverity) {
|
|
44
|
+
switch (severity) {
|
|
45
|
+
case "CRITICAL":
|
|
46
|
+
return "coral-red" as const;
|
|
47
|
+
case "MEDIUM":
|
|
48
|
+
return "signal-teal" as const;
|
|
49
|
+
case "GOOD":
|
|
50
|
+
return "pulse-green" as const;
|
|
51
|
+
default:
|
|
52
|
+
return "neutral" as const;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
function getSeverityPipClass(severity: FindingSeverity): string {
|
|
57
|
+
switch (severity) {
|
|
58
|
+
case "CRITICAL":
|
|
59
|
+
return "bg-coral-red-foreground";
|
|
60
|
+
case "MEDIUM":
|
|
61
|
+
return "bg-signal-teal-foreground";
|
|
62
|
+
case "GOOD":
|
|
63
|
+
return "bg-pulse-green-foreground";
|
|
64
|
+
default:
|
|
65
|
+
return "bg-primary";
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
41
69
|
export function HeuristicFindingCard({
|
|
42
70
|
finding,
|
|
43
71
|
onEdit,
|
|
@@ -46,68 +74,66 @@ export function HeuristicFindingCard({
|
|
|
46
74
|
className,
|
|
47
75
|
...props
|
|
48
76
|
}: HeuristicFindingCardProps) {
|
|
49
|
-
const
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
return "signal-teal";
|
|
55
|
-
case "GOOD":
|
|
56
|
-
return "pulse-green";
|
|
57
|
-
default:
|
|
58
|
-
return "neutral";
|
|
59
|
-
}
|
|
60
|
-
};
|
|
77
|
+
const filledSteps = Math.min(
|
|
78
|
+
SEVERITY_STEPS,
|
|
79
|
+
Math.max(0, Math.round(finding.rating))
|
|
80
|
+
);
|
|
81
|
+
const pipActiveClass = getSeverityPipClass(finding.severity);
|
|
61
82
|
|
|
62
83
|
return (
|
|
63
84
|
<Card
|
|
64
|
-
className={cn(
|
|
85
|
+
className={cn(
|
|
86
|
+
"overflow-hidden border border-border bg-card text-card-foreground",
|
|
87
|
+
className
|
|
88
|
+
)}
|
|
65
89
|
{...props}
|
|
66
90
|
>
|
|
67
|
-
<CardHeader className="flex flex-row flex-wrap items-start justify-between gap-3 space-y-0
|
|
68
|
-
<div className="flex min-w-0 flex-1 flex-col gap-
|
|
91
|
+
<CardHeader className="flex flex-row flex-wrap items-start justify-between gap-x-4 gap-y-3 space-y-0 border-b border-border/60 px-6 py-5">
|
|
92
|
+
<div className="flex min-w-0 flex-1 flex-col gap-2.5">
|
|
93
|
+
<CardTitle className="break-words text-base font-semibold tracking-tight text-card-foreground">
|
|
94
|
+
{finding.heuristicTitle}
|
|
95
|
+
</CardTitle>
|
|
69
96
|
<div className="flex flex-wrap items-center gap-2">
|
|
70
|
-
<
|
|
97
|
+
<span className="inline-flex items-center rounded-sm border border-border bg-secondary px-2 py-0.5 font-mono text-xs font-medium text-muted-foreground tabular-nums">
|
|
71
98
|
{finding.heuristicId}
|
|
72
|
-
</
|
|
99
|
+
</span>
|
|
73
100
|
<Badge variant={getSeverityBadgeVariant(finding.severity)}>
|
|
74
101
|
{finding.severity}
|
|
75
102
|
</Badge>
|
|
76
103
|
</div>
|
|
77
|
-
<CardTitle className="break-words text-base font-semibold text-card-foreground">
|
|
78
|
-
{finding.heuristicTitle}
|
|
79
|
-
</CardTitle>
|
|
80
104
|
</div>
|
|
81
105
|
|
|
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
|
+
{(onEdit || onDelete) && (
|
|
107
|
+
<div className="flex shrink-0 items-center gap-1.5">
|
|
108
|
+
{onEdit && (
|
|
109
|
+
<Button
|
|
110
|
+
variant="ghost"
|
|
111
|
+
size="icon"
|
|
112
|
+
className="h-8 w-8 text-muted-foreground hover:text-foreground"
|
|
113
|
+
onClick={() => onEdit(finding)}
|
|
114
|
+
aria-label="Edit finding"
|
|
115
|
+
>
|
|
116
|
+
<Edit2 className="h-4 w-4" />
|
|
117
|
+
</Button>
|
|
118
|
+
)}
|
|
119
|
+
{onDelete && (
|
|
120
|
+
<Button
|
|
121
|
+
variant="ghost"
|
|
122
|
+
size="icon"
|
|
123
|
+
className="h-8 w-8 text-muted-foreground hover:text-coral-red-foreground"
|
|
124
|
+
onClick={() => onDelete(finding.id)}
|
|
125
|
+
aria-label="Delete finding"
|
|
126
|
+
>
|
|
127
|
+
<Trash2 className="h-4 w-4" />
|
|
128
|
+
</Button>
|
|
129
|
+
)}
|
|
130
|
+
</div>
|
|
131
|
+
)}
|
|
106
132
|
</CardHeader>
|
|
107
133
|
|
|
108
|
-
<CardContent className="flex flex-col gap-
|
|
134
|
+
<CardContent className="flex flex-col gap-5 px-6 py-6">
|
|
109
135
|
{finding.screenshotUrl ? (
|
|
110
|
-
<div className="overflow-hidden rounded-
|
|
136
|
+
<div className="group relative overflow-hidden rounded-lg border border-border bg-secondary">
|
|
111
137
|
<AspectRatio ratio={16 / 9}>
|
|
112
138
|
<img
|
|
113
139
|
src={finding.screenshotUrl}
|
|
@@ -120,52 +146,72 @@ export function HeuristicFindingCard({
|
|
|
120
146
|
<Button
|
|
121
147
|
variant="secondary"
|
|
122
148
|
size="sm"
|
|
123
|
-
className="absolute bottom-
|
|
149
|
+
className="absolute bottom-3 right-3 gap-1.5 text-xs opacity-0 transition-opacity focus-visible:opacity-100 group-focus-within:opacity-100 group-hover:opacity-100"
|
|
124
150
|
onClick={() => onViewScreenshot(finding)}
|
|
125
151
|
>
|
|
126
|
-
<ExternalLink className="h-3 w-3" />
|
|
152
|
+
<ExternalLink className="h-3.5 w-3.5" />
|
|
127
153
|
<span>Expand</span>
|
|
128
154
|
</Button>
|
|
129
155
|
)}
|
|
130
156
|
</div>
|
|
131
157
|
) : (
|
|
132
|
-
<div className="flex items-center justify-center rounded-
|
|
133
|
-
<ImageIcon className="h-4 w-4" />
|
|
158
|
+
<div className="flex items-center justify-center gap-2.5 rounded-lg border border-dashed border-border bg-secondary/40 px-5 py-8 text-xs text-muted-foreground">
|
|
159
|
+
<ImageIcon className="h-4 w-4 shrink-0" />
|
|
134
160
|
<span>No screenshot captured</span>
|
|
135
161
|
</div>
|
|
136
162
|
)}
|
|
137
163
|
|
|
138
|
-
<div className="flex min-w-0 items-center justify-between gap-
|
|
164
|
+
<div className="flex min-w-0 items-center justify-between gap-3 rounded-md border border-border bg-secondary px-4 py-2.5 font-mono text-xs">
|
|
139
165
|
<span className="min-w-0 flex-1 truncate text-foreground">
|
|
140
166
|
{finding.selector}
|
|
141
167
|
</span>
|
|
142
|
-
<CopyButton
|
|
168
|
+
<CopyButton
|
|
169
|
+
value={finding.selector}
|
|
170
|
+
className="h-8 w-8 shrink-0 text-muted-foreground"
|
|
171
|
+
/>
|
|
143
172
|
</div>
|
|
144
173
|
|
|
145
|
-
<div className="flex flex-col gap-1">
|
|
146
|
-
<div className="flex flex-wrap items-center justify-between gap-2 text-xs text-muted-foreground">
|
|
147
|
-
<span className="min-w-0
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
174
|
+
<div className="flex flex-col gap-3.5 pt-1">
|
|
175
|
+
<div className="flex flex-wrap items-center justify-between gap-x-4 gap-y-2 text-xs text-muted-foreground">
|
|
176
|
+
<span className="min-w-0 font-medium text-muted-foreground">
|
|
177
|
+
Usability Severity Score
|
|
178
|
+
</span>
|
|
179
|
+
<div
|
|
180
|
+
className="flex shrink-0 items-center gap-3"
|
|
181
|
+
aria-label={`Usability severity score: ${finding.rating} of ${SEVERITY_STEPS}`}
|
|
152
182
|
>
|
|
153
|
-
|
|
154
|
-
|
|
183
|
+
<div className="flex items-center gap-1" aria-hidden="true">
|
|
184
|
+
{Array.from({ length: SEVERITY_STEPS }, (_, idx) => (
|
|
185
|
+
<span
|
|
186
|
+
key={idx}
|
|
187
|
+
className={cn(
|
|
188
|
+
"h-2 w-3.5 rounded-[2px]",
|
|
189
|
+
idx < filledSteps ? pipActiveClass : "bg-secondary"
|
|
190
|
+
)}
|
|
191
|
+
/>
|
|
192
|
+
))}
|
|
193
|
+
</div>
|
|
194
|
+
<span className="font-mono text-xs font-semibold text-foreground tabular-nums">
|
|
195
|
+
{finding.rating} / {SEVERITY_STEPS}
|
|
196
|
+
</span>
|
|
197
|
+
</div>
|
|
155
198
|
</div>
|
|
156
|
-
|
|
199
|
+
|
|
200
|
+
<p className="m-0 break-words text-sm leading-relaxed text-foreground">
|
|
157
201
|
{finding.description}
|
|
158
202
|
</p>
|
|
159
203
|
</div>
|
|
160
204
|
</CardContent>
|
|
161
205
|
|
|
162
|
-
<CardFooter className="flex flex-wrap items-center justify-between gap-2 border-t border-border
|
|
206
|
+
<CardFooter className="flex flex-wrap items-center justify-between gap-x-4 gap-y-2 border-t border-border/60 px-6 py-4 text-xs text-muted-foreground">
|
|
163
207
|
<span>
|
|
164
208
|
{finding.evaluatorName
|
|
165
209
|
? `Evaluated by ${finding.evaluatorName}`
|
|
166
210
|
: "Audited element"}
|
|
167
211
|
</span>
|
|
168
|
-
{finding.createdAt &&
|
|
212
|
+
{finding.createdAt && (
|
|
213
|
+
<span className="tabular-nums">{finding.createdAt}</span>
|
|
214
|
+
)}
|
|
169
215
|
</CardFooter>
|
|
170
216
|
</Card>
|
|
171
217
|
);
|