studio icon indicating copy to clipboard operation
studio copied to clipboard

Problems with the right panel of Prisma Studio

Open Andcool-Systems opened this issue 11 months ago • 0 comments

Bug description

In total, I found two bugs with the new right sidebar in prisma studio CLI.

  1. Text fields do not display previous cell state Image In this GIF, when you try to edit a text cell, the studio does not allow you to edit the previous state, but only enter a new one.

  2. Strange behavior of the right pane when editing numeric cells Image In this GIF, Studio demonstrates strange behavior where changing a numeric cell results in a syntax type error and the backspace key has no effect in the sidebar.

How to reproduce

This behavior is observed on all my projects using Prisma. I specifically reinstalled prisma in one of my projects, but the behavior did not change at all.

Expected behavior

  1. In my opinion, in the first case, the studio should allow you to change the previous state of the cell, and not offer to enter a new value.
  2. In the second case, the change in the right panel must be correctly interpreted by the prisma so as not to cause errors, and also immediately display data changes in the right panel.

Prisma information

Prisma version:

$ npx prisma -v
Environment variables loaded from .env
prisma                  : 6.3.0
@prisma/client          : 5.19.1
Computed binaryTarget   : windows
Operating System        : win32
Architecture            : x64
Node.js                 : v20.14.0
TypeScript              : 5.6.2
Query Engine (Node-API) : libquery-engine acc0b9dd43eb689cbd20c9470515d719db10d0b0 (at node_modules\@prisma\engines\query_engine-windows.dll.node)
Schema Engine           : schema-engine-cli acc0b9dd43eb689cbd20c9470515d719db10d0b0 (at node_modules\@prisma\engines\schema-engine-windows.exe)  
Schema Wasm             : @prisma/prisma-schema-wasm 6.3.0-17.acc0b9dd43eb689cbd20c9470515d719db10d0b0
Default Engines Hash    : acc0b9dd43eb689cbd20c9470515d719db10d0b0
Studio                  : 0.508.0

Schema:

datasource db {
    provider = "sqlite"
    url      = "file:dataBase.db"
}

generator db {
    provider = "prisma-client-js"
}

model AccessRoles {
    id          Int    @id @default(autoincrement())
    name        String @default("Default")
    level       Int    @unique @default(0)
    users       User[]
    icon        String @default("")
    public_name String @default("")
}

Environment & setup

OS: Windows 10 (Build 19045.5371) Browser: Google Chrome (132.0.0.0) DataBase: SQLite

Prisma logs

No special logs are displayed

Andcool-Systems avatar Jan 29 '25 16:01 Andcool-Systems