super-schizo + super-nomad Notes: auto-grant to superusers; sig unlock; navbar titles — TDD
- drama/models.py: _NOTE_DISPLAY dict; Note.display_title / .display_greeting
properties; super-schizo → "21st Century" + "Schizoid Man";
super-nomad → "Howdy," + "Stranger"
- billboard/views.py: _NOTE_META super-schizo/nomad entries with mark_safe
HTML descriptions ("card-ref"-styled card names), swatch_label "I"/"0",
no palette_options; swatch_label added to note_items context
- lyric/models.py post_save: new superusers get super-schizo + super-nomad
Notes automatically; setup_sig_session grants them explicitly too
- epic/models.py _filter_major_unlocks: accepts super-nomad / super-schizo
as valid unlocks alongside their plain counterparts
- _navbar.html: display_greeting|safe + display_title replace slug|capfirst
- my_notes.html: note-item__image-box--label branch for swatch_label
- _note.scss: .note-item__image-box--label modifier (bold italic, solid border)
- _base.scss: .ord global ordinal superscript class (21st etc.)
- ITs: SuperuserNoteGrantTest (3); SigSelectRenderingTest +2 (super- variants)
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:
@@ -144,6 +144,27 @@ class SuperuserTokenCreationTest(TestCase):
|
||||
)
|
||||
|
||||
|
||||
class SuperuserNoteGrantTest(TestCase):
|
||||
def setUp(self):
|
||||
self.user = User.objects.create_superuser(
|
||||
email="admin@test.io", password="secret"
|
||||
)
|
||||
|
||||
def test_superuser_gets_super_schizo_note(self):
|
||||
from apps.drama.models import Note
|
||||
self.assertTrue(Note.objects.filter(user=self.user, slug="super-schizo").exists())
|
||||
|
||||
def test_superuser_gets_super_nomad_note(self):
|
||||
from apps.drama.models import Note
|
||||
self.assertTrue(Note.objects.filter(user=self.user, slug="super-nomad").exists())
|
||||
|
||||
def test_regular_user_does_not_get_super_notes(self):
|
||||
from apps.drama.models import Note
|
||||
regular = User.objects.create(email="regular@test.io")
|
||||
self.assertFalse(Note.objects.filter(user=regular, slug="super-schizo").exists())
|
||||
self.assertFalse(Note.objects.filter(user=regular, slug="super-nomad").exists())
|
||||
|
||||
|
||||
class WalletTooltipTest(TestCase):
|
||||
def setUp(self):
|
||||
self.user = User.objects.create(email="wallet@test.io")
|
||||
|
||||
Reference in New Issue
Block a user