Add toast notifications for all saves and batch planner task add

Toast: replace buried #admin-msg hint with a floating green/red toast
(bottom-right, auto-dismisses after 3s) covering every save action —
lists, decks, items, grades, kids, units, courses, bulk imports, and
planner saves.

Planner batch add: clicking '+ Add' now queues items locally (shown
as dashed pending badges) without saving. A '💾 Save N items' button
appears in the toolbar; clicking it commits everything at once and
refreshes the planner. Queue clears on student change.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
nmemmertandClaude Sonnet 4.6 committed 2026-07-27 15:10:14 -04:00
1 parent b048ebbd85
commit 2accefd122
3 files changed
+82 -10

No files matched your search

+3 -1
View File
@@ -244,6 +244,7 @@
<button id="planner-next" class="secondary">Next →</button>
<button id="planner-copy" class="secondary">Copy last week</button>
<button id="planner-print">🖨 Print</button>
<button id="planner-save-all" hidden>💾 Save 0 items</button>
</div>
<details id="auto-schedule-details" class="admin-card" style="margin-bottom:1rem">
@@ -448,7 +449,6 @@
</form>
</section>
<p id="admin-msg" class="hint"></p>
</main>
</div>
@@ -458,6 +458,8 @@
<div id="assign-popup-students"></div>
</div>
<div id="toast" role="status" aria-live="polite" hidden></div>
<script src="admin.js"></script>
</body>
</html>