Config strictement stricte partout (ruff, mypy --strict, bandit, vulture, import-linter, eslint, stylelint), aucune regle desactivee "pour ne pas casser le build" - l'existant a ete corrige pour la satisfaire plutot que l'inverse. Hooks pre-commit locaux (language: system) bloquants. - Typage mypy --strict propage a tout le moteur (db, screens, auth, core, ai, routes, puis publish/scripts/tests/app.py/build_css.py). - Securite : fuite de handle fichier Windows corrigee dans l'export SCORM (routes/publish/export_scorm.py), CSRF/RNG non-crypto/xAPI documentes (# nosec, # NOSONAR justifies), nouveau db.json_for_script() (echappe "</script>" dans le JSON embarque en <script>, 25 sites). - Architecture : imports circulaires/F811 nettoyes, contrats import-linter respectes, code mort retire (vulture). - Accessibilite : 69 champs de formulaire sans label correctement associe corriges (for/id ou aria-label) sur 11 templates. - ESLint/Stylelint : lot mecanique JS/CSS, regles ajustees puis appliquees (aucune desactivee sans verification individuelle). - Tests : isolation du compte admin partage (nettoyage ponctuel + fixture de teardown automatique en filet de securite), suite complete verte (591 tests Python, 241 tests JS). - SonarQube Community Build self-heberge (Docker + PostgreSQL) : rapport complet analyse point par point, faux positifs documentes. - .gitattributes ajoute (LF force) : core.autocrlf=true sur cette machine faisait echouer ESLint (linebreak-style) via un bug connu de git (checkout "en place" qui ignore l'eol force sur un fichier deja present sur disque - contourne en supprimant puis recreant chaque fichier suivi). djLint (H021, styles inline) volontairement saute pour ce commit - backlog assume, deja documente, traite dans un lot separe. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
48 lines
2.3 KiB
HTML
48 lines
2.3 KiB
HTML
{% extends "base.html" %}
|
|
{% block title %}Forge Engine — Créer mon jeu{% endblock %}
|
|
{% block body_class %}objectEditBody{% endblock %}
|
|
{% block content_class %}content-wide onboardingPage{% endblock %}
|
|
{% block content %}
|
|
{% if error %}<p class="hint onboardingError">{{ error }}</p>{% endif %}
|
|
|
|
<form method="post" action="{{ url_for('onboarding_new') }}" id="onboardingForm">
|
|
<input type="hidden" name="onboarding_type" id="onboardingTypeHidden">
|
|
|
|
<div class="onboardingViewport">
|
|
<div class="onboardingTrack" id="onboardingTrack">
|
|
|
|
<section class="onboardingStep onboardingStep--pick">
|
|
<h2 class="onboardingTitle">Quel jeu veux-tu créer ?</h2>
|
|
<div class="onboardingGrid">
|
|
{% for key, info in onboarding_types.items() %}
|
|
<button type="button" class="onboardingCard" data-type="{{ key }}" data-label="{{ info.label }}">
|
|
<span class="onboardingCardInner">
|
|
<span class="onboardingCardFace onboardingCardFront">
|
|
<span class="onboardingCardIcon">{{ info.icon }}</span>
|
|
<span class="onboardingCardLabel">{{ info.label }}</span>
|
|
</span>
|
|
<span class="onboardingCardFace onboardingCardBack">
|
|
{# NOSONAR S5247 - description est du HTML fixe, code en dur dans db.ONBOARDING_TYPES (aucune saisie utilisateur) #}
|
|
<span class="onboardingCardDesc">{{ info.description|safe }}</span>
|
|
</span>
|
|
</span>
|
|
</button>
|
|
{% endfor %}
|
|
</div>
|
|
</section>
|
|
|
|
<section class="onboardingStep onboardingStep--name">
|
|
<button type="button" class="onboardingBackBtn" id="onboardingBackBtn">← Changer de type</button>
|
|
<div class="onboardingNameBox">
|
|
<label class="onboardingTitle" for="onboardingNameInput">Quel est le nom de votre jeu ?</label>
|
|
<input type="text" name="name" id="onboardingNameInput" class="onboardingNameInput" placeholder="ex. CyberQuest RGPD" autocomplete="off">
|
|
<button type="submit" id="onboardingSubmitBtn" class="primary onboardingSubmitBtn" disabled>Créer mon jeu</button>
|
|
</div>
|
|
</section>
|
|
|
|
</div>
|
|
</div>
|
|
</form>
|
|
<script src="{{ url_for('static', filename='js/onboarding/onboarding_new.js') }}"></script>
|
|
{% endblock %}
|