bug(Schematics): Modernize schematics
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 45/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Tranquilla
- Stack tecnologico
- angular, typescript
- Ambito
- tooling
Direzione di ricerca
Inizia con l’issue 33381 di Navigation schematic e la guida degli schematics, quindi esamina l’output generato per address-form, dashboard, table e tree. Confronta le API, i form e i template generati con le indicazioni attuali di Angular Material; il lavoro è completato quando tutti e quattro gli schematics generano codice moderno e di qualità senza i pattern deprecati o posizionati in modo errato elencati.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Is this a regression?
- Yes, this behavior used to work in the previous version
The previous version in which this bug was not present was
No response
Description
I opened an Issue for modernizing the Navigation schematic: https://github.com/angular/components/issues/33381. I have since observed that all the other schematics generate code with similar issues, so I am opening this Issue for improving and modernizing the code generated by the rest of the schematics, namely:
- 1.
address-form - 2.
dashboard - 3.
table - 4.
tree
These are the issues I have observed:
- The code includes M2 APIs that are no longer relevant. E.g.,
address-formgenerates a button withcolor="primary", andtablegenerates a table withmat-elevation-z2. - The code includes Reactive Forms (e.g.,
address-form). This should be replaced with Signal Forms, or a command line argument needs to be provided to indicate Signal Forms. - The
treeschematic generates code that is based on deprecated modules:MatTreeFlatDataSource,MatTreeFlattener, andFlatTreeControl. Moreover, in the template, there is an empty button<button matIconButton disabled></button>. The icon is incorrectly placed after the button rather than within it.
Reproduction
This issue does not require a StackBlitz reproduction because these are comments on the code generated by the schematics.
Expected Behavior
The schematics should produce quality code and set the standard for implementing Material Design components.
Actual Behavior
The code has several issues.
Environment
Angular CLI : 22.0.1
Angular : 22.0.1
Node.js : 26.1.0
Package Manager : npm 11.16.0
Operating System : win32 x64
Browser: Chrome
- Lingua principale
- TypeScript
- Stelle
- 25k
- Fork
- 6.8k
- Merge medio
- 1g 1h
- PR unite (30g)
- 84
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di angular/components
-
area: material/tree docs gemini-triaged needs triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
angular/components#33832 ·
-
area: material/datepicker gemini-triaged P4
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
angular/components#33763 · 2 commenti · 3 reazioni ·
-
area: material/table gemini-triaged P4
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
angular/components#33709 · 1 commento ·
-
area: material/table docs gemini-triaged P4
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
angular/components#33455 ·
-
area: material/core gemini-triaged P3
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 78/100
angular/components#33059 · 2 commenti ·
Tutte le issue di angular/components
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
mksglu/context-mode#1200 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
jaegertracing/jaeger-ui#4506 ·
-
area:desktop area:ui bug platform:macos
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
anthropics/claude-code#96687 ·
-
good first issue
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 95/100
AOSSIE-Org/DebateAI#582 · 2 commenti ·