Skip to content

Commit 437eadf

Browse files
Ripwordsclaude
andcommitted
fix(dashboard): type BarChart orientation via Orientation enum
Import Orientation from @unovis/ts (path-mapped in Nuxt tsconfig) and bind :orientation="Orientation.Horizontal" instead of the plain string "horizontal", resolving TS2322 on the orientation prop. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 9f50c84 commit 437eadf

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

apps/dashboard/app/pages/admin/index.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<script setup lang="ts">
2+
import { Orientation } from "@unovis/ts"
23
import type { AdminOverviewDTO } from "@reprojs/shared"
34
import AppEmptyState from "~/components/common/app-empty-state.vue"
45
import { priorityColor, relativeTime } from "~/composables/use-report-format"
@@ -220,7 +221,7 @@ function describeEvent(e: AdminOverviewDTO["recentEvents"][number]): string {
220221
:height="240"
221222
:categories="topProjectsCategories"
222223
:y-axis="['open']"
223-
orientation="horizontal"
224+
:orientation="Orientation.Horizontal"
224225
:x-formatter="topProjectsXFormatter"
225226
/>
226227
<div v-else class="text-sm text-muted py-10 text-center">No open reports yet.</div>

0 commit comments

Comments
 (0)