Skip to content

Commit 799ca26

Browse files
committed
Remove seed tag and status text
1 parent 404e484 commit 799ca26

9 files changed

Lines changed: 5 additions & 63 deletions

File tree

AGENTS.md

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ client/
3131
help-content.html # Help modal content
3232
config.json # Runtime configuration (dev default)
3333
src/ # Modular ES modules
34-
shell/ # status/websocket/help/config
34+
shell/ # websocket/help/config
3535
shared/ # math + format utilities
3636
probability-lab/ # domain/engine/state/ui
3737
design-system/ # CodeSignal Design System assets
@@ -105,19 +105,10 @@ Notes:
105105

106106
## Conventions
107107

108-
### Status Messages
109-
110-
Use these exact status messages:
111-
112-
- Ready
113-
- Loading...
114-
- Failed to load config
115-
116108
### DOM Element IDs
117109

118110
App shell:
119111

120-
- status
121112
- btn-help
122113
- probability-lab
123114

client/app.css

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,6 @@
3131
margin: 0;
3232
}
3333

34-
.bespoke .header .status {
35-
color: var(--Colors-Text-Body-Medium);
36-
}
37-
3834
/* Main Layout - base styles from template, overridden below */
3935
.bespoke .main-layout {
4036
display: block;
@@ -1013,12 +1009,6 @@
10131009
animation: pl-flash 0.5s ease;
10141010
}
10151011

1016-
/* Running status pulse */
1017-
.bespoke #status.running {
1018-
animation: pl-pulse 1.5s ease infinite;
1019-
color: var(--Colors-Alert-Warning-Default);
1020-
}
1021-
10221012
/* Color utility classes */
10231013
.bespoke .pl-positive {
10241014
color: var(--Colors-Alert-Success-Default);

client/app.js

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// CodeSignal Probability Lab
22
// A convergence-focused probability simulator (coin / die / spinner).
33
import Modal from './design-system/components/modal/modal.js';
4-
import { setStatus } from './src/shell/status.js';
54
import { initializeWebSocket } from './src/shell/websocket.js';
65
import { initializeHelpModal } from './src/shell/help.js';
76
import { loadConfig } from './src/shell/config.js';
@@ -21,11 +20,8 @@ function $(id) {
2120
}
2221

2322
const els = {
24-
status: $('status'),
25-
2623
setupDevice: $('pl-setup-device'),
2724
setupSampleSpace: $('pl-setup-sample-space'),
28-
seedSummary: $('pl-seed-summary'),
2925
biasSummary: $('pl-bias-summary'),
3026
relationshipSummary: $('pl-relationship-summary'),
3127

@@ -936,21 +932,18 @@ function initEventListeners() {
936932

937933
async function init() {
938934
// Initialize help modal and WebSocket (non-blocking)
939-
initializeHelpModal(Modal, setStatus);
935+
initializeHelpModal(Modal);
940936
initializeWebSocket();
941937

942938
// Initialize probability lab
943939
if (!els.singleConfig) return;
944940

945-
setStatus('Loading...');
946-
947941
// Load configuration from config.json
948942
let config;
949943
try {
950944
config = await loadConfig();
951945
} catch (error) {
952946
console.error('Failed to load config:', error);
953-
setStatus('Failed to load config');
954947
return;
955948
}
956949

@@ -1012,7 +1005,6 @@ async function init() {
10121005
// Defer initial render until after layout is complete
10131006
requestAnimationFrame(() => {
10141007
render(els, store.getState());
1015-
setStatus('Ready');
10161008
});
10171009
}
10181010

client/config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"mode": "single",
3-
"device": "coin",
3+
"device": "die",
44
"sections": {
55
"barChart": true,
66
"convergence": true,

client/index.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
<header class="header">
3131
<h1 class="heading-small">CodeSignal Probability Lab</h1>
3232
<div class="spacer"></div>
33-
<div id="status" class="status body-xsmall">Ready</div>
3433
<button id="btn-help" class="button button-text">Help</button>
3534
</header>
3635

@@ -60,7 +59,6 @@ <h2 class="heading-xsmall">Experiment Setup</h2>
6059

6160
<div class="pl-setup-meta">
6261
<div class="pl-setup-tags" aria-label="Experiment settings summary">
63-
<span id="pl-seed-summary" class="tag secondary">Seed: —</span>
6462
<span id="pl-bias-summary" class="tag secondary">Bias: —</span>
6563
<span id="pl-relationship-summary" class="tag secondary" hidden>Relationship: —</span>
6664
</div>

client/src/AGENTS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Scope: `client/src` ES modules (no framework, no bundler-specific globals).
44

55
## Directory Layout
66

7-
- `shell/`: status messaging, websocket, help modal, config loader.
7+
- `shell/`: websocket, help modal, config loader.
88
- `shared/`: pure utilities (math, formatting).
99
- `probability-lab/`: domain logic, simulation engine, state, and UI rendering.
1010

client/src/probability-lab/ui/render.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,6 @@ function setTag(tagEl, { text, variant }) {
5454
export function renderExperimentSetup(els, state) {
5555
if (!els.setupDevice || !els.setupSampleSpace) return;
5656

57-
const seed = (state.seedText ?? '').trim();
58-
const seedText = seed ? `Seed: ${seed}` : 'Seed: Random';
59-
setTag(els.seedSummary, { text: seedText, variant: seed ? 'info' : 'secondary' });
60-
6157
if (state.mode === 'two') {
6258
// Two-event mode: show both devices and sample spaces
6359
const deviceA = state.two.deviceA || '—';

client/src/shell/help.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
import helpContentHtml from '../../help-content.html?raw';
55

6-
export async function initializeHelpModal(Modal, setStatus) {
6+
export async function initializeHelpModal(Modal) {
77
try {
88
const helpContent = helpContentHtml;
99

@@ -21,9 +21,6 @@ export async function initializeHelpModal(Modal, setStatus) {
2121
});
2222
}
2323

24-
if (setStatus) {
25-
setStatus('Ready');
26-
}
2724
} catch (error) {
2825
console.error('Failed to load help content:', error);
2926
// Fallback to placeholder content
@@ -39,10 +36,6 @@ export async function initializeHelpModal(Modal, setStatus) {
3936
helpModal.open();
4037
});
4138
}
42-
43-
if (setStatus) {
44-
setStatus('Ready');
45-
}
4639
}
4740
}
4841

client/src/shell/status.js

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)