This site uses cookies. By continuing to browse the site, you agree to our use of cookies. Find out more about cookies.
Skip to main content
Metadecidim's official logo
  • English Triar la llengua Elegir el idioma Choose language
    • Català
    • Castellano
Sign Up Sign In
  • Home
  • Processes
  • Assemblies
  • Initiatives
  • Consultations
  • Conferences
  • Help

Propose new functionalities for Decidim software

#DecidimRoadmap Designing Decidim together

Phase 1 of 1
Open 2019-01-01 - 2030-12-31
Process phases Submit a proposal
  • The process
  • Debates
  • Propose new features
  • News
chevron-left Back to list

Custom offline fallback page

Avatar: InnovacióDemocràtica InnovacióDemocràtica verified-badge
16/09/2021 11:57  
Finished

Ref. PWA10

NOTE: this feature is from a big development. See PWA discussion at GitHub.

Is your feature request related to a problem? Please describe.

As a visitor, when I don’t have connectivity and enter a Decidim page what I get is the “No internet connection” screen (aka Downasaur).

Describe the solution you’d like
I would want to see a personalized error message. For doing this exists the ServiceWorker API. It could also serve us as a building block for having other kinds of features with better offline support, such as being able to…

  • … read my messages
  • … send new messages when I get connectivity again
  • … download some parts of the platform (like all the contents of a given space)

Describe alternatives you’ve considered
To use something like Cordova or Ionic, but would be much more expensive to implement given our current architecture.

Additional context


Lighthouse relevant section

Does this issue could impact on users private data?
Could be, as this could potentially enable us to download some private data to the participant's mobile phone or browser, and an evil actor with local access to her device could read that data. At the moment we will only show a friendlier nonconnected page.

Acceptance criteria

  • Given that I’m a visitor that has already visited once Decidim and I’m not online,
    When I go again
    Then I see a custom error message.


  • Filter results for category: PX (Participant eXperience) / Usability PX (Participant eXperience) / Usability

The development of this proposal has finished

  • Reviewed by @product and accepted in the main project
  • It is funded by Barcelona City Council
  • Developed by Populate
  • Available in release 0.27 via #8594

Endorsements count0
Custom offline fallback page Comments 1

Reference: MDC-PROP-2021-09-16747
Version number 3 (of 3) see other versions
Check fingerprint

Fingerprint

The piece of text below is a shortened, hashed representation of this content. It's useful to ensure the content hasn't been tampered with, as a single modification would result in a totally different value.

Value: 9454b1b404ff1f71603896e3eadaa2142fb4ab1d5387f515f399b28473a5b45e

Source: {"body":{"en":"<p>Ref. PWA10</p><p>NOTE: this feature is from a big development. See <a href=\"https://github.com/decidim/decidim/discussions/8334\" target=\"_blank\">PWA discussion at GitHub</a>.</p><p><strong>Is your feature request related to a problem? Please describe.</strong></p><p>As a visitor, when I don’t have connectivity and enter a Decidim page what I get is the “No internet connection” screen (aka Downasaur).</p><p><strong><img src=\"https://i.imgur.com/R3yfgJf.png\"></strong></p><p><strong>Describe the solution you’d like<br></strong> I would want to see a personalized error message. For doing this exists the ServiceWorker API. It could also serve us as a building block for having other kinds of features with better offline support, such as being able to…</p><ul><li>… read my messages</li><li>… send new messages when I get connectivity again</li><li>… download some parts of the platform (like all the contents of a given space)</li></ul><p><strong>Describe alternatives you’ve considered<br></strong> To use something like Cordova or Ionic, but would be much more expensive to implement given our current architecture.</p><p><strong>Additional context</strong></p><p><strong><img src=\"https://i.imgur.com/Us67OHi.png\"><br></strong> <em>Lighthouse relevant section</em></p><p><strong>Does this issue could impact on users private data?<br></strong> Could be, as this could potentially enable us to download some private data to the participant's mobile phone or browser, and an evil actor with local access to her device could read that data. At the moment we will only show a friendlier nonconnected page.</p><p><strong>Acceptance criteria</strong></p><ul><li>Given that I’m a visitor that has already visited once Decidim and I’m not online,<strong><br></strong> When I go again<strong><br></strong> Then I see a custom error message.</li></ul><p><br></p>"},"title":{"en":"Custom offline fallback page"}}

This fingerprint is calculated using a SHA256 hashing algorithm. In order to replicate it yourself, you can use an MD5 calculator online and copy-paste the source data.

Share:

link-intact Share link

Share link:

Please paste this code in your page:

<script src="https://meta.decidim.org/processes/roadmap/f/122/proposals/16747/embed.js"></script>
<noscript><iframe src="https://meta.decidim.org/processes/roadmap/f/122/proposals/16747/embed.html" frameborder="0" scrolling="vertical"></iframe></noscript>

Report inappropriate content

Is this content inappropriate?

Reason

1 comment

Order by:
  • Older
    • Best rated
    • Recent
    • Older
    • Most discussed
Avatar: Hadrien Froger Hadrien Froger verified-badge
27/10/2021 11:23
  • Get link Get link

Can not upvote this more. I think it is an essential step to have a strong PWA for decidim.
Timestamping, privacy concerns, and so on are a nightmare when going offline.

Thanks @andres for pointing me to this proposal, I would suggest to add a link to meta decidim in the proposals description to see all the proposals related to PWA. I use this link that I found it useful (Searching "Ref. PWA" in proposals): https://meta.decidim.org/search?filter%5Bresource_type%5D=Decidim%3A%3AProposals%3A%3AProposal&filter%5Bterm%5D=Ref.+PWA

Add your comment

Sign in with your account or sign up to add your comment.

Loading comments ...

  • Terms and conditions of use
  • About the community
  • Download Open Data files
  • Metadecidim at Twitter Twitter
  • Metadecidim at Instagram Instagram
  • Metadecidim at YouTube YouTube
  • Metadecidim at GitHub GitHub
Creative Commons License Website made with free software.
Decidim Logo

Confirm

OK Cancel

Please sign in

decidim Sign in with Decidim Barcelona
Or

Sign up

Forgot your password?