Software-Sektion + Drucker-Verwaltung + Slot-System + Selbstlern-Loop
Vier zusammenhaengende Iterationen, die das Funktions-Geruest der AG aufbauen.
Alle 6 Migrationen sind idempotent und legen Schema-Erweiterungen + initiale
Seeds an (Mock-Projekte nur, falls Profil 100 existiert — auf prod nicht).
Software-Sektion (Etappe 3):
- software_seite-Tabelle: schlanker Karten-Katalog (slug, titel, urls,
plattform, kategorie, sortierung, Cover-BLOB)
- 7 Initial-Karten (Bambu Studio/Handy, Printables, MakerWorld,
TinkerCAD, Onshape, Gridfinity-Generator)
- Admin-Verwaltung: Liste, Anlegen-Form, Bearbeiten, Aktiv-Toggle,
Hart-Loeschen, Bild-Upload via Crop-Tool (Strg+V/Drag&Drop, 400x400)
Drucker-Verwaltung (Etappe 5-vorgezogen):
- drucker.freigegeben + gesperrt_grund (Lehrer-Sperre fuer Reparatur)
- drucker.manual_url + troubleshooting_url (Override fuer Modell-Defaults)
- SuS-View /drucker (eingeloggt): Kacheln + Sperre-Banner + Belegung
- Admin /admin/drucker: Status-Override (idle/printing/failed/...),
Sperren/Freigeben mit Grund, Inline-Edit fuer URLs
Slot-System / Reservierung (Etappe 7-vorgezogen):
- profil.reservieren_freigeschaltet (Lehrer schaltet manuell frei,
ersetzt L1-Gate-Automatismus)
- services/slots.py: Konflikt-Check, Belegungs-Helper
- SuS-Routen /cockpit/slot/neu (mit Konflikt-Check), /cockpit/slots,
Stornieren
- Admin /admin/slots Uebersicht + /admin/slot/neu (Lehrer reserviert
fuer SuS) + Hart-Loeschen + Profil-Freigabe-Toggle
Selbstlern-Loop (Etappe 6 — Kern):
- projekt-Spalten: 3-Achsen-Eval (Gesamt + Planung + Ausfuehrung),
was_klappte_nicht, cover_blob, modellier_software_slug,
drucker_id_used, makerworld_url
- Regel: max. 1 aktives Projekt pro SuS, neues nur nach Freigabe
(auto bei zufrieden/mittel, Lehrer-Review bei gelernt)
- SuS-Werkstatt-Sektion: Titel + Beschreibung + Software-Dropdown +
Drucker-Dropdown + MakerWorld-URL + Files-Upload (drag&drop,
base64, max 30 MB)
- Cover-Bild via Crop-Tool (Re-use admin_software_bild-Pattern)
- Abschluss-Block: Pflicht Cover + mindestens 1 Datei
- Eval-Form: visuelle 3x3 Radio-Karten + 2 Freitexte
- Lehrer-Review: /admin/projekte mit Filter (wartet/in_arbeit/
abgeschlossen/rueckfrage), Aktionen freigeben/rueckfrage/loeschen
- Oeffentlicher Katalog /projekte: Sortier-Tabelle (Titel/Person/
Status/Erfolg/Datum), aufklappbare Detail mit Cover/Beschreibung/
Datei-Downloads/MakerWorld-Link
- Wiederhol-Logik: "Sowas mache ich auch" via Verknuepfung
(vorlage_projekt_id), bidirektionale Lineage-Banner
Cockpit-Refactoring:
- Projekt-Karte ganz oben (vor Onboarding) mit "Hier weitermachen"
- Check-In-Quick-Actions: nach Auswahl direkt zu /cockpit/projekt/neu,
/drucker, /lektionen, /cockpit/projekt/<aktiv>
- "Modus aendern"-Button im Eingecheckt-Banner
- Admin-Dashboard-Hub mit Karten: SuS-Profile, Software, Lektionen,
Drucker, Reservierungen, Projekte (Badge bei wartenden), Alph
Bug-Fixes:
- Admin-Login redirected jetzt auf /admin/dashboard statt /admin/profile
- app.py: neue Jinja-Filter iso_format + dauer_min
- .gitignore: .claude/ ausschliessen (lokale launch.json)
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -5,11 +5,70 @@
|
||||
<div class="section-header">
|
||||
<h1>Dashboard</h1>
|
||||
<div>
|
||||
<a href="{{ url_for('admin.profile_liste') }}" class="btn btn-secondary">Profile</a>
|
||||
<a href="{{ url_for('admin.admin_logout') }}" class="btn btn-secondary">Admin-Logout</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{# ====== Schnellnavigation (Verwaltungs-Karten) ====== #}
|
||||
<div class="grid"
|
||||
style="grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0.8rem; margin-bottom: 1.5rem;">
|
||||
<a href="{{ url_for('admin.profile_liste') }}" class="card"
|
||||
style="text-decoration: none; color: inherit; text-align: center; padding: 1.2rem 0.8rem;">
|
||||
<div style="font-size: 2rem;">👥</div>
|
||||
<div style="font-weight: 600; margin-top: 0.3rem; color: var(--primary-dark);">SuS-Profile</div>
|
||||
<div style="font-size: 0.8rem; color: var(--text-light); margin-top: 0.3rem;">Anlegen, PIN, Karten drucken</div>
|
||||
</a>
|
||||
<a href="{{ url_for('admin.software_liste') }}" class="card"
|
||||
style="text-decoration: none; color: inherit; text-align: center; padding: 1.2rem 0.8rem;">
|
||||
<div style="font-size: 2rem;">🖥️</div>
|
||||
<div style="font-weight: 600; margin-top: 0.3rem; color: var(--primary-dark);">Software & Generatoren</div>
|
||||
<div style="font-size: 0.8rem; color: var(--text-light); margin-top: 0.3rem;">Karten, Bilder, Tutorials</div>
|
||||
</a>
|
||||
<a href="{{ url_for('admin.admin_lektionen') }}" class="card"
|
||||
style="text-decoration: none; color: inherit; text-align: center; padding: 1.2rem 0.8rem; opacity: 0.6;"
|
||||
title="Verwaltung kommt mit Etappe 3-Inline-Edit-UI">
|
||||
<div style="font-size: 2rem;">📚</div>
|
||||
<div style="font-weight: 600; margin-top: 0.3rem; color: var(--primary-dark);">Lektionen</div>
|
||||
<div style="font-size: 0.8rem; color: var(--text-light); margin-top: 0.3rem;">Bearbeiten — kommt</div>
|
||||
</a>
|
||||
<a href="{{ url_for('admin.admin_drucker') }}" class="card"
|
||||
style="text-decoration: none; color: inherit; text-align: center; padding: 1.2rem 0.8rem;">
|
||||
<div style="font-size: 2rem;">🖨️</div>
|
||||
<div style="font-weight: 600; margin-top: 0.3rem; color: var(--primary-dark);">Drucker</div>
|
||||
<div style="font-size: 0.8rem; color: var(--text-light); margin-top: 0.3rem;">Status, Sperre, Links</div>
|
||||
</a>
|
||||
<a href="{{ url_for('admin.slot_uebersicht') }}" class="card"
|
||||
style="text-decoration: none; color: inherit; text-align: center; padding: 1.2rem 0.8rem;">
|
||||
<div style="font-size: 2rem;">🔖</div>
|
||||
<div style="font-weight: 600; margin-top: 0.3rem; color: var(--primary-dark);">Reservierungen</div>
|
||||
<div style="font-size: 0.8rem; color: var(--text-light); margin-top: 0.3rem;">Slot-Plan, fuer SuS anlegen</div>
|
||||
</a>
|
||||
<a href="{{ url_for('admin.projekte_uebersicht') }}" class="card"
|
||||
style="text-decoration: none; color: inherit; text-align: center; padding: 1.2rem 0.8rem;
|
||||
{% if projekte_warten > 0 %}border-top: 4px solid var(--warning);{% endif %}">
|
||||
<div style="font-size: 2rem; position: relative; display: inline-block;">
|
||||
🎯
|
||||
{% if projekte_warten > 0 %}
|
||||
<span style="position: absolute; top: -4px; right: -16px; background: var(--warning); color: white;
|
||||
border-radius: 10px; padding: 0.1rem 0.5rem; font-size: 0.7rem; font-weight: 700;">
|
||||
{{ projekte_warten }}
|
||||
</span>
|
||||
{% endif %}
|
||||
</div>
|
||||
<div style="font-weight: 600; margin-top: 0.3rem; color: var(--primary-dark);">Projekte</div>
|
||||
<div style="font-size: 0.8rem; color: var(--text-light); margin-top: 0.3rem;">
|
||||
{% if projekte_warten > 0 %}<strong style="color: var(--warning);">{{ projekte_warten }} wartet</strong>
|
||||
{% else %}alle Projekte ansehen{% endif %}
|
||||
</div>
|
||||
</a>
|
||||
<a href="/admin/feedback" class="card"
|
||||
style="text-decoration: none; color: inherit; text-align: center; padding: 1.2rem 0.8rem;">
|
||||
<div style="font-size: 2rem;">🐝</div>
|
||||
<div style="font-weight: 600; margin-top: 0.3rem; color: var(--primary-dark);">Alph-Feedback</div>
|
||||
<div style="font-size: 0.8rem; color: var(--text-light); margin-top: 0.3rem;">SuS-Rueckmeldungen</div>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
{# ====== Schnell-Zahlen ====== #}
|
||||
<div class="grid" style="grid-template-columns: repeat(3, 1fr); gap: 1rem;">
|
||||
<div class="stat-card">
|
||||
|
||||
Reference in New Issue
Block a user