wekan / wekan

The Open Source kanban (built with Meteor). Keep variable/table/field names camelCase. For translations, only add Pull Request changes to wekan/i18n/en.i18n.json , other translations are done at https://app.transifex.com/wekan/wekan only.
https://wekan.github.io
MIT License
19.46k stars 2.83k forks source link

Add draft support #3243

Open matrixes opened 4 years ago

matrixes commented 4 years ago

Issue

This is perhaps more of a feature request than an issue or bug. At least I couldn't find much if anything in the archives about this functionality.

I'd like to see support for drafts to some extent. Currently, when I'm writing a comment on a card, don't click the Comment button to immediately save it, and leave the card, all the text in the comment is now gone when I open the same card. It makes it very cumbersome without draft support as it's both easy to mis click outside the card window and accidently close it, or even opening up other cards to copy and paste information is not possible because the text I wrote doesn't stick until I click the "Comment" button.

Server Setup Information:

Problem description:

1: Create a card 2: Start typing in the Comment field 3: Close the card 4: Open the card

Expected behaviour: I'd like the text that I drafted to stay in the comment text area. Actual behaviour: The comment text area is empty, forcing me to rewrite the whole thing.

Nothing in the console is showing. It's empty.

2020-08-25T22:12:02Z wekan.wekan[19809]: DEFAULT_AUTHENTICATION_METHOD= (default value)
2020-08-25T22:12:02Z wekan.wekan[19809]: ATTACHMENTS_STORE_PATH= (default value)
2020-08-25T22:12:02Z wekan.wekan[19809]: SCROLLINERTIA=auto (default value)
2020-08-25T22:12:02Z wekan.wekan[19809]: error: error running snapctl: get which option?
2020-08-25T22:12:02Z wekan.wekan[19809]: SCROLLAMOUNT= (default value)
2020-08-25T22:12:02Z wekan.wekan[19809]: PASSWORD_LOGIN_ENABLED=true (default value)
2020-08-25T22:12:02Z wekan.wekan[19809]: MONGO_URL=mongodb://127.0.0.1:27019/wekan
2020-08-25T22:12:03Z wekan.wekan[19809]: Presence started serverId=wR72utHwGo7RYykxg
2020-08-25T22:12:04Z wekan.wekan[19809]: Meteor APM: completed instrumenting the app
2020-08-25T22:12:05Z wekan.wekan[19809]: {"line":"87","file":"percolate_synced-cron.js","message":"SyncedCron: Scheduled \"notification_cleanup\" next run @Wed Aug 26 2020 00:12:05 GMT+0200 (Central European Summer Time)","time":{"$date":1598393525344},"level":"info"}
chrnin commented 2 years ago

I just had a melancholic feedback because of this very thing… Is there a bounty for this feature ?

xet7 commented 2 years ago

@chrnin

When I search for draft at Roadmap I don't find anything, so it seems nobody has yet paid for draft support.

There is some draft support in WeKan already, but I don't know does it work currently. Sometimes some feature can get broken by some new change like new feature or fix.

chrnin commented 2 years ago

Thanks for looking ! I could have it done by myself ;)

Indeed, it's possible to use drafts with description field. When a user write into the description and click elsewhere (on the card), then his work in progress is stored in the database and he can reload the text like he left it. I noted that if you close the card by clicking elsewhere outside of the card, then work in progress is lost.

For the comment input zone, if you don't close the card then the input area isn't reset when you wander inside the card, but if you close the card then its content is lost (when dom object is destroyed I presume).