moon-plasma / moonplasma / MoonPlasma / Moon Plasma become chandra / Chandra everywhere: the WIT package (chandra:desktop, chandra:host, chandra:wm), the MoonBit module (chandra/desktop) and generated bindings, the Rust host, identifiers (ChandraCompositor), the session script (chandra-session) and desktop entry (chandra.desktop), config and data paths ($XDG_CONFIG_HOME/chandra, share/chandra/modules), env vars (CHANDRA_*), UI strings, docs and tests. The test fixture components are rebuilt against the renamed WIT. Saved panel.edn and state.edn are still read from the old $XDG_CONFIG_HOME/moon-plasma until the first save writes the new copy. The remote repository keeps its experiments/moon-plasma name for now. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DPL5hi3L9oVBoRd373Qr4n
This commit is contained in:
323 files changed
+1055
-1013
No files matched your search
@@ -15,7 +15,7 @@ const texts = (ops) => ops.filter((o) => o.tag === 'text').map((o) => o.val.text
|
||||
const configWith = async (mutate) => {
|
||||
const cfg = JSON.parse(await readFile(join(ROOT, 'config', 'desktop.json'), 'utf8'));
|
||||
mutate(cfg);
|
||||
const dir = await mkdtemp(join(tmpdir(), 'moonplasma-'));
|
||||
const dir = await mkdtemp(join(tmpdir(), 'chandra-'));
|
||||
const p = join(dir, 'desktop.json');
|
||||
await writeFile(p, JSON.stringify(cfg));
|
||||
return p;
|
||||
@@ -29,7 +29,7 @@ test('boots shell + widgets and composes a frame', async () => {
|
||||
const t = texts(f.ops);
|
||||
assert.ok(t.includes('14:07'), `clock text missing: ${t}`);
|
||||
assert.ok(t.includes('Tue 24 Nov'));
|
||||
assert.ok(t.includes('moon-plasma'));
|
||||
assert.ok(t.includes('chandra'));
|
||||
assert.ok(t.includes('Applications'));
|
||||
assert.equal(desktop.faults.length, 0);
|
||||
});
|
||||
@@ -60,7 +60,7 @@ test('launcher: click opens popup, row click launches via host capability, popup
|
||||
// second row (52px header + 46px rows)
|
||||
desktop.pointer('move', pr.x + 20, pr.y + 52 + 46 + 5);
|
||||
desktop.pointer('down', pr.x + 20, pr.y + 52 + 46 + 5);
|
||||
assert.deepEqual(platform.launches, ['org.moonplasma.files']);
|
||||
assert.deepEqual(platform.launches, ['org.chandra.files']);
|
||||
desktop.frame();
|
||||
assert.equal(desktop.hit.popup, null, 'popup closed after launch');
|
||||
});
|
||||
@@ -76,7 +76,7 @@ test('launcher: keyboard search narrows the list and Enter launches the first ma
|
||||
const t = texts(f.ops);
|
||||
assert.ok(t.includes('Calculator') && !t.includes('Terminal'));
|
||||
desktop.key('Enter');
|
||||
assert.deepEqual(platform.launches, ['org.moonplasma.calc']);
|
||||
assert.deepEqual(platform.launches, ['org.chandra.calc']);
|
||||
});
|
||||
|
||||
test('clicking outside the popup dismisses it (focus-lost)', async () => {
|
||||
|
||||
Reference in new issue
Block a user