Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add last saved timestamp to status bar #402

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

maizehsu
Copy link

TL;DR

Add last saved to cloud timestamp to status bar.

What changed?

  • Add an extra prop in CloudSave type in document.service.ts to save last saved timestamp.
  • Call upsert function when needed in BottomBar.tsx when user saves to cloud.
  • Add status bar UI in BottomBar.tsx

How to test?

To test, make changes to the original document and click "Save to Cloud", an extra state displaying last saved timestamp will show on status bar right to "Save to Cloud".

Adding an extra prop in CloudSave type seems to involve some changes in database schema, as it throws an error public.upsert_document(p_content, p_format, p_id, p_last_saved) in the schema cache.

The screenshot is taken when ignoring this error.

image

Why make this change?

Last saved timestamp is a feature seen in other coding and productivity apps, it gives user an ease of mind. At critical times, e.g. if the user accidentally kills the session, they know where they were last time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant