leboncoin/spark-android

[FR]: Add legacy-pattern callout in COMPONENT_CREATION_GUIDE.md

Fermée

#2 118 ouverte le 27 juil. 2026

 (0 commentaire) (0 réaction) (0 personne assignée)Kotlin (31 forks)auto 404
contribution welcomeddocumentationgood first issuepriority:MEDIUM

Métriques du dépôt

Stars
 (85 étoiles)
Métriques de merge PR
 (Merge moyen 4j 9h) (73 PRs mergées en 30 j)

Description

Describe the problem

The guide documents the object-with-variant-methods pattern as the standard. Many existing components (Tags, Buttons) use per-variant top-level functions. Contributors studying existing code see a pattern the guide does not describe.

Describe the solution

Add a note near the architecture section stating that existing components may use a legacy pattern (per-variant top-level functions) and that new components should follow the object pattern.

Additional context

Priority: Medium. Effort: XS.

Guide contributeur