[feat] Post drafts #281

Closed
opened 2023-02-15 21:29:13 +00:00 by solidsanek · 1 comment
Contributor

The idea

One feature I've always liked about Misskey/Founkey is how it drafts posts. And one thing that always bothered me about Pleroma/Akkoma is how easy it is to just accidentally click on or out of a thread, only to lose the content of a post currently being written.

*key instances can keep posts as drafts, be it a new post or a reply. The draft will be kept, even on a page refresh, even for replies, it will save the reply if you try to reply to the same post.

From what I can tell:

  • It saves a draft in the local storage whenever the DOM is updated
  • Deletes it when the post is sent or when all fields/media are empty
  • Loads them on start and whenever the DOM is updated (so it loads when a post is about to be made, since in Misskey it opens the post form in a pop-up)

Pretty much everything is done in this file I believe https://akkoma.dev/FoundKeyGang/FoundKey/src/branch/main/packages/client/src/components/post-form.vue

The reasoning

Definitely not me writing long replies and accidentally checking a thread, going back to the home TL or me accidentally closing the reply haha

Have you searched for this feature request?

  • I have double-checked and have not found this feature request mentioned anywhere.
  • This feature is related to the pleroma-fe Akkoma frontend specifically, and not the backend.
### The idea One feature I've always liked about Misskey/Founkey is how it drafts posts. And one thing that always bothered me about Pleroma/Akkoma is how easy it is to just accidentally click on or out of a thread, only to lose the content of a post currently being written. *key instances can keep posts as drafts, be it a new post or a reply. The draft will be kept, even on a page refresh, even for replies, it will save the reply if you try to reply to the same post. From what I can tell: - It saves a draft in the local storage whenever the DOM is updated - Deletes it when the post is sent or when all fields/media are empty - Loads them on start and whenever the DOM is updated (so it loads when a post is about to be made, since in Misskey it opens the post form in a pop-up) Pretty much everything is done in this file I believe https://akkoma.dev/FoundKeyGang/FoundKey/src/branch/main/packages/client/src/components/post-form.vue ### The reasoning Definitely not me writing long replies and accidentally checking a thread, going back to the home TL or me accidentally closing the reply haha ### Have you searched for this feature request? - [x] I have double-checked and have not found this feature request mentioned anywhere. - [x] This feature is related to the pleroma-fe Akkoma frontend specifically, and not the backend.
Author
Contributor

Thanks sanek, closing it

Thanks sanek, closing it
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
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: AkkomaGang/akkoma-fe#281
No description provided.