a2ui-project / a2ui-project/a2ui

Reserve internal keywords in component props like child, children, path, etc

Ouverte
#1,376 3 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
component: specification P2 type: feature/enhancement
Langage dominant
TypeScript
Étoiles
16.4k
Forks
1.3k
Merge moyen
2 j 13 h
PR mergées (30 j)
134

Description

There are some special keywords that should be reserved for the internals of A2UI. Some examples are child, children, path, among others. This surfaced in #1347.

We should do what we can to prevent unintended name collisions with these internal keywords. Maybe add an uncommon prefix, or have some type of build time check that prevents developers from using reserved keywords in their component props

This applies both to internal catalog components, as well as custom components created by devs.

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

Look at the component prop system in the codebase, likely in core files handling component definitions. Identify where prop names are validated or processed. Reference issue #1347 to understand the specific collision that surfaced. Determine how to add a prefix or build-time check, and ensure it works for both internal catalog components and custom components. Testing will involve creating components with reserved keywords to verify they are blocked or flagged.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
typescript
Domaine
frontend
Type d'issue
Fonctionnalité
Difficulté
4/5
Temps estimé
3-5 jours
Activité
Calme
Clarté
Plutôt claire
Accessibilité débutants
45/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.