major styling additions & refinements; offloaded navbar from base.html into its own partial, core/_partials/_navbar.html, alongside new _footer.html; 0006 dash migrations fix 0003 & 0005 theme-switcher handling and rename more fluidly to palette; added remaining realm-swatches to palette applet choices & updated test_views accordingly
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Disco DeDisco
2026-03-07 15:05:49 -05:00
parent 672de8a994
commit 314da3e246
17 changed files with 304 additions and 81 deletions

View File

@@ -4,7 +4,7 @@ from django.db import migrations
def seed_applets(apps, schema_editor):
Applet = apps.get_model("dashboard", "Applet")
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="theme-switcher", defaults={"name": "Theme Switcher"})
class Migration(migrations.Migration):

View File

@@ -3,7 +3,7 @@ from django.db import migrations
def set_grid_defaults(apps, schema_editor):
Applet = apps.get_model("dashboard", "Applet")
Applet.objects.filter(slug__in=["username", "palette"]).update(grid_cols=6, grid_rows=3)
Applet.objects.filter(slug__in=["username", "theme-switcher"]).update(grid_cols=6, grid_rows=3)
Applet.objects.get_or_create(slug="new-list", defaults={"name": "New List", "grid_cols": 9, "grid_rows": 3})
Applet.objects.get_or_create(slug="my-lists", defaults={"name": "My Lists", "grid_cols": 3, "grid_rows": 3})

View File

@@ -0,0 +1,18 @@
from django.db import migrations
def rename_theme_switcher(apps, schema_editor):
Applet = apps.get_model("dashboard", "Applet")
Applet.objects.filter(slug="theme-switcher").update(
slug="palette", name="Palette", grid_cols=6, grid_rows=3
)
class Migration(migrations.Migration):
dependencies = [
("dashboard", "0005_set_applet_grid_defaults"),
]
operations = [
migrations.RunPython(rename_theme_switcher, migrations.RunPython.noop),
]