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:
@@ -126,11 +126,12 @@
|
||||
{% if wardrobe_data.default is defined and wardrobe_data.default is mapping %}
|
||||
{# New nested format - show tabs for each outfit #}
|
||||
<ul class="nav nav-tabs mb-3" id="wardrobeTabs" role="tablist">
|
||||
{% for outfit_name in outfits %}
|
||||
{% for outfit in outfits %}
|
||||
{% set outfit_id = outfit.outfit_id %}
|
||||
<li class="nav-item" role="presentation">
|
||||
<button class="nav-link {% if loop.first %}active{% endif %}" id="outfit-{{ outfit_name }}-tab" data-bs-toggle="tab" data-bs-target="#outfit-{{ outfit_name }}" type="button" role="tab">
|
||||
{{ outfit_name }}
|
||||
{% if outfit_name == character.active_outfit %}
|
||||
<button class="nav-link {% if loop.first %}active{% endif %}" id="outfit-{{ outfit_id }}-tab" data-bs-toggle="tab" data-bs-target="#outfit-{{ outfit_id }}" type="button" role="tab">
|
||||
{{ outfit.name }}
|
||||
{% if outfit_id == character.active_outfit %}
|
||||
<span class="badge bg-primary ms-1">Active</span>
|
||||
{% endif %}
|
||||
</button>
|
||||
@@ -138,25 +139,32 @@
|
||||
{% endfor %}
|
||||
</ul>
|
||||
<div class="tab-content" id="wardrobeTabContent">
|
||||
{% for outfit_name in outfits %}
|
||||
<div class="tab-pane fade {% if loop.first %}show active{% endif %}" id="outfit-{{ outfit_name }}" role="tabpanel">
|
||||
{% for outfit in outfits %}
|
||||
{% set outfit_id = outfit.outfit_id %}
|
||||
<div class="tab-pane fade {% if loop.first %}show active{% endif %}" id="outfit-{{ outfit_id }}" role="tabpanel">
|
||||
<div class="d-flex justify-content-end mb-2">
|
||||
{% if outfit_name != 'default' %}
|
||||
{% if outfit_id != 'default' %}
|
||||
<div class="btn-group btn-group-sm">
|
||||
<button type="button" class="btn btn-outline-secondary" data-bs-toggle="modal" data-bs-target="#renameOutfitModal" data-outfit="{{ outfit_name }}">Rename</button>
|
||||
<form action="{{ url_for('delete_outfit', slug=character.slug) }}" method="post" class="d-inline" onsubmit="return confirm('Delete outfit \'{{ outfit_name }}\'?');">
|
||||
<input type="hidden" name="outfit" value="{{ outfit_name }}">
|
||||
<button type="button" class="btn btn-outline-secondary" data-bs-toggle="modal" data-bs-target="#renameOutfitModal" data-outfit="{{ outfit_id }}">Rename</button>
|
||||
<form action="{{ url_for('delete_outfit', slug=character.slug) }}" method="post" class="d-inline" onsubmit="return confirm('Delete outfit \'{{ outfit_id }}\'?');">
|
||||
<input type="hidden" name="outfit" value="{{ outfit_id }}">
|
||||
<button type="submit" class="btn btn-outline-danger">Delete</button>
|
||||
</form>
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% for key, value in wardrobe_data[outfit_name].items() %}
|
||||
<div class="mb-3">
|
||||
<label for="wardrobe_{{ outfit_name }}_{{ key }}" class="form-label text-capitalize">{{ key.replace('_', ' ') }}</label>
|
||||
<input type="text" class="form-control" id="wardrobe_{{ outfit_name }}_{{ key }}" name="wardrobe_{{ outfit_name }}_{{ key }}" value="{{ value }}">
|
||||
</div>
|
||||
{% endfor %}
|
||||
{% if outfit.source == 'embedded' and outfit_id in wardrobe_data %}
|
||||
{% for key, value in wardrobe_data[outfit_id].items() %}
|
||||
<div class="mb-3">
|
||||
<label for="wardrobe_{{ outfit_id }}_{{ key }}" class="form-label text-capitalize">{{ key.replace('_', ' ') }}</label>
|
||||
<input type="text" class="form-control" id="wardrobe_{{ outfit_id }}_{{ key }}" name="wardrobe_{{ outfit_id }}_{{ key }}" value="{{ value }}">
|
||||
</div>
|
||||
{% endfor %}
|
||||
{% else %}
|
||||
<div class="alert alert-info">
|
||||
<i class="bi bi-info-circle"></i> This is an assigned external outfit. It cannot be edited directly from the character profile.
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user