mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2026-03-24 12:56:59 +00:00
[GH-ISSUE #1574] [FR] Clear value for date fields in grid/kanban #605
Labels
No labels
2024
2025
2026
acct mgmt
AI
automation
bug
calendar
ci
CJK
cloud
code-block
collaboration
copy-paste
database
data migration
data sync
deploy
desktop
develop
develop
documentation
duplicate
editor
editor-plugin
emoji
export
files
flutter-only
follow-up
formula
good first issue for devs
good first issue for experienced devs
grid
hacktoberfest
HACKTOBERFEST-ACCEPTED
help wanted
i18n
icons
images
importer
improvements
infra
install
integrations
IR
kanban board
login
look and joy
mentorship
mobile
mobile
needs design
new feature
new feature
non-coding
notes
notifications
onboarding
organization
P0+
permission
platform-linux
platform-mac
platform-windows
plugins
program
pull-request
Q1 25
Q1 26
Q2 24
Q2 25
Q3 24
Q3 25
Q4 24
Q4 25
react
regression
rust
rust
Rust-only
Rust-only
Rust-starter
Rust-starter
self-hosted
shortcuts
side panel
slash-menu
sync v2
table
tablet
task
tauri
templates
tests
themes
translation
v0.5.6
v0.5.8
v0.5.9
v0.6.0
v0.6.1
v0.6.4
v0.6.7
v0.6.8
v0.7.1
v0.7.4
v0.7.4
v0.7.5
v0.7.6
v0.7.7
v0.7.8
v0.8.0
v0.8.4
v0.8.5
v0.8.9
web
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
AppFlowy-IO/AppFlowy#605
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @richardshiue on GitHub (Dec 15, 2022).
Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/1574
Originally assigned to: @dejvizelo on GitHub.
Description
Most fields in the database allow you to clear the value, such as clearing out the text in a text field, or by deselecting all of the options. In date fields, however, the user is only permitted to change the date after setting it, or delete the entire row and recreate it.
Impact
Users wishing to clear the date field in their grid/kanban will be able to do so.
Additional Context
No response
@annieappflowy commented on GitHub (Dec 16, 2022):
TODO: Add a 'Clear' function for Date to allow users to clear the value entered into a Date cell
@hdjdoxDev commented on GitHub (Jan 11, 2023):
I would like to work on this issue!
@richardshiue commented on GitHub (Jan 11, 2023):
Hey @hdjdoxDev, thanks for offering to help on this. I've assigned the issue to you, hope to see your PR soon! If you have questions about the implementation, feel free to reach out to nathan on Discord.
@hdjdoxDev commented on GitHub (Jan 11, 2023):
Hello @richardshiue Given that this would be my first contribution I will need some guidance, are you sure I can ask Nathan?
@annieappflowy commented on GitHub (Jan 12, 2023):
Of course you can seek them for help!
Good luck and have fun
@hdjdoxDev commented on GitHub (Jan 13, 2023):
I've started getting my hands dirty with the code. Unfortunately I couldn't completely solve the issue because I'm not so familiar with the architecture and bloc in particular.
@richardshiue commented on GitHub (Jan 13, 2023):
Hey there @hdjdoxDev, glad to see progress. Do you think the accessory or an item in the menu would be better? I personally think that accessory would be too easy mis-click.
@annieappflowy commented on GitHub (Jan 13, 2023):
Hi @hdjdoxDev , you can seek help from @appflowy and @richardshiue on Discord. Happy coding and good luck!
@hdjdoxDev commented on GitHub (Jan 17, 2023):
Hi @richardshiue, I changed as you suggested but I still have some trouble following the bloc logic.
Now the button actually deselects the date in the Cal bloc but it does'n clear the value once the editor is deselected in the Cell bloc. My guess is that there is some null-safe logic that prevents changes but I still couldn't track it.
@richardshiue commented on GitHub (Jan 19, 2023):
Hello @hdjdoxDev, from what I can see in your code, you are following the right bloc, but the event that you're firing is what is used by the backend to send information to the Flutter side and since the date isn't cleared in the backend, the date gets restored to the UI. It'd be better if you added a new
DateCalEventsimilar tosetTimeand handle that instead. As for clearing the date value in the backend, you can simply set it to none and use the existing selectDay/setTime functions.@richardshiue commented on GitHub (Mar 9, 2023):
Hey there @hdjdoxDev, have you been able to make some progress on this?
@hdjdoxDev commented on GitHub (Mar 14, 2023):
Hi @richardshiue, I'm sorry I left you hanging, I was hoping to be assigned a mentor to help me catch up with some technical gaps.
I saw your edits to the last comment, it's is not so clear to me how to proceed after adding the
const factory DateCalEvent.resetTime() = _ResetTime;line. Right now I'm looking into the freezed package and the app_flowy docs.I don't know how much of a rush you have to get this issue solved, but with me it will take some time given my inexperience and small availability at the moment. Please consider reassigning this issue given the situation, either way I would be happy to keep exploring it till I get to the solution.
@richardshiue commented on GitHub (Mar 14, 2023):
Hey there @hdjdoxDev, I encourage you to keep trying. That's a good start, the next step is to handle it. Please feel free to reach me on Discord at Stormcheetah#4271
@hdjdoxDev commented on GitHub (May 9, 2023):
Hello @richardshiue, I am sorry to say that I will be unable to keep following this issue at the moment. I hope to come back and really help in the future. Thank you for your time and the encouragement!
@richardshiue commented on GitHub (May 10, 2023):
Hey there @hdjdoxDev, thanks for the update, and for trying to tackle this feature! Of course, I look forward to you coming back some time, I'm sure there will be other issues that you can work on.
@dejvizelo commented on GitHub (May 14, 2023):
I would like to work on this
@dejvizelo commented on GitHub (Jun 4, 2023):
@richardshiue I'm new to the project and would appreciate a bit of help on this. Can you elaborate a bit more on what you said above? Right now I can't seem to figure out how to set the date value to none, and I don't understand why or how we need to use the existing selectDay/setTime functions.
@annieappflowy commented on GitHub (Jun 19, 2023):
Hi @dejvizelo , would you like to continue to work on this issue?
@dejvizelo commented on GitHub (Jun 21, 2023):
Hi @annieappflowy, I'm still working on this but work has stalled a bit at the moment because I am not very familiar with Rust. I'm still keeping contact with @richardshiue to try to find a good implementation for it. Sorry that it's taking so long
@annieappflowy commented on GitHub (Jun 21, 2023):
Thanks @dejvizelo for the update. Keep going!
@dejvizelo commented on GitHub (Jul 5, 2023):
@annieappflowy PR is now ready