diffplug / diffplug/gitcasso

save revision and submission history of comments

Open
#26 1 comment 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
HTML
Stars
58
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Currently, Gitcasso cannot save drafts - as soon as a tab is closed, the draft is lost.

The sketch of the proposed feature is below:

- if the user has opted-in to draft saving
- then we save the draft history of their comments in a local `IndexedDB`, with a storage model similar to Gmail
- all comments are saved forever, or you can prune to only save the past `n` months
- you can "trash" a comment, anything in trash for more than 30 days gets permanently deleted
- you can go into the trash and delete a comment immediately

There are some things you can vote on

- **I want draft-saving** -> ⭐ the repo and 👍 this issue
- **I also want the option to opt-in to draft-saving on every textarea on any website** -> 🎉 this issue
- see also #98

Contributor guide

Open the contributing guide

Research direction

No files or tests are identified in the issue. Start by reviewing the existing comment textareas and related issue #98, then determine how opt-in draft saving should use local IndexedDB. Done means supporting persistent draft history, retention pruning, trash handling, and permanent deletion after 30 days.

Written by the indexing model from the issue text.

Assessment

Tech stack
html
Domain
frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.