Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems with the right panel of Prisma Studio #1310

Open
Andcool-Systems opened this issue Jan 29, 2025 · 0 comments
Open

Problems with the right panel of Prisma Studio #1310

Andcool-Systems opened this issue Jan 29, 2025 · 0 comments
Labels
kind/bug A reported bug.

Comments

@Andcool-Systems
Copy link

Andcool-Systems commented Jan 29, 2025

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 Andcool-Systems added the kind/bug A reported bug. label Jan 29, 2025
@Andcool-Systems Andcool-Systems changed the title Problems with the right panel of Prisma CLI Problems with the right panel of Prisma Studio Jan 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug A reported bug.
Projects
None yet
Development

No branches or pull requests

1 participant