Skip to content

Article improvements : Design éditeur, description, avatars et recherche#41

Merged
raynaldlao merged 9 commits into
masterfrom
article-improvements
Jul 18, 2026
Merged

Article improvements : Design éditeur, description, avatars et recherche#41
raynaldlao merged 9 commits into
masterfrom
article-improvements

Conversation

@raynaldlao

Copy link
Copy Markdown
Owner

Contexte

Cette PR a pour but d'améliorer le design de l'éditeur d'articles, ajouter une description optionnelle aux articles, augmenter la taille des avatars et implémenter une barre de recherche qui filtre par titre d'article, description ainsi que le nom de l'auteur.

🔖 Description d'article

  • Description optionnelle (300 caractères max) — migration V12, domaine/DTOs/services/adapteurs
  • Textarea avec compteur dynamique dans ArticleForm, affichée dans les vues liste et détail
  • text-align: justify appliqué aux descriptions dans toutes les vues
  • Refonte du formulaire éditeur : sections clarifiées, max-width unifié

👤 Métadonnées auteur & avatars

  • Texte auteur/date passé de body-sm à body-base
  • Avatars agrandis à 3rem dans les vues article et commentaire

📱 Mobile & double-tap

  • Breakpoint 360px : toolbar compacte, icônes réduites, activation vidéo au clic
  • Double-tap sélection (400ms) pour les champs titre/description et les commentaires SunEditor
  • Script partagé double-tap-select.js pour le champ de recherche

🔍 Barre de recherche & recherche par auteur

  • Backend : outerjoin sur AccountModel + ILIKE sur title, description, username
  • Frontend : layout flex attaché (input | × | 🔍), :focus-within anneau de focus, bouton de réinitialisation, breakpoint mobile
  • Pagination conserve le paramètre q=, message vide spécifique aux résultats

… 300 chars). V12 adds the column, domain/DTOs expose it and services/adapters pass it through on create/update. Frontend fetches and displays the description in list/detail views, with a textarea + counter in ArticleForm. Tests cover service, DTOs, integration and frontend behavior
…limit hint. Rename comment-limit-hint to desc-limit-hint in ArticleForm and group both classes under the same CSS rule for shared styling. JSX and CSS updated accordingly
…sections, centered layout and cleaner class names. Description and editor areas get consistent labels, a Content header, a shared body wrapper and a renamed section‑header class. CSS adds new label and section‑title styles, unified max‑width and replaces the hardcoded 0.7rem with var(--font-body-sm)
… and enlarge avatars in article and comment views. Item meta text moves from body‑sm to body‑base, avatars grow to 3 rem and comment avatars increase on both desktop and mobile. Initials usethe larger body‑base font size
…0 px. Remove the JS padding observer, switch mobile video activation from dblclick to click, add a 30 em CSS breakpoint with compact toolbar, adjusted editor padding and smaller icons and reduce main‑layout mobile padding to var(--spacing-lg)
…tle and description fields. Tap timing is tracked with a ref and a 400 ms window, triggering select() on inputs and textareas when two taps occur quickly
…tail and list views. CSS now applies text-align: justify to both .article-description and .article-editor-description for consistent rendering everywhere
…tor comments. The script now tracks tap timing with a 400 ms window and triggers a full‑content selection using a Range plus the Selection API when two taps occur quickly on the contenteditable area
… bar. Backend expands search to match titles, descriptions and usernames, with updates across adapters and tests. Frontend gets an attached flex search field with clear and submit controls, persistent query, an empty state and mobile tweaks. CSS unifies the layout and loads the double‑tap script. Tests cover in‑memory, SQLAlchemy and integration behavior
@raynaldlao
raynaldlao requested a review from hlargitte July 18, 2026 12:26
@raynaldlao raynaldlao self-assigned this Jul 18, 2026

@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

@raynaldlao
raynaldlao merged commit 01c554b into master Jul 18, 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