AppFlowy-IO / AppFlowy-IO/AppFlowy

[FR] Database Buttons

Open
#5,408 1 comment 3 reactions 0 assignees View on GitHub
automation database new feature rust
Dominant language
Dart
Stars
76.6k
Forks
6k
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.