Skip to content

armgit / kwant

Public Imported from GitHub
0

Your own team of AI bots in one self-hosted binary: spaces, every account you have, handoffs, approvals and routines. Open-source, self-hosted alternative to Grok Bot, Claude Duet and OpenAI dots. Rust + React.

New space: drop the Coming soon "Start with" choice (31i) (#921)

Oleksandr Ivanchenkof9d15441cdc7
diff --git a/frontend/src/components/Spaces.tsx b/frontend/src/components/Spaces.tsx
index 210824ba..f05da24f 100644
--- a/frontend/src/components/Spaces.tsx
+++ b/frontend/src/components/Spaces.tsx
@@ -403,19 +403,6 @@ export const NewSpaceModal: React.FC<NewSpaceProps> = ({ spaces, onClose, onCrea
</span>
</label>
- <fieldset className="space-y-1.5">
- <legend className="text-xs font-medium text-zinc-300 mb-1.5">Start with</legend>
- <label className="flex items-center gap-2.5 p-2.5 rounded-lg border border-sky-500/40 bg-sky-500/5 text-xs text-zinc-200">
- <input type="radio" name="space-start" checked readOnly className="accent-sky-500" />
- An empty space
- </label>
- <label className="flex items-center gap-2.5 p-2.5 rounded-lg border border-zinc-800 text-xs text-zinc-500 cursor-not-allowed">
- <input type="radio" name="space-start" disabled className="accent-sky-500" />
- <span className="flex-1">Copy bots from another space</span>
- <span className="px-1.5 py-px rounded bg-zinc-800 text-[10px] text-zinc-400">Coming soon</span>
- </label>
- </fieldset>
-
{error && (
<div role="alert" className="bg-rose-500/10 border border-rose-500/20 text-rose-300 px-3 py-2 rounded-lg text-xs flex items-center gap-2">
<AlertTriangle size={14} /> <span>{error}</span>
diff --git a/frontend/tests/spaces.test.mjs b/frontend/tests/spaces.test.mjs
index 83748b58..7e183f7d 100644
--- a/frontend/tests/spaces.test.mjs
+++ b/frontend/tests/spaces.test.mjs
@@ -80,11 +80,15 @@ test('the rail marks the open space and shows other spaces’ unread', () => {
assert.doesNotMatch(html, /\b[Aa]gents?\b/);
});
-test('a new space preselects the first unused colour and offers Copy bots as coming soon', () => {
+test('a new space preselects the first unused colour and offers no Coming soon choice', () => {
const html = m.newSpace({ spaces: [space()], onClose: noop, onCreated: noop });
assert.match(html, /#10b981/);
assert.match(html, /This machine/);
- assert.match(html, /Coming soon/);
+ // Every choice in the dialog works: no disabled "Copy bots" radio, no one-option "Start with" group.
+ assert.doesNotMatch(html, /Coming soon/i);
+ assert.doesNotMatch(html, /Copy bots/i);
+ assert.doesNotMatch(html, /Start with/i);
+ assert.doesNotMatch(html, /space-start/);
});
test('a reload or link reopens the bot or channel in the address, and a gone one falls back to #general', () => {