AppFlowy-IO / AppFlowy-IO/AppFlowy

[FR] Database Buttons

未关闭
#5,408 1 条评论 3 个 reaction 已指派 0 人 在 GitHub 查看
automation database new feature rust
主要语言
Dart
星标
76.6k
派生
6k
PR 合并指标
30 天内没有已合并 PR

描述

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

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。