Improve the offline page and reconnect automatically
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 78/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- html, javascript
- Domain
- frontend
Research direction
Start with apps/web/public/offline.html, the page the service worker serves when offline, and with apps/web/public/sw.js, where the cache version lives. Redesign the page with inline CSS, a 'Try again' button, and a window 'online' listener that reloads the page, and bump the cache version in sw.js if the file changes. Done when the page loads with the network off in DevTools, reloads itself once back online, and logs no console errors or external requests.
Written by the indexing model from the issue text.
Description
Difficulty: Beginner · Estimated size: 2 to 4 hours
Context
apps/web/public/offline.html is shown by the service worker when there is no connection. It is plain.
Problem or goal
Make it look like Commune and recover on its own.
Suggested approach
- Add the logo and a friendly message, a "Try again" button, and an
onlineevent listener that reloads the page when the connection returns. - Keep the page self-contained (inline CSS, no external requests) so it works offline. Respect light and dark themes and
prefers-reduced-motion. - Keep the file small and update the service worker's cache version if the file changes (see
apps/web/public/sw.js).
Where to look
apps/web/public/offline.htmlapps/web/public/sw.js
Acceptance criteria
- Works with the network switched off in DevTools.
- Reloads on its own when online again.
- No console errors and no external requests.
How to work on it
- Comment here to claim it, so two people do not do the same work.
- Fork the repo and branch from
main(feat/short-nameorfix/short-name). Setup steps are in docs/DEVELOPMENT.md. - Keep the change focused and add tests for backend logic.
- Run
npm run typecheck,npm testandnpm run lintandnpm run formatbefore opening the pull request. - Use a Conventional Commits title (for example
feat(web): add bookmarks). More in CONTRIBUTING.md.
Stuck? Ask in this issue. Questions are welcome.
Generated by Claude Code
- Dominant language
- TypeScript
- Stars
- 6
- Forks
- 6
- Avg merge
- 1h 59m
- Merged PRs (30d)
- 59
Getting set up
Starts the project's dev container in your browser, under your own GitHub account.
- Ships a Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Haseeb-MernStack/commune
-
documentation good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Haseeb-MernStack/commune#138 ·
Maintainers usually reply within 1 day
-
api good first issue tests
Difficulty 2/5 Half a day Newbie friendliness 72/100
Haseeb-MernStack/commune#132 ·
Maintainers usually reply within 1 day
-
ci good first issue tests
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Haseeb-MernStack/commune#133 ·
Maintainers usually reply within 1 day
-
accessibility good first issue web
Difficulty 2/5 Half a day Newbie friendliness 74/100
Haseeb-MernStack/commune#117 ·
Maintainers usually reply within 1 day
-
documentation good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
Haseeb-MernStack/commune#115 ·
Maintainers usually reply within 1 day
All issues in Haseeb-MernStack/commune
Similar issues
-
[UI] Guard webApis against undefined window in SSR environmentsPossibly taken @madhavzanwar claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
headroomlabs-ai/headroom#4992 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
paperclipai/paperclip#22575 ·
Maintainers usually reply within 1 day
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Difficulty 1/5 Under an hour Newbie friendliness 82/100
lingdojo/kana-dojo#34502 · 1 comment · 5 reactions ·
Maintainers usually reply within 1 day
-
bug frontend good first issue help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
nikhilb2/simple_invoicing#935 ·