Module: clone a component, and the route cache default of 200
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 74/100
- Issue type
- Documentation
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- typescript
- Domain
- documentation
Research direction
Read the referenced module issues cwa-nuxt-module#157, #408, and #259, along with api-components-bundle#502 and docs#259 for the cycle restriction. Update the documentation for cloning, multi-location deletion, and the route cache default, including the 200-route limit, unbounded setting, and memory tradeoff. Done when the documented behavior matches these changes and the relevant existing docs are updated.
Written by the indexing model from the issue text.
Description
Module changes for the next @cwa/nuxt release (after 2.0.0-alpha.21) that need documenting:
Clone a component (cwa-nuxt-module#157, #408)
- What clone is: the same component, with the same IRI, placed in another position. It is never a copy, so an edit in one place, or publishing it, changes it everywhere.
- The flow:
- Select a component and choose Clone in the manager bar's dots menu.
- Clone mode shows a "Cloning" bar with Cancel; Escape also cancels. The header's Enable Navigation toggle lets you browse the site while in clone mode.
- Clicking a target opens a dialog offering what adding a component offers there: Add before or after, Add to start or end, Add here in an empty group, or Use here in a page-data slot. Options that aren't allowed are disabled, with every reason.
- A target in the layout is flagged as appearing on every page that uses it.
- Several instances: every on-screen instance of a selected component is outlined, and every instance of the component being cloned is highlighted.
- Delete: a component used in several locations asks Delete from all X locations or Remove from this location only. The Info tab shows "Used in X locations".
- Cycles: a container can't be placed inside its own subtree. The module disables the option, and the API refuses it (api-components-bundle#502, docs#259).
Route cache default (cwa-nuxt-module#259)
cwa.routeCacheLimitnow defaults to 200 routes, not 50. Lookups and eviction no longer slow down as the store grows; navigation stays at about 5 ms up to 100k stored resources.- Set
0for unbounded, which is only sensible for small sites. - Memory, not speed, is the limit: about 3 KB per stored resource, so roughly 100 MB at ~30k resources. An IndexedDB cold tier is tracked in cwa-nuxt-module#405 for sites that would exceed that.
- Dominant language
- TypeScript
- Stars
- 0
- Forks
- 0
- Avg merge
- 1h 20m
- Merged PRs (30d)
- 1
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
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 components-web-app/docs
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
components-web-app/docs#259 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
components-web-app/docs#258 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
components-web-app/docs#257 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
components-web-app/docs#256 · 1 comment ·
-
Difficulty 1/5 1-3 hours Newbie friendliness 78/100
components-web-app/docs#253 ·
All issues in components-web-app/docs
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
paperclipai/paperclip#16785 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
code-yeongyu/senpi#3661 ·
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 78/100
lingdojo/kana-dojo#32731 · 1 comment · 5 reactions ·
Maintainers usually reply within 1 day
-
bug status: needs triage
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
mastra-ai/mastra#27538 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Yeachan-Heo/oh-my-codex#3822 ·
Maintainers usually reply within 1 day