[!NOTE]
Open for anyone. The #18985 first-timer reservation ended on 2026-10-31. Claim this issue with a comment.
The witness lives in the component tier: it tests something a person looks at, and #18985's tier rule sends those to a real browser.
Welcome 👋
Neo.component.Clock draws an analog clock with CSS: set time: '03:30' and it rotates two hands. The maths is four lines of school geometry, and nothing pins it yet. This is a friendly first spec: mount the component in a real browser, then compare numbers in its DOM.
This is a good first issue. It needs Node.js and a clone of this repository: no Docker, no AI setup.
Set up once: follow Set up the engine from a clone. The component tier starts its own server and builds the themes it needs on its first run.
Where things live
- Source:
src/component/Clock.mjs (ntype clock). The component's first child element is the minute hand and its second is the hour hand. Each hand gets an inline transform of rotate(<deg>deg).
- New test file:
test/playwright/component/component/Clock.spec.mjs
- Pattern to copy:
test/playwright/component/component/Image.spec.mjs. It mounts a component into the empty test viewport with Neo.worker.App.createNeoInstance, reads the real DOM, and destroys the component afterwards. To change a config on the mounted clock, use Neo.worker.App.setConfigs({id, ...}), as test/playwright/component/component/Base.spec.mjs does.
What to cover
| Config |
Expected in the DOM |
time: '03:30' |
minute hand transform: rotate(180deg), hour hand rotate(105deg) |
time: '15:45' |
minute hand rotate(270deg), hour hand rotate(112.5deg): hours wrap at 12 |
time: '12:00' |
both hands rotate(0deg) |
size: 300 |
the clock's inline height and width are 300px |
size set to a non-number (e.g. '50%') |
the inline height and width are empty |
showDisc: false, then true |
the clock loses the neo-show-disc class, then regains it |
fontSize: 30 |
the clock's inline font-size is 30px |
The formulas, from the source:
- hour angle:
30 * (hours % 12) + 0.5 * minutes
- minute angle:
6 * minutes
Done when
Out of scope
Styling, animation, and a live ticking clock.
While you wait for review
You just pinned one small piece of a multi-threaded application engine. In Neo.mjs your app's code runs inside a web worker, and the main thread only paints. Two things are worth ten minutes:
- See the part nobody expects. Run
npm run build-themes -- -n -e dev -t all and npm run server-start, open apps/workstation/, and drag a tab out of the browser window. It becomes its own OS window, still running, with the same component instances and the same worker. Benefits: Introduction explains why that is possible.
- Your coding agent can go much further here. The skills this repository's AI maintainers work with are published on npm as
neo-agent-skills, and they need no Knowledge Base and no Memory Core. With Claude or GPT beside you, the help wanted issues are within reach after this one.
Maintainer notes
Curated under #18985 (Hacktoberfest 2026). Found work: no unit or component spec names this module on dev (2026-09-23), and the angles follow from the source's two formulas.
Live latest-open sweep: the latest 20 open issues at 2026-09-23T14:24Z, with no equivalent (Neo.component.Clock title search: none). A2A: no claim on this scope. Memory Core: no prior decision.
Revised 2026-11-06, after @neo-gpt-emmy's readiness note (issuecomment-6678549858):
- the reservation is released, since it ended 2026-10-31;
- the paths, pattern and commands now match the stated component-tier decision;
- the table is translated to DOM terms.
The source premise holds at the live Clock.mjs blob 372f3406aa.
Origin Session ID: 3be453e4-8b04-4865-be62-4cff34f4e0c6
Welcome 👋
Neo.component.Clockdraws an analog clock with CSS: settime: '03:30'and it rotates two hands. The maths is four lines of school geometry, and nothing pins it yet. This is a friendly first spec: mount the component in a real browser, then compare numbers in its DOM.This is a good first issue. It needs Node.js and a clone of this repository: no Docker, no AI setup.
Set up once: follow Set up the engine from a clone. The component tier starts its own server and builds the themes it needs on its first run.
Where things live
src/component/Clock.mjs(ntypeclock). The component's first child element is the minute hand and its second is the hour hand. Each hand gets an inlinetransformofrotate(<deg>deg).test/playwright/component/component/Clock.spec.mjstest/playwright/component/component/Image.spec.mjs. It mounts a component into the empty test viewport withNeo.worker.App.createNeoInstance, reads the real DOM, and destroys the component afterwards. To change a config on the mounted clock, useNeo.worker.App.setConfigs({id, ...}), astest/playwright/component/component/Base.spec.mjsdoes.What to cover
time: '03:30'transform: rotate(180deg), hour handrotate(105deg)time: '15:45'rotate(270deg), hour handrotate(112.5deg): hours wrap at 12time: '12:00'rotate(0deg)size: 300heightandwidthare300pxsizeset to a non-number (e.g.'50%')heightandwidthare emptyshowDisc: false, thentrueneo-show-discclass, then regains itfontSize: 30font-sizeis30pxThe formulas, from the source:
30 * (hours % 12) + 0.5 * minutes6 * minutesDone when
test/playwright/component/component/Clock.spec.mjsexists and follows the pattern file's setup and teardown.test(...)per table row.Clock#afterSetSizeremoves the size withdelete. On a single-node component that reverts to the value leaked intowrapperStyle(see thestyle_docblock incomponent.Base), so the non-number row fails at runtime:500pxinstead of empty. Setstyle.heightandstyle.widthtonullthere instead, ascomponent.Base#showdoes forvisibility. If the component disagrees with any other row, say so on this issue before changingsrc/.npm run test-components -- test/playwright/component/component/Clock.spec.mjspasses.npm run test-componentspasses.Out of scope
Styling, animation, and a live ticking clock.
While you wait for review
You just pinned one small piece of a multi-threaded application engine. In Neo.mjs your app's code runs inside a web worker, and the main thread only paints. Two things are worth ten minutes:
npm run build-themes -- -n -e dev -t allandnpm run server-start, openapps/workstation/, and drag a tab out of the browser window. It becomes its own OS window, still running, with the same component instances and the same worker. Benefits: Introduction explains why that is possible.neo-agent-skills, and they need no Knowledge Base and no Memory Core. With Claude or GPT beside you, thehelp wantedissues are within reach after this one.Maintainer notes
Curated under #18985 (Hacktoberfest 2026). Found work: no unit or component spec names this module on
dev(2026-09-23), and the angles follow from the source's two formulas.Live latest-open sweep: the latest 20 open issues at 2026-09-23T14:24Z, with no equivalent (
Neo.component.Clocktitle search: none). A2A: no claim on this scope. Memory Core: no prior decision.Revised 2026-11-06, after @neo-gpt-emmy's readiness note (issuecomment-6678549858):
The source premise holds at the live
Clock.mjsblob372f3406aa.Origin Session ID: 3be453e4-8b04-4865-be62-4cff34f4e0c6