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

Offline mode #131

Open
NULLx76 opened this issue Feb 28, 2019 · 4 comments
Open

Offline mode #131

NULLx76 opened this issue Feb 28, 2019 · 4 comments
Assignees
Labels
feature New feature frontend Vue stuff

Comments

@NULLx76
Copy link
Member

NULLx76 commented Feb 28, 2019

Is your feature request related to a problem? Please describe.
Semi related to #45 , as this feature request will likely incorporate that issue.

Also related to #97 , however that likely will never be fixed as it is incompatible with our current real time editing feature.

Describe the solution you'd like
It would be nice if CSHub would work offline, with of course limited functionality. Just viewing posts should be good enough, if we really want to we could make it so that things like favouriting would still work and were "queued up" for when a connection becomes available again.

Additional context
The easiest way to achieve this is probably by using the service worker, Google has good documentation on how to achieve this, which we can make use of.

@NULLx76 NULLx76 added feature New feature frontend Vue stuff labels Feb 28, 2019
@NULLx76 NULLx76 added this to the 1.0.0 milestone Feb 28, 2019
@NULLx76 NULLx76 self-assigned this Feb 28, 2019
@RobbinBaauw
Copy link
Member

RobbinBaauw commented Feb 28, 2019

Yeah the odd thing is, it should already work: we use the service worker and a lot of posts are cached (upon opening), though we might need to do more aggresive caching

Offline editing won't happen indeed, with the current realtime editing it's nearly impossible to do that correctly (as in, you would get merge problems, the current setup would allow for offline editing though).

And I think queueing requests shouldn't be that hard, we could make some store for it which stores the requests to be made

@RobbinBaauw RobbinBaauw added this to To Do - 1.0.0 in Site project Feb 28, 2019
@NULLx76
Copy link
Member Author

NULLx76 commented Feb 28, 2019 via email

@RobbinBaauw
Copy link
Member

We could do this by taking the cache if no response within an x amount of seconds

@RobbinBaauw RobbinBaauw moved this from Important to Lot of work in Site project Jul 4, 2019
@RobbinBaauw RobbinBaauw moved this from New features to Improvements in Site project Jul 4, 2019
@RobbinBaauw
Copy link
Member

We should actually use a cache first approach!

@RobbinBaauw RobbinBaauw removed this from the 1.0.0 milestone Sep 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature frontend Vue stuff
Projects
Site project
  
Improvements
Development

No branches or pull requests

2 participants