upd: connected api

This commit is contained in:
2026-04-13 17:15:41 +08:00
parent 2cf96135f9
commit 65e9ed5ce6
3 changed files with 16 additions and 8 deletions

View File

@@ -0,0 +1,12 @@
/*
Warnings:
- The `app` column on the `bug` table would be dropped and recreated. This will lead to data loss if there is data in the column.
*/
-- AlterTable
ALTER TABLE "bug" DROP COLUMN "app",
ADD COLUMN "app" TEXT;
-- DropEnum
DROP TYPE "App";

View File

@@ -15,10 +15,6 @@ enum Role {
DEVELOPER DEVELOPER
} }
enum App{
desa_plus
hipmi
}
enum BugSource{ enum BugSource{
QC QC
@@ -90,7 +86,7 @@ model Log {
model Bug { model Bug {
id String @id @default(uuid()) id String @id @default(uuid())
userId String? userId String?
app App app String?
affectedVersion String affectedVersion String
device String device String
os String os String

View File

@@ -185,7 +185,7 @@ function ListErrorsPage() {
<Select <Select
label="Application" label="Application"
data={[ data={[
{ value: 'desa_plus', label: 'Desa+' }, { value: 'desa-plus', label: 'Desa+' },
{ value: 'hipmi', label: 'Hipmi' }, { value: 'hipmi', label: 'Hipmi' },
]} ]}
value={createForm.app} value={createForm.app}
@@ -282,7 +282,7 @@ function ListErrorsPage() {
placeholder="Application" placeholder="Application"
data={[ data={[
{ value: 'all', label: 'All Applications' }, { value: 'all', label: 'All Applications' },
{ value: 'desa_plus', label: 'Desa+' }, { value: 'desa-plus', label: 'Desa+' },
{ value: 'hipmi', label: 'Hipmi' }, { value: 'hipmi', label: 'Hipmi' },
]} ]}
value={app} value={app}
@@ -371,7 +371,7 @@ function ListErrorsPage() {
</Group> </Group>
<Group gap="md"> <Group gap="md">
<Text size="xs" c="dimmed"> <Text size="xs" c="dimmed">
{new Date(bug.createdAt).toLocaleString()} {bug.app.replace('_', ' ').toUpperCase()} v{bug.affectedVersion} {new Date(bug.createdAt).toLocaleString()} {bug.app?.toUpperCase()} v{bug.affectedVersion}
</Text> </Text>
</Group> </Group>
</Box> </Box>