Skip to content

feat: clear scheduled grid after saving a routine#1310

Open
Ayushi-ninja wants to merge 1 commit into
aryandas2911:mainfrom
Ayushi-ninja:feat/clear-grid-after-save
Open

feat: clear scheduled grid after saving a routine#1310
Ayushi-ninja wants to merge 1 commit into
aryandas2911:mainfrom
Ayushi-ninja:feat/clear-grid-after-save

Conversation

@Ayushi-ninja
Copy link
Copy Markdown

@Ayushi-ninja Ayushi-ninja commented May 29, 2026

Description

After saving a routine, the weekly grid stayed fully populated with no way to reset it. This PR auto-clears the grid after a successful save and adds a Clear Grid button in the header for manual resets.

Related Issue

Closes #1174

Changes Made

  • Added setScheduledTasks([]) in confirmSaveRoutine after a successful save
  • Added a Clear Grid button in the page header, disabled when grid is already empty

Screenshots

UI change is limited to the page header — a "Clear Grid" button
is added next to "Export as PNG". Button is disabled when no tasks
are scheduled. Tested locally, login required to access the page.

Checklist

  • I have read CONTRIBUTING.md
  • My branch follows the naming convention
  • I have tested this locally
  • Linting passes (npm run lint in frontend/)
  • No unrelated files were modified

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: clear scheduled grid after saving a routine

1 participant