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
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
chore: remove unused weekday time picker
Louis Deconinckad97fcfdb0d6
diff --git a/client/src/components/WeekdayTimePicker.jsx b/client/src/components/WeekdayTimePicker.jsxdeleted file mode 100644index 7e76d52938..0000000000--- a/client/src/components/WeekdayTimePicker.jsx+++ /dev/null@@ -1,22 +0,0 @@-import CronSchedulePicker from './CronSchedulePicker';--/**- * Day-of-week + time-of-day picker that reads/writes a cron expression.- *- * Toggle the days it should run and set the time — no crontab syntax. No days- * selected means every day (a daily schedule). `value` is a cron string;- * `onChange` receives the rebuilt cron string. When `value` is an- * interval/stepped cron the picker can't represent, the pills show unselected- * and the first interaction converts it into a simple day+time cron.- */-export default function WeekdayTimePicker({ value, onChange, className = '' }) {- return (- <CronSchedulePicker- value={value}- onChange={onChange}- className={className}- showAdvanced={false}- showSummary={false}- />- );-}diff --git a/client/src/components/WeekdayTimePicker.test.jsx b/client/src/components/WeekdayTimePicker.test.jsxdeleted file mode 100644index b36ceb0866..0000000000--- a/client/src/components/WeekdayTimePicker.test.jsx+++ /dev/null@@ -1,45 +0,0 @@-import { describe, it, expect, vi } from 'vitest';-import { render, screen, fireEvent } from '@testing-library/react';-import WeekdayTimePicker from './WeekdayTimePicker';--describe('WeekdayTimePicker', () => {- it('marks the days present in the cron as pressed', () => {- render(<WeekdayTimePicker value="0 9 * * 1,3" onChange={vi.fn()} />);- expect(screen.getByTitle('Mon')).toHaveAttribute('aria-pressed', 'true');- expect(screen.getByTitle('Wed')).toHaveAttribute('aria-pressed', 'true');- expect(screen.getByTitle('Tue')).toHaveAttribute('aria-pressed', 'false');- });-- it('adds a day to the cron when its pill is clicked', () => {- const onChange = vi.fn();- render(<WeekdayTimePicker value="0 9 * * 1" onChange={onChange} />);- fireEvent.click(screen.getByTitle('Fri'));- expect(onChange).toHaveBeenCalledWith('0 9 * * 1,5');- });-- it('removes a day when an active pill is clicked', () => {- const onChange = vi.fn();- render(<WeekdayTimePicker value="0 9 * * 1,5" onChange={onChange} />);- fireEvent.click(screen.getByTitle('Mon'));- expect(onChange).toHaveBeenCalledWith('0 9 * * 5');- });-- it('rebuilds the cron when the time changes', () => {- const onChange = vi.fn();- render(<WeekdayTimePicker value="0 9 * * 1" onChange={onChange} />);- fireEvent.change(screen.getByLabelText('Time of day'), { target: { value: '14:30' } });- expect(onChange).toHaveBeenCalledWith('30 14 * * 1');- });-- 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');- });-- 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');- });-});