Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

address review (claude): aria-label day pills; pin interval-cron conversion test

[._.]/ Adam Eivycaecb2214525
diff --git a/client/src/components/WeekdayTimePicker.jsx b/client/src/components/WeekdayTimePicker.jsx
index 00bd4b1ab8..ecc81da130 100644
--- a/client/src/components/WeekdayTimePicker.jsx
+++ b/client/src/components/WeekdayTimePicker.jsx
@@ -37,6 +37,7 @@ export default function WeekdayTimePicker({ value, onChange, className = '' }) {
type="button"
onClick={() => toggleDay(wd.value)}
aria-pressed={active}
+ aria-label={wd.label}
title={wd.label}
className={`w-6 h-6 rounded text-xs font-medium ${
active
diff --git a/client/src/components/WeekdayTimePicker.test.jsx b/client/src/components/WeekdayTimePicker.test.jsx
index 8163f70809..b36ceb0866 100644
--- a/client/src/components/WeekdayTimePicker.test.jsx
+++ b/client/src/components/WeekdayTimePicker.test.jsx
@@ -34,6 +34,12 @@ describe('WeekdayTimePicker', () => {
it('shows no days selected for an interval cron the picker cannot represent', () => {
render(<WeekdayTimePicker value="*/15 * * * *" onChange={vi.fn()} />);
expect(screen.getByTitle('Mon')).toHaveAttribute('aria-pressed', 'false');
- // First interaction converts it into a simple day+time cron at the default time.
+ });
+
+ it('converts an unrepresentable interval cron into a day+time cron at the default time on first toggle', () => {
+ const onChange = vi.fn();
+ render(<WeekdayTimePicker value="*/15 * * * *" onChange={onChange} />);
+ fireEvent.click(screen.getByTitle('Mon'));
+ expect(onChange).toHaveBeenCalledWith('0 7 * * 1');
});
});