Add extra prompts, endless generation, random character default, and small fixes

- Add extra positive/negative prompt textareas to all 9 detail pages with session persistence
- Add Endless generation button to all detail pages (continuous preview generation until stopped)
- Default character selector to "Random Character" on all secondary detail pages
- Fix queue clear endpoint (remove spurious auth check)
- Refactor app.py into routes/ and services/ modules
- Update CLAUDE.md with new architecture documentation
- Various data file updates and cleanup

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Aodhan Collins
2026-03-13 02:07:16 +00:00
parent 1b8a798c31
commit 5e4348ebc1
170 changed files with 17367 additions and 9781 deletions

Binary file not shown.

File diff suppressed because it is too large Load Diff

View File

@@ -175,6 +175,23 @@ h5, h6 { color: var(--text); }
background: rgba(255, 255, 255, 0.06);
}
.queue-btn-active { color: var(--accent-bright) !important; }
/* Queue button generating animation */
.queue-btn-generating .queue-icon {
animation: queue-pulse 1.5s ease-in-out infinite;
}
@keyframes queue-pulse {
0%, 100% {
transform: scale(1);
opacity: 1;
}
50% {
transform: scale(1.2);
opacity: 0.7;
}
}
.queue-badge {
position: absolute;
top: -2px;
@@ -663,6 +680,7 @@ option { background-color: var(--bg-raised); color: var(--text); }
Text / Utility overrides
============================================================ */
.text-muted { color: var(--text-muted) !important; }
.text-accent { color: var(--accent-bright) !important; }
.border-bottom { border-color: var(--border) !important; }
.border-top { border-color: var(--border) !important; }
.border { border-color: var(--border) !important; }
@@ -689,7 +707,7 @@ small { color: var(--text-muted); font-size: 0.8em; }
.gallery-card {
position: relative;
overflow: hidden;
border-radius: var(--radius);
border-radius: 0;
background: var(--bg-raised);
cursor: pointer;
border: 1px solid var(--border);
@@ -784,6 +802,7 @@ small { color: var(--text-muted); font-size: 0.8em; }
transition: background-color 0.4s ease;
}
.status-dot.status-ok { background-color: #34d399; box-shadow: 0 0 5px rgba(52, 211, 153, 0.55); }
.status-dot.status-warning { background-color: #fbbf24; box-shadow: 0 0 5px rgba(251, 191, 36, 0.55); }
.status-dot.status-error { background-color: #f87171; box-shadow: 0 0 5px rgba(248, 113, 113, 0.55); }
.status-dot.status-checking { background-color: var(--border-light); animation: status-pulse 1.4s ease-in-out infinite; }
@@ -831,3 +850,889 @@ textarea[readonly] {
border-color: var(--border) !important;
resize: vertical;
}
/* ============================================================
Gallery Navigation Modal
============================================================ */
#galleryModal .modal-content {
background: transparent;
border: none;
box-shadow: none;
}
#galleryModal .modal-body {
display: flex;
align-items: center;
justify-content: center;
min-height: 90vh;
}
#galleryImage {
max-height: 90vh;
max-width: 90vw;
object-fit: contain;
border-radius: var(--radius-sm);
box-shadow: 0 0 60px rgba(0, 0, 0, 0.5);
}
#gallery-prev, #gallery-next {
font-size: 2rem;
line-height: 1;
transition: opacity 0.2s ease, transform 0.2s ease;
}
#gallery-prev:hover, #gallery-next:hover {
opacity: 1 !important;
transform: translateY(-50%) scale(1.1);
}
#gallery-counter {
font-family: var(--font-display);
letter-spacing: 0.05em;
}
.hover-opacity-100:hover {
opacity: 1 !important;
}
/* ============================================================
GAZE Gallery Enhancement System
============================================================ */
/* --- View Mode Selector ------------------------------------- */
.gallery-controls {
display: flex;
align-items: center;
gap: 1rem;
padding: 0.75rem 1rem;
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: var(--radius);
margin-bottom: 1rem;
flex-wrap: wrap;
}
.gallery-view-modes {
display: flex;
gap: 0.5rem;
}
.gallery-view-btn {
display: inline-flex;
align-items: center;
gap: 0.5rem;
padding: 0.5rem 0.75rem;
background: transparent;
border: 1px solid var(--border);
border-radius: var(--radius-sm);
color: var(--text-muted);
font-size: 0.875rem;
cursor: pointer;
transition: all 0.2s ease;
}
.gallery-view-btn:hover {
border-color: var(--accent);
color: var(--text);
}
.gallery-view-btn.active {
background: var(--accent-glow);
border-color: var(--accent);
color: var(--accent-bright);
}
.gallery-view-btn svg {
width: 16px;
height: 16px;
}
.gallery-slideshow-dropdown {
position: relative;
}
.gallery-slideshow-btn {
display: inline-flex;
align-items: center;
gap: 0.5rem;
padding: 0.5rem 0.75rem;
background: linear-gradient(135deg, var(--accent-dim), var(--accent));
border: none;
border-radius: var(--radius-sm);
color: white;
font-size: 0.875rem;
font-weight: 500;
cursor: pointer;
transition: all 0.2s ease;
}
.gallery-slideshow-btn:hover {
box-shadow: 0 4px 12px var(--accent-glow-strong);
transform: translateY(-1px);
}
.gallery-slideshow-menu {
position: absolute;
top: 100%;
right: 0;
margin-top: 0.5rem;
min-width: 200px;
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: var(--radius-sm);
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
z-index: 1000;
display: none;
}
.gallery-slideshow-menu.open {
display: block;
}
.gallery-slideshow-menu-item {
display: flex;
align-items: center;
gap: 0.75rem;
padding: 0.75rem 1rem;
color: var(--text);
cursor: pointer;
transition: background 0.2s ease;
}
.gallery-slideshow-menu-item:hover {
background: var(--accent-glow);
}
.gallery-slideshow-menu-item:first-child {
border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}
.gallery-slideshow-menu-item:last-child {
border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}
/* --- Layout Variants ---------------------------------------- */
.layout-masonry .gallery-card {
break-inside: avoid;
margin-bottom: 12px;
}
.layout-justified .gallery-card img,
.layout-collage .gallery-card img {
aspect-ratio: auto;
height: 100%;
}
.layout-collage .gallery-card {
overflow: hidden;
}
.layout-collage .gallery-card:hover {
z-index: 10;
transform: scale(1.02);
}
/* --- Enhanced Viewer ---------------------------------------- */
.gaze-viewer {
position: fixed;
inset: 0;
z-index: 9999;
display: none;
align-items: center;
justify-content: center;
}
.gaze-viewer.open {
display: flex;
}
.gaze-viewer-backdrop {
position: absolute;
inset: 0;
background: rgba(0, 0, 0, 0.97);
backdrop-filter: blur(10px);
}
.gaze-viewer-content {
position: relative;
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
}
.gaze-viewer-stage {
flex: 1;
display: flex;
align-items: center;
justify-content: center;
position: relative;
overflow: hidden;
padding: 80px 120px;
}
.gaze-viewer-img {
max-width: 100%;
max-height: 100%;
object-fit: contain;
border-radius: var(--radius-sm);
transition: transform 0.3s ease;
cursor: grab;
user-select: none;
}
.gaze-viewer-img:active {
cursor: grabbing;
}
.gaze-viewer-img:active {
cursor: grabbing;
}
/* --- Viewer Navigation -------------------------------------- */
.gaze-viewer-nav {
position: absolute;
top: 50%;
transform: translateY(-50%);
width: 50px;
height: 50px;
display: flex;
align-items: center;
justify-content: center;
background: rgba(255, 255, 255, 0.1);
border: none;
border-radius: 50%;
color: white;
cursor: pointer;
transition: all 0.2s ease;
z-index: 100;
}
.gaze-viewer-nav:hover {
background: rgba(139, 126, 255, 0.3);
transform: translateY(-50%) scale(1.1);
}
.gaze-viewer-prev { left: 20px; }
.gaze-viewer-next { right: 20px; }
/* --- Viewer Toolbar ----------------------------------------- */
.gaze-viewer-toolbar {
position: absolute;
top: 0;
left: 0;
right: 0;
display: flex;
align-items: center;
justify-content: space-between;
padding: 1rem 1.5rem;
background: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent);
z-index: 100;
}
.gaze-viewer-toolbar-center {
display: flex;
align-items: center;
gap: 0.5rem;
}
.gaze-viewer-btn {
display: inline-flex;
align-items: center;
justify-content: center;
width: 40px;
height: 40px;
background: rgba(255, 255, 255, 0.1);
border: none;
border-radius: var(--radius-sm);
color: white;
cursor: pointer;
transition: all 0.2s ease;
}
.gaze-viewer-btn:hover {
background: rgba(139, 126, 255, 0.3);
}
.gaze-viewer-close {
width: 44px;
height: 44px;
}
.gaze-viewer-close:hover {
background: rgba(248, 113, 113, 0.3);
}
.gaze-viewer-counter {
color: rgba(255, 255, 255, 0.8);
font-family: var(--font-display);
font-size: 0.875rem;
letter-spacing: 0.05em;
}
.gaze-viewer-zoom-level {
color: rgba(255, 255, 255, 0.6);
font-size: 0.75rem;
min-width: 3ch;
text-align: center;
}
/* --- Info Panel --------------------------------------------- */
.gaze-viewer-info {
position: absolute;
right: 0;
top: 80px;
bottom: 100px;
width: 300px;
background: var(--bg-card);
border-left: 1px solid var(--border);
padding: 1.5rem;
transform: translateX(100%);
transition: transform 0.3s ease;
z-index: 90;
overflow-y: auto;
}
.gaze-viewer-info.open {
transform: translateX(0);
}
.viewer-info-title {
font-family: var(--font-display);
font-size: 1.25rem;
font-weight: 600;
color: var(--text);
margin-bottom: 0.5rem;
}
.viewer-info-meta {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
margin-bottom: 1.5rem;
}
.viewer-info-category {
display: inline-block;
padding: 0.25rem 0.5rem;
background: var(--accent-glow);
border-radius: 4px;
font-size: 0.75rem;
text-transform: uppercase;
letter-spacing: 0.05em;
color: var(--accent-bright);
}
.viewer-info-slug {
display: inline-block;
padding: 0.25rem 0.5rem;
background: var(--bg-raised);
border: 1px solid var(--border);
border-radius: 4px;
font-size: 0.75rem;
color: var(--text-muted);
}
.gaze-viewer-info-actions {
display: flex;
gap: 0.5rem;
margin-top: 1.5rem;
}
/* --- Thumbnail Strip ---------------------------------------- */
.gaze-viewer-thumbs {
position: absolute;
bottom: 0;
left: 0;
right: 0;
height: 80px;
background: rgba(0, 0, 0, 0.8);
padding: 10px 20px;
z-index: 100;
}
.gaze-viewer-thumbs-track {
display: flex;
gap: 8px;
height: 100%;
overflow-x: auto;
overflow-y: hidden;
scrollbar-width: thin;
scrollbar-color: var(--border-light) transparent;
}
.gaze-viewer-thumbs-track::-webkit-scrollbar {
height: 4px;
}
.gaze-viewer-thumbs-track::-webkit-scrollbar-thumb {
background: var(--border-light);
border-radius: 2px;
}
.gaze-viewer-thumb {
flex-shrink: 0;
width: 60px;
height: 60px;
border-radius: var(--radius-sm);
overflow: hidden;
cursor: pointer;
opacity: 0.6;
transition: all 0.2s ease;
border: 2px solid transparent;
}
.gaze-viewer-thumb:hover {
opacity: 0.9;
}
.gaze-viewer-thumb.active {
opacity: 1;
border-color: var(--accent);
box-shadow: 0 0 10px var(--accent-glow);
}
.gaze-viewer-thumb img {
width: 100%;
height: 100%;
object-fit: cover;
}
/* --- Slideshow Modes ---------------------------------------- */
.cinema-mode .gaze-viewer-stage {
padding: 0;
}
.cinema-mode .gaze-viewer-img {
max-width: 90vw;
max-height: 90vh;
box-shadow: 0 0 100px rgba(0, 0, 0, 0.5);
}
/* Ambient Glow */
.gaze-ambient-glow {
position: absolute;
inset: 0;
pointer-events: none;
z-index: 0;
transition: background 1s ease;
}
/* Showcase Frame */
.showcase-mode .gaze-viewer-stage {
background: var(--bg-raised);
}
.gaze-showcase-frame {
position: absolute;
inset: 40px;
border: 20px solid var(--bg-card);
box-shadow:
inset 0 0 60px rgba(0,0,0,0.3),
0 20px 60px rgba(0,0,0,0.4);
pointer-events: none;
}
/* Ambient Particles */
.gaze-particles {
position: absolute;
inset: 0;
pointer-events: none;
z-index: 1;
overflow: hidden;
}
.gaze-particle {
position: absolute;
border-radius: 50%;
animation: float-particle linear infinite;
filter: blur(1px);
}
@keyframes float-particle {
0% {
transform: translateY(100vh) translateX(0);
opacity: 0;
}
10% {
opacity: var(--particle-opacity, 0.5);
}
90% {
opacity: var(--particle-opacity, 0.5);
}
100% {
transform: translateY(-10vh) translateX(20px);
opacity: 0;
}
}
/* Ken Burns Effect */
.gaze-viewer-img.ken-burns {
animation: ken-burns 8s ease-in-out forwards;
}
@keyframes ken-burns {
0% {
transform: translate(0, 0) scale(1);
}
100% {
transform: translate(-3%, -2%) scale(1.15);
}
}
/* --- Transition Effects ------------------------------------- */
.transition-fade {
animation: transition-fade 0.8s ease;
}
@keyframes transition-fade {
from { opacity: 0; }
to { opacity: 1; }
}
.transition-slide {
animation: transition-slide 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes transition-slide {
from {
opacity: 0;
transform: translateX(50px);
}
to {
opacity: 1;
transform: translateX(0);
}
}
.transition-zoom {
animation: transition-zoom 0.7s ease;
}
@keyframes transition-zoom {
from {
opacity: 0;
transform: scale(0.8);
}
to {
opacity: 1;
transform: scale(1);
}
}
.transition-cube {
transform-style: preserve-3d;
perspective: 1000px;
animation: transition-cube 0.8s ease;
}
@keyframes transition-cube {
from {
transform: rotateY(-90deg);
opacity: 0;
}
to {
transform: rotateY(0);
opacity: 1;
}
}
/* --- Comparison Mode ---------------------------------------- */
.gaze-comparison {
position: fixed;
inset: 0;
z-index: 10000;
display: none;
}
.gaze-comparison.open {
display: flex;
}
.gaze-comparison-backdrop {
position: absolute;
inset: 0;
background: rgba(0, 0, 0, 0.98);
}
.gaze-comparison-content {
position: relative;
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
}
.gaze-comparison-images {
flex: 1;
position: relative;
display: flex;
overflow: hidden;
}
.gaze-compare-pane {
flex: 1;
position: relative;
overflow: hidden;
}
.gaze-compare-pane img {
width: 100%;
height: 100%;
object-fit: contain;
}
.gaze-compare-divider {
position: absolute;
top: 0;
bottom: 0;
left: 50%;
width: 4px;
background: var(--accent);
cursor: ew-resize;
z-index: 10;
}
.gaze-compare-handle {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 32px;
height: 32px;
background: var(--accent);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.gaze-compare-handle::before,
.gaze-compare-handle::after {
content: '';
position: absolute;
width: 0;
height: 0;
border-top: 6px solid transparent;
border-bottom: 6px solid transparent;
}
.gaze-compare-handle::before {
left: 6px;
border-right: 6px solid white;
}
.gaze-compare-handle::after {
right: 6px;
border-left: 6px solid white;
}
.mode-split .gaze-compare-pane-a,
.mode-split .gaze-compare-pane-b {
width: 50%;
}
.mode-onion .gaze-compare-pane-b {
position: absolute;
inset: 0;
opacity: 0.5;
}
.gaze-comparison-controls {
display: flex;
align-items: center;
justify-content: center;
gap: 1rem;
padding: 1rem;
background: var(--bg-card);
border-top: 1px solid var(--border);
}
.gaze-comparison-modes {
display: flex;
gap: 0.5rem;
}
.gaze-compare-mode-btn {
padding: 0.5rem 1rem;
background: transparent;
border: 1px solid var(--border);
border-radius: var(--radius-sm);
color: var(--text-muted);
cursor: pointer;
transition: all 0.2s ease;
}
.gaze-compare-mode-btn:hover,
.gaze-compare-mode-btn.active {
border-color: var(--accent);
color: var(--accent-bright);
background: var(--accent-glow);
}
.gaze-compare-close {
padding: 0.5rem 1rem;
background: rgba(248, 113, 113, 0.2);
border: 1px solid var(--danger);
border-radius: var(--radius-sm);
color: var(--danger);
cursor: pointer;
transition: all 0.2s ease;
}
.gaze-compare-close:hover {
background: rgba(248, 113, 113, 0.3);
}
/* Info View Metadata */
.gallery-card .info-meta {
padding: 0.5rem;
background: var(--bg-card);
border-top: 1px solid var(--border);
display: flex;
flex-direction: column;
gap: 4px;
}
/* --- Mosaic Layout ------------------------------------------ */
.layout-mosaic {
display: block;
gap: 0;
padding: 0;
}
.layout-mosaic .gallery-card {
border-radius: 0;
margin: 0;
padding: 0;
overflow: hidden;
}
.layout-mosaic .gallery-card img {
border-radius: 0;
display: block;
}
.layout-mosaic .gallery-card .cat-badge,
.layout-mosaic .gallery-card .overlay,
.layout-mosaic .gallery-card .info-meta {
display: none;
}
/* --- Responsive --------------------------------------------- */
@media (max-width: 768px) {
.gaze-viewer-stage {
padding: 60px 20px;
}
.gaze-viewer-nav {
width: 40px;
height: 40px;
}
.gaze-viewer-prev { left: 10px; }
.gaze-viewer-next { right: 10px; }
.gaze-viewer-info {
width: 100%;
top: auto;
bottom: 80px;
height: auto;
max-height: 50vh;
border-left: none;
border-top: 1px solid var(--border);
transform: translateY(100%);
}
.gaze-viewer-info.open {
transform: translateY(0);
}
.gallery-controls {
flex-direction: column;
align-items: stretch;
}
.gallery-view-modes {
justify-content: center;
}
.gallery-slideshow-dropdown {
align-self: center;
}
}
/* --- Utility ------------------------------------------------ */
.gaze-hidden {
display: none !important;
}
.gaze-visually-hidden {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
border: 0;
}
/* ============================================================
Gallery Selection Mode
============================================================ */
.gallery-selection-controls {
display: flex;
align-items: center;
gap: 0.5rem;
}
.gallery-card-checkbox {
position: absolute;
top: 10px;
left: 10px;
width: 24px;
height: 24px;
cursor: pointer;
z-index: 10;
background: rgba(0, 0, 0, 0.8);
border: 2px solid var(--border-light);
border-radius: 4px;
appearance: none;
transition: all 0.2s ease;
}
.gallery-card-checkbox:checked {
background: var(--accent);
border-color: var(--accent);
}
.gallery-card-checkbox:checked::after {
content: '✓';
display: flex;
align-items: center;
justify-content: center;
color: white;
font-size: 16px;
font-weight: bold;
width: 100%;
height: 100%;
}
.gallery-card-checkbox:hover {
border-color: var(--accent);
}
.gallery-card.selected {
border-color: var(--accent) !important;
box-shadow: 0 0 0 3px var(--accent-glow) !important;
}
.gallery-grid.selection-mode .gallery-card {
cursor: pointer;
}
.gallery-grid.selection-mode .gallery-card:hover {
transform: translateY(-2px);
}