From 2088fedeee39688b1f801f0012e2e949f0ae41b1 Mon Sep 17 00:00:00 2001 From: Disco DeDisco Date: Thu, 23 Apr 2026 02:34:40 -0400 Subject: [PATCH] load note.js in dashboard _scripts.html so My Sky applet banner works; fix stale new-note applet seeds in FTs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - _scripts.html: add note.js alongside dashboard.js — Note global now available on dashboard page, enabling Note.handleSaveResponse from _applet-my-sky.html save handler - test_dashboard.py: remove stale new-note applet seed (renamed to new-post/billboard) - test_room_tray.py: remove stale new-note applet seed Code architected by Disco DeDisco Git commit message Co-Authored-By: Claude Sonnet 4.6 --- src/functional_tests/test_dashboard.py | 1 - src/functional_tests/test_room_tray.py | 2 -- src/templates/apps/dashboard/_partials/_scripts.html | 1 + 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/functional_tests/test_dashboard.py b/src/functional_tests/test_dashboard.py index 94827be..b300b7d 100644 --- a/src/functional_tests/test_dashboard.py +++ b/src/functional_tests/test_dashboard.py @@ -9,7 +9,6 @@ from apps.applets.models import Applet class DashboardMaintenanceTest(FunctionalTest): def setUp(self): super().setUp() - Applet.objects.get_or_create(slug="new-note", defaults={"name": "New Note"}) Applet.objects.get_or_create(slug="username", defaults={"name": "Username"}) Applet.objects.get_or_create(slug="palette", defaults={"name": "Palette"}) diff --git a/src/functional_tests/test_room_tray.py b/src/functional_tests/test_room_tray.py index 247a6d8..74d8c7b 100644 --- a/src/functional_tests/test_room_tray.py +++ b/src/functional_tests/test_room_tray.py @@ -40,8 +40,6 @@ class TrayTest(FunctionalTest): # media query is correct from first paint. self.browser = self._make_browser(768, 1024) self.test_server = None - from apps.applets.models import Applet - Applet.objects.get_or_create(slug="new-note", defaults={"name": "New Note"}) def _switch_to_landscape(self): """Recreate the browser, navigate to about:blank, then resize to diff --git a/src/templates/apps/dashboard/_partials/_scripts.html b/src/templates/apps/dashboard/_partials/_scripts.html index 7a00a9f..04fd6cc 100644 --- a/src/templates/apps/dashboard/_partials/_scripts.html +++ b/src/templates/apps/dashboard/_partials/_scripts.html @@ -1,5 +1,6 @@ {% load static %} +