load note.js in dashboard _scripts.html so My Sky applet banner works; fix stale new-note applet seeds in FTs
- _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 <discodedisco@outlook.com> Git commit message Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -9,7 +9,6 @@ from apps.applets.models import Applet
|
|||||||
class DashboardMaintenanceTest(FunctionalTest):
|
class DashboardMaintenanceTest(FunctionalTest):
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
super().setUp()
|
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="username", defaults={"name": "Username"})
|
||||||
Applet.objects.get_or_create(slug="palette", defaults={"name": "Palette"})
|
Applet.objects.get_or_create(slug="palette", defaults={"name": "Palette"})
|
||||||
|
|
||||||
|
|||||||
@@ -40,8 +40,6 @@ class TrayTest(FunctionalTest):
|
|||||||
# media query is correct from first paint.
|
# media query is correct from first paint.
|
||||||
self.browser = self._make_browser(768, 1024)
|
self.browser = self._make_browser(768, 1024)
|
||||||
self.test_server = None
|
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):
|
def _switch_to_landscape(self):
|
||||||
"""Recreate the browser, navigate to about:blank, then resize to
|
"""Recreate the browser, navigate to about:blank, then resize to
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{% load static %}
|
{% load static %}
|
||||||
<script src="{% static "apps/dashboard/dashboard.js" %}"></script>
|
<script src="{% static "apps/dashboard/dashboard.js" %}"></script>
|
||||||
|
<script src="{% static "apps/dashboard/note.js" %}"></script>
|
||||||
<script>
|
<script>
|
||||||
window.onload = () => {
|
window.onload = () => {
|
||||||
initialize("#id_text");
|
initialize("#id_text");
|
||||||
|
|||||||
Reference in New Issue
Block a user