Skip to content

Fix inputs descriptions searchbar : Corrections et ajout UX (sélection de texte, interface de l’éditeur, pagination de la liste admin et nombre d’utilisateurs)#42

Merged
raynaldlao merged 8 commits into
masterfrom
fix-inputs-descriptions-searchbar
Jul 19, 2026
Merged

Fix inputs descriptions searchbar : Corrections et ajout UX (sélection de texte, interface de l’éditeur, pagination de la liste admin et nombre d’utilisateurs)#42
raynaldlao merged 8 commits into
masterfrom
fix-inputs-descriptions-searchbar

Conversation

@raynaldlao

@raynaldlao raynaldlao commented Jul 18, 2026

Copy link
Copy Markdown
Owner

Contexte

Améliorations visuelles et fonctionnelles de l'interface — sélection de texte, pagination numérotée avec fenêtrage et modal de saut, recherche et pagination serveur pour la liste des utilisateurs admin, alignement des axes centraux, nettoyage des doublons de templates et affichage du nombre total d'utilisateurs.

Changements

🎨 Visuel général

  • Suppression de l'overlay article-list : retrait du pseudo-élément .article-title-link::after qui couvrait toute la carte → le texte des descriptions reste sélectionnable
  • UI BlockNote viewer nettoyée : désactivation de tous les composants d'interface superflus en mode lecture
  • Alignement des axes centraux : visibility:hiddendisplay:none sur les liens cachés de pagination → le centrage du numéro de page correspond au titre et au lien retour
  • Refonte complète de la pagination admin : liens numérotés avec fenêtrage, Previous/Next, modal Jump to Page avec stepper — en haut ET en bas du tableau
  • Barre de recherche admin : champ avec icône SVG, bouton clear et soumission, aligné visuellement sur la barre de recherche des articles
  • Nombre total d'utilisateurs : <h1>Manage Users ({{ total_count }} users)</h1> — compteur dynamique visible sur toutes les pages, mis à jour selon la recherche active

📱 Mobile

  • Double-tap select global : sélection de tout le contenu des inputs et textarea au double-clic (Chrome mobile, Firefox mobile)
  • Sélection de texte restaurée : .bn-editor reçoit user-select: text → sélection fonctionnelle dans le viewer article
  • Scroll horizontal du tableau admin : focus clavier + overflow-x: auto + white-space: nowrap sur mobile
  • Flèches natives supprimées : suppression des spinners Chrome/Safari sur le <input type="number"> de la modale Jump to Page

⚙️ Backend

  • Pagination serveur admin : 20 users/page avec LIMIT/OFFSET, comptage, ports et adapteurs mis à jour
  • Recherche serveur admin : ILIKE sur username + email avec pagination conservée, couvert par 10 tests (InMemory, SQLAlchemy, Flask)
  • Macro pagination partagée : template Jinja mutualisé entre article_list et user_list
  • Total count dans le titre : total_count passé au template, test unitaire (mock count=47) + assertion dynamique dans le test d'intégration existant (AccountModel.query.count())

…rticle list so text can be selected. The .article-title-link::after pseudo‑element is dropped, leaving only the title link clickable and making description text selectable on all devices
…article detail and restore mobile text selection. All viewer‑mode UI components are turned off and the read‑only .bn-editor gets user-select: text so mobile browsers like Firefox can select content even when contenteditable is false
…al. A delegated listener on document handles all inputs and textareas, including dynamic ones. Editor fields are excluded and the script is loaded once in base.html
…in users. The endpoint now loads 20 users per page with LIMIT/OFFSET and a count query, updates all adapters and ports, adds pagination UI in the template and includes full test coverage across in‑memory, SQLAlchemy, Flask and integration layers
…in user list. Backend adds username/email search with pagination across all adapters and ports. Frontend adopts the article‑style search bar and removes the old JS. Tests cover in‑memory, SQLAlchemy and Flask behavior
…p modal to the admin user list. The template now uses the shared pagination macro, replaces prev/next with full editorial pagination, updates CSS to the new page‑link styles and adds the jump dialog. Tests are updated to match the new UI
…lignment in the admin user list. A second editorial‑pagination block is added above the table, hidden links are fully removed from the flex flow for proper centering and native number spinners are disabled on the jump‑page input
@raynaldlao raynaldlao self-assigned this Jul 18, 2026
@raynaldlao
raynaldlao requested a review from hlargitte July 18, 2026 18:04

@hlargitte hlargitte left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

…n list title. The template now displays “Manage Users (N users)”, the Flask adapter passes the count, and tests are updated to assert the dynamic value
@raynaldlao raynaldlao changed the title Fix inputs descriptions searchbar : Corrections UX (sélection de texte, interface éditeur) et pagination de la liste admin Fix inputs descriptions searchbar : Corrections et ajout UX (sélection de texte, interface de l’éditeur, pagination de la liste admin et nombre d’utilisateurs) Jul 19, 2026
@raynaldlao
raynaldlao merged commit d4085d1 into master Jul 19, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants