Viewing Views – Refresh / Reload #911
Replies: 2 comments 8 replies
-
We currently do not have any auto-save or background processing capability (and we don't plan to for the first version of Mathesar). The user would have to manually refresh the view. I think providing a way to manually refresh is a good idea.
I should have been clearer when writing this; in this scenario, we do not know why the View data has failed to load. The backend may be down or produce an unknown error. The user might also have bad network connectivity. I do think we might have future scenarios where the user has lost access or data has changed in the background, but we don't need to plan for those yet. |
Beta Was this translation helpful? Give feedback.
-
Regarding the error messages,
Regarding Refresh and Save,
|
Beta Was this translation helpful? Give feedback.
-
This is the first of a series of new discussions for #466 Support for viewing a database view. This discussion is related to the now-closed discussions #624 and #653. Feel free to let me know if I missed anything or there's anything incorrect, since I'm new to the group and was not part of the last discussions. The Figma prototype that I'm using might contain outdated styles and components beyond the scope of this discussion.
The Problem
While working on the error states of loading a view, we started to think about the possible situations and how to let users retry. Besides unknown backend errors, error scenarios could be related to access privilege and collaboration, and GSuite has some good references. Please refer to Example Error Scenarios for details. If the loading errors were due to a simultaneous deletion or change of a view by another user, users might be provided an option to refresh the view panel. Please refer to Questions Regarding Refresh and Save. Some of these error scenarios and messages might apply to tables or Mathesar in general.
Example Error Scenarios
1. A view cannot be loaded due to access.
2. A view cannot be loaded due to changes.
When many people work on Google Slides and make changes simultaneously, a reload might be required. Not sure if this is something relevant to Mathesar.
3. A view cannot be loaded due to collaboration.
Questions Regarding Refresh and Save
A view might not be able to be loaded if another user just deleted or modified the view. It is unclear how Mathesar handles changes in the background currently. Would it check for updates in a predetermined interval? Or would it provide a refresh/reload button for certain panels or the entire interface in general?
Possible solution 1: A refresh status icon. This status icon would only show up and spin when updates are actively happening in the background. Alternatively, we could have a global refresh indicator. However, it is unclear where to put it on the current interface layout. Suggestions welcomed.
Possible solution 2: A refresh function in a view panel menu. It is unclear how Mathesar allows users to browse hundreds of views, besides doing a search. Is it possible to incorporate a sort or filter function for the view list as well?
Question regarding auto-save: The refresh/reload function might work well with an auto-save function, unless we imagine users see changes in real time like Google Docs. Speaking of auto-save, it is unclear to me whether we have auto-save for the views, or maybe the status message "changes have been saved" would show up only after users click "save". It seems the tables in the prototype that I'm using have an auto-save function, but maybe that's just outdated. Nonetheless, is a combination of "auto-save" and "save as" for views a good option?
Auto-save for tables?
Manual save for views?
Beta Was this translation helpful? Give feedback.
All reactions