amalia/13-apr-26 #7

Merged
amaliadwiy merged 6 commits from amalia/13-apr-26 into main 2026-04-13 17:19:36 +08:00
18 changed files with 1374 additions and 286 deletions
Showing only changes of commit 65e9ed5ce6 - Show all commits

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
}
enum App{
desa_plus
hipmi
}
enum BugSource{
QC
@@ -90,7 +86,7 @@ model Log {
model Bug {
id String @id @default(uuid())
userId String?
app App
app String?
affectedVersion String
device String
os String

View File

@@ -185,7 +185,7 @@ function ListErrorsPage() {
<Select
label="Application"
data={[
{ value: 'desa_plus', label: 'Desa+' },
{ value: 'desa-plus', label: 'Desa+' },
{ value: 'hipmi', label: 'Hipmi' },
]}
value={createForm.app}
@@ -282,7 +282,7 @@ function ListErrorsPage() {
placeholder="Application"
data={[
{ value: 'all', label: 'All Applications' },
{ value: 'desa_plus', label: 'Desa+' },
{ value: 'desa-plus', label: 'Desa+' },
{ value: 'hipmi', label: 'Hipmi' },
]}
value={app}
@@ -371,7 +371,7 @@ function ListErrorsPage() {
</Group>
<Group gap="md">
<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>
</Group>
</Box>