Offline: a button to keep a studio for offline use now
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 42/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- nextjs, node.js, typescript
- Domain
- frontend, performance, web-dev
Research direction
Start with the existing offline logic in scripts/service-worker-source.mjs (the rememberRoute function and the REMEMBER_ROUTE message), then read components/projects/storage-panel.tsx and hooks/use-kept-studios.ts. Done means a Keep selected button in the Storage panel that fetches only the chosen studios, shows progress and size, reports what did not fit under the 300-file cap, and passes an end-to-end test that keeps a never-opened studio, goes offline and opens it.
Written by the indexing model from the issue text.
Description
Summary
A studio is kept for offline use only after it has been opened with a connection. Someone about to lose their connection cannot prepare. Add a Keep for offline button in the Storage panel that fetches the studios they choose now.
Part of the 2.0.0 plan: fewer, better and fully tested studios, on a calmer and faster site.
Where to look
components/projects/storage-panel.tsxscripts/service-worker-source.mjs:rememberRouteand theREMEMBER_ROUTEmessagehooks/use-kept-studios.ts
Behaviour
- List the studios with a checkbox each and their state (kept or not), and a Keep selected button that sends the worker one message per studio.
- Show progress and the size added, and never fetch without the person asking.
- Respect the 300 file cap of the runtime cache and say if something did not fit.
Acceptance criteria
- An end-to-end test keeps a studio that was never opened, goes offline and opens it.
- The sidebar marker updates when it is kept.
-
docs/storage.mdand the FAQ describe it.
Getting started: fork the repo, then pnpm install and pnpm dev (Node 22+, pnpm 11, no API keys). Before opening a PR, run pnpm typecheck && pnpm test && pnpm lint && pnpm format:check && pnpm check:dashes && pnpm build (CI fails on unformatted files, so pnpm format first). See CONTRIBUTING.md and the first contribution walkthrough.
Everything needed is in the repository. This doesn't need maintainer access, secrets or paid services. Comment below to claim it, and ask questions here any time.
- Dominant language
- TypeScript
- Stars
- 11
- Forks
- 3
- Avg merge
- 5h 44m
- Merged PRs (30d)
- 72
Getting set up
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 yakew7/DesignHub
-
area: docs difficulty: medium enhancement help wanted testing v2.0.0
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Maintainers usually reply within 1 day
-
accessibility area: ui difficulty: medium enhancement help wanted v2.0.0
Difficulty 4/5 3-5 days Newbie friendliness 57/100
Maintainers usually reply within 1 day
-
area: projects difficulty: easy enhancement good first issue help wanted v2.0.0
Difficulty 3/5 1-2 days Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
area: backgrounds difficulty: easy enhancement good first issue help wanted testing v2.0.0
Difficulty 3/5 1-2 days Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
area: projects difficulty: medium enhancement help wanted performance v2.0.0
Difficulty 3/5 1-2 days Newbie friendliness 84/100
Maintainers usually reply within 1 day
All issues in yakew7/DesignHub
Similar issues
-
Add: Shop On TV SDOpencheck:passed streams:add
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
Maintainers usually reply within 1 day
-
bug implicit-state
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
book-layout.spec fails when the similar-books rail holds other projects' booksPossibly taken @praetorianer777 claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
praetorianer777/GoTome#373 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Tencent/tdesign-react#4465 · 1 comment ·
Maintainers usually reply within 1 day
-
area:cards enhancement ready-for-agent
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
fil-donadoni/tolaria#8883 ·
Maintainers usually reply within 1 day