AppFlowy-IO / AppFlowy-IO/AppFlowy

[FR] Database Buttons

Offen
#5,408 1 Kommentar 3 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
automation database new feature rust
Vorherrschende Sprache
Dart
Sterne
76.6k
Forks
6k
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

### 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_

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.