AppFlowy-IO / AppFlowy-IO/AppFlowy

[FR] Database Buttons

Aperta
#5,408 1 commento 3 reazioni 0 assegnatari Vedi su GitHub
automation database new feature rust
Lingua principale
Dart
Stelle
76.6k
Fork
6k
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

### Description

I think it would be convenient to be able to setup a button in a Database, that acts as a Cell wherein the action can perform a mutation on the row itself, depending on it's current data.

Take for example a Database that has a Single Select field that is used as "Status". It would be nice to have a way to easily move it through the flow, so depending on the status, the button would do certain things:
```
Status == "Waiting approval" => "Approve" => "Approved"
Status == "Approved" => ["Unapprove" => "Waiting approval" | "To do" => "To do" ]
```
Notice how the second option has multiple actions, I think we can be flexible and support up to 2 actions in a `ButtonCellFieldType`, and should be able to setup conditions and what it should change on pressed.

### Impact

Simplify task/project management in Databases by being able to setup a certain flow and be able to easily move items in the flow to the next/previous state.

### Additional Context

_No response_

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.