note palette modal: NVM closes confirm only; confirm visibility via style.display; swatch labels from _PALETTE_DEFS; recognitions block — TDD
- note-page.js: NVM hides confirm (style.display='none') — swatch modal stays open;
_showConfirm/_hideConfirm use style.display to bypass CSS specificity issues;
_doSetPalette reads data-palette-label before modal closes; appends
.note-recognitions__palette-line w. dim+bold markup after OK
- billboard/views.py: import _PALETTE_DEFS; _PALETTE_LABELS dict; _palette_opts()
enriches palette_options w. {name, label}; my_notes adds palette_label to note_items
- _note.scss: confirmed palette swatch uses gradient (palette vars cascade from
palette-* class); hardcoded bardo/sheol bg overrides removed; .note-recognitions block
w. .note-recognitions__header (tt-sign-section-header style) & __dim (tt-dim style);
.note-swatch-label in terUser bold; .note-item__palette gradient; confirm display:none default
- my_notes.html: p.name/p.label replaces slice hack; data-palette-label on swatch rows;
Recognitions block w. dim spans & strong values; removes hidden attr from confirm
- IT: test_palette_modal_renders_swatch_labels; test_also_saves_user_palette
- FT: NVM test corrected — modal stays open, confirm is_displayed() False; T2a URL fix
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:
@@ -15,6 +15,15 @@
|
||||
<div class="note-item__body">
|
||||
<p class="note-item__title">{{ item.title }}</p>
|
||||
<p class="note-item__description">{{ item.description }}</p>
|
||||
<div class="note-recognitions">
|
||||
<div class="note-recognitions__header">Recognitions</div>
|
||||
<ul class="note-recognitions__list">
|
||||
<li><span class="note-recognitions__dim">Title:</span> <strong>{{ item.title }}</strong></li>
|
||||
{% if item.obj.palette %}
|
||||
<li class="note-recognitions__palette-line"><span class="note-recognitions__dim">Palette:</span> <strong>{{ item.palette_label }}</strong></li>
|
||||
{% endif %}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% if item.obj.palette %}
|
||||
@@ -26,12 +35,13 @@
|
||||
{% if not item.obj.palette and item.palette_options %}
|
||||
<template class="note-palette-modal-tpl">
|
||||
<div class="note-palette-modal">
|
||||
{% for palette_name in item.palette_options %}
|
||||
<div class="{{ palette_name }}">
|
||||
{% for p in item.palette_options %}
|
||||
<div class="{{ p.name }}" data-palette-label="{{ p.label }}">
|
||||
<div class="note-swatch-body"></div>
|
||||
<span class="note-swatch-label">{{ p.label }}</span>
|
||||
</div>
|
||||
{% endfor %}
|
||||
<div class="note-palette-confirm" hidden>
|
||||
<div class="note-palette-confirm">
|
||||
<p>Lock in this palette?</p>
|
||||
<button type="button" class="btn btn-confirm">OK</button>
|
||||
<button type="button" class="btn btn-cancel">NVM</button>
|
||||
|
||||
Reference in New Issue
Block a user