mirror of
https://github.com/memohai/Memoh.git
synced 2026-04-25 07:00:48 +09:00
feat(web): structured schedule create/edit UI
Replace the read-only schedule list with a form-driven builder so users never hand-edit cron patterns. A canonical ScheduleFormState feeds two inverse pure functions (toCron / fromCron) that guarantee round-trip equivalence, so new and edit flows share the exact same UI state shape even though the DB stores only the pattern. Unrecognised patterns (AI- generated ranges/steps, descriptors, 6-field seconds cron) fall back losslessly to an advanced mode instead of being silently rewritten. The dialog adds live previews (human-readable via cronstrue, next 3 trigger times via cron-parser evaluated in the bot timezone) and row actions for edit / enable-toggle / delete.
This commit is contained in:
@@ -8,6 +8,7 @@ export default defineConfig({
|
||||
globals: true,
|
||||
include: [
|
||||
'packages/**/*.test.ts',
|
||||
'apps/**/*.test.ts',
|
||||
],
|
||||
env: process.env,
|
||||
testTimeout: Infinity,
|
||||
|
||||
Reference in New Issue
Block a user