[GH-ISSUE #5408] [FR] Database Buttons #2406

Open
opened 2026-03-23 21:22:08 +00:00 by mirror · 1 comment
Owner

Originally created by @Xazin on GitHub (May 25, 2024).
Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/5408

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

Originally created by @Xazin on GitHub (May 25, 2024). Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/5408 ### 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_
Author
Owner

@Ahad-patel commented on GitHub (Nov 8, 2024):

Hey @Xazin @annieappflowy

should be able to setup conditions and what it should change on pressed.

Is this feature similar to this =>

Screenshot 2024-11-08 at 8 21 25 PM

Or it just similar to what notion offers, I have created a small overview to tackle this feature

Untitled-2024-11-08-1715 excalidraw

But I am not sure about the automation, just want to confirm before I start working on this feature.

<!-- gh-comment-id:2464983516 --> @Ahad-patel commented on GitHub (Nov 8, 2024): Hey @Xazin @annieappflowy > should be able to setup conditions and what it should change on pressed. Is this feature similar to this => <img width="979" alt="Screenshot 2024-11-08 at 8 21 25 PM" src="https://github.com/user-attachments/assets/08c1cdda-8180-475f-8797-468941c7a272"> Or it just similar to what notion offers, I have created a small overview to tackle this feature ![Untitled-2024-11-08-1715 excalidraw](https://github.com/user-attachments/assets/03f1f3a1-dd84-4a41-a80e-4bb3ee0e7a09) But I am not sure about the automation, just want to confirm before I start working on this feature.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
AppFlowy-IO/AppFlowy#2406
No description provided.