feat: lesson note version history (#374)

* chore: install diff package

* chore: add id to render component

* feat: implement language lesson version history

* chore: fix darkmode colors and use tailwind css

* chore: add screensize conditional

* refactor: list updating after data fetch

* change mode to view to prevent duplicate data being saved

* chore: remove raw text

* chore: db migration

* feat: properly format timestamp

* feat: add snackbar for success

* chore: group by minutes, use icons instead of texts for buttons

* docs: generate translations

* refactor

---------

Co-authored-by: Iniubong Obonguko <[email protected]>
This commit is contained in:
Rotimi Best
2024-06-30 04:47:15 +01:00
committed by GitHub
co-authored by Iniubong Obonguko
parent decea8d1e5
commit 931ccb1a09
15 changed files with 407 additions and 29 deletions
@@ -747,6 +747,12 @@
"option_label": "Option Label",
"cancel": "Cancel",
"poll_question": "Poll Question"
},
"version_history": {
"title": "Version history",
"fetch_more_versions": "Fetch more versions",
"current_version": "Current version",
"restore_version": "Restore this version"
}
},
@@ -1243,7 +1249,8 @@
"lessons": {
"success": {
"complete_marked": "Marked as complete",
"complete_download": "Download Complete"
"complete_download": "Download Complete",
"version_restored": "Version restored sucessfully"
},
"error": {
"try_later": "Something's not right - Please try later"