trdr-ds-install 1.9.0 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/package.json +1 -1
  2. package/plugins/trdr-design-system/skills/trdr-ds/SKILL.md +168 -2914
  3. package/plugins/trdr-design-system/skills/trdr-ds/data/components/abas.json +36 -0
  4. package/plugins/trdr-design-system/skills/trdr-ds/data/components/badge.json +139 -0
  5. package/plugins/trdr-design-system/skills/trdr-ds/data/components/boleta.json +121 -0
  6. package/plugins/trdr-design-system/skills/trdr-ds/data/components/button.json +166 -0
  7. package/plugins/trdr-design-system/skills/trdr-ds/data/components/card.json +55 -0
  8. package/plugins/trdr-design-system/skills/trdr-ds/data/components/checkbox.json +82 -0
  9. package/plugins/trdr-design-system/skills/trdr-ds/data/components/combo-input.json +79 -0
  10. package/plugins/trdr-design-system/skills/trdr-ds/data/components/copy-button.json +88 -0
  11. package/plugins/trdr-design-system/skills/trdr-ds/data/components/dropdown.json +94 -0
  12. package/plugins/trdr-design-system/skills/trdr-ds/data/components/floating-menu.json +151 -0
  13. package/plugins/trdr-design-system/skills/trdr-ds/data/components/header.json +141 -0
  14. package/plugins/trdr-design-system/skills/trdr-ds/data/components/janela.json +245 -0
  15. package/plugins/trdr-design-system/skills/trdr-ds/data/components/news-card.json +124 -0
  16. package/plugins/trdr-design-system/skills/trdr-ds/data/components/radio-button.json +97 -0
  17. package/plugins/trdr-design-system/skills/trdr-ds/data/components/search-input.json +69 -0
  18. package/plugins/trdr-design-system/skills/trdr-ds/data/components/segmented-control.json +60 -0
  19. package/plugins/trdr-design-system/skills/trdr-ds/data/components/sidebar.json +109 -0
  20. package/plugins/trdr-design-system/skills/trdr-ds/data/components/stat-card.json +90 -0
  21. package/plugins/trdr-design-system/skills/trdr-ds/data/components/sub-menu-item.json +45 -0
  22. package/plugins/trdr-design-system/skills/trdr-ds/data/components/switch.json +89 -0
  23. package/plugins/trdr-design-system/skills/trdr-ds/data/components/tabela-cotacoes.json +91 -0
  24. package/plugins/trdr-design-system/skills/trdr-ds/data/components/tabela-ordens.json +81 -0
  25. package/plugins/trdr-design-system/skills/trdr-ds/data/components/table.json +119 -0
  26. package/plugins/trdr-design-system/skills/trdr-ds/data/components/text-input.json +159 -0
  27. package/plugins/trdr-design-system/skills/trdr-ds/data/components/tooltip.json +88 -0
  28. package/plugins/trdr-design-system/skills/trdr-ds/data/index.json +262 -0
  29. package/plugins/trdr-design-system/skills/trdr-ds/data/mappings.json +183 -0
  30. package/plugins/trdr-design-system/skills/trdr-ds/modes/report.md +139 -0
  31. package/plugins/trdr-design-system/skills/trdr-ds/modes/resume.md +46 -0
  32. package/plugins/trdr-design-system/skills/trdr-ds/modes/rollback.md +55 -0
  33. package/plugins/trdr-design-system/skills/trdr-ds/modes/status.md +37 -0
  34. package/plugins/trdr-design-system/skills/trdr-ds/modes/sync.md +48 -0
  35. package/plugins/trdr-design-system/skills/trdr-ds/phases/analyze.md +305 -0
  36. package/plugins/trdr-design-system/skills/trdr-ds/phases/components.md +204 -0
  37. package/plugins/trdr-design-system/skills/trdr-ds/phases/final.md +209 -0
  38. package/plugins/trdr-design-system/skills/trdr-ds/phases/foundation.md +195 -0
  39. package/plugins/trdr-design-system/skills/trdr-ds/phases/violations.md +183 -0
  40. package/plugins/trdr-design-system/skills/trdr-ds/templates/claude-md.md +88 -0
  41. package/plugins/trdr-design-system/skills/trdr-ds/templates/ds-analysis.md +88 -0
  42. package/plugins/trdr-design-system/skills/trdr-ds/templates/ds-migration.md +59 -0
  43. package/plugins/trdr-design-system/skills/trdr-ds/templates/ds-progress.md +57 -0
  44. package/plugins/trdr-design-system/skills/trdr-ds/templates/sprint-plan.md +68 -0
@@ -0,0 +1,88 @@
1
+ # Template: DS_ANALYSIS.md
2
+
3
+ > Write this file at the project root after Phase 1 analysis.
4
+ > Replace all `[bracketed]` values with actual data from the analysis.
5
+
6
+ ```markdown
7
+ # TRDR DS — Analysis
8
+ Generated: [ISO datetime]
9
+ Skill version: [X.Y.Z]
10
+
11
+ ## Project
12
+ Framework: [next.js|react|vue|html]
13
+ Language: [ts|js]
14
+ Styling: [css-modules|tailwind|plain-css|css-in-js|mui]
15
+ Global CSS file: [path]
16
+ Styles dir: [detected-styles-dir]
17
+ [If stylingMode === 'mui':]
18
+ MUI version: [muiVersion]
19
+ Theme file: [themeFilePath]
20
+ Has ThemeProvider: [yes/no]
21
+ MUI CSS Variables mode: [yes/no]
22
+ Files with sx props: [count]
23
+ Files with styled(Mui*): [count]
24
+
25
+ ## Violations Summary
26
+ Total violations: [total_violations]
27
+ Total files with violations: [total_files_with_violations]
28
+
29
+ ### By Category
30
+ | Cat | Type | Count | Files |
31
+ |-----|------|-------|-------|
32
+ | A | Hardcoded colors | N | file1.css, file2.jsx |
33
+ | B | Hardcoded font-family | N | ... |
34
+ | C | Hardcoded px spacing | N | ... |
35
+ | D | Primitive token use | N | ... |
36
+ | E | Missing tokens.css | N | ... |
37
+ | F | Hardcoded rgba | N | ... |
38
+ | G | Custom gradients | N | ... |
39
+ | H | Hardcoded font-size | N | ... |
40
+ | I | Inline styles | N | ... |
41
+ | J | SVG icons inline | N | ... |
42
+ | K | Logo incorrect/missing | N | ... |
43
+ [If MUI:]
44
+ | L | MUI theme hardcoded | N | theme.ts |
45
+ | M | MUI sx hardcoded | N | ... |
46
+ | N | styled(Mui*) hardcoded | N | ... |
47
+
48
+ ### By File
49
+ [For each file with violations:]
50
+ #### [file path]
51
+ - A: [value] (line [N]), [value] (line [N])
52
+ - C: [value] (line [N])
53
+ [list all violations with line numbers]
54
+
55
+ ## Component Replacement Candidates
56
+
57
+ ### Simple swaps
58
+ | Component | DS Variant | File | Existing Content |
59
+ |-----------|-----------|------|------------------|
60
+
61
+ ### Complex-preservable
62
+ | Component | File | Handlers/Props Preserved |
63
+ |-----------|------|--------------------------|
64
+
65
+ ### Manual review required
66
+ | Component | File | Reason |
67
+ |-----------|------|--------|
68
+
69
+ ### Stubs (not yet implemented)
70
+ [For each stub:]
71
+ - [slug]: [file:line] — stub (figmaId: [id])
72
+
73
+ ### Dependency Graph
74
+ | Compound Component | Dependencies (install first) |
75
+ |--------------------|----------------------------|
76
+
77
+ ## Logo Audit
78
+ [For each file:] - [path] — [CORRECT/WRONG/UNKNOWN]
79
+
80
+ ## Execution Plan
81
+ Batch size: [N] (default 5)
82
+ [Group files by folder, max batch_size per batch:]
83
+ ### Batch 1 — [folder/] ([N] files)
84
+ - [file1]
85
+ - [file2]
86
+ ### Batch 2 — [folder/] ([N] files)
87
+ - ...
88
+ ```
@@ -0,0 +1,59 @@
1
+ # Template: DS_MIGRATION.md
2
+
3
+ > Generate at project root during Sub-fase D (Step 7).
4
+ > Replace all `[bracketed]` values.
5
+
6
+ ```markdown
7
+ # TRDR Design System — Migration Log
8
+ Applied: [date]
9
+ Catalog: TRDR DS v[catalog-version] ([implemented]/[total] components, generated [generatedAt])
10
+ Hub: https://trdr.mrocontent.com.br
11
+
12
+ ## What was applied
13
+ - [path]/tokens.css — TRDR CSS custom properties (snapshot v[version])
14
+ - [path]/components.css — [implemented] component utility class blocks + typography
15
+ - CLAUDE.md — design system rules for Claude Code
16
+ - [N] violations fixed in [M] files
17
+ - [global-css] updated with @import
18
+ - [S] stub components flagged in MISSING_COMPONENTS.md (if any)
19
+ - Migrated in [N] batches across 4 sub-phases — see DS_PROGRESS.md
20
+
21
+ ## Files modified
22
+ [List each file and what changed]
23
+
24
+ ## Violations fixed
25
+ [List by category with file:line references]
26
+
27
+ ## Manual steps required
28
+ - [ ] **Fonts**: Ensure JetBrains Mono, Inter, and Roboto Mono are loaded
29
+ - Next.js: use next/font/google in layout.tsx
30
+ - Others: add Google Fonts <link> in HTML head
31
+ - [ ] **Dark/light mode**: tokens.css uses [data-theme="light"] for overrides — add data-theme="light" to <html> to activate light mode
32
+ - [ ] **Trading UI**: If this project has price/position displays, verify context.trading.* tokens
33
+ - [ ] **Stubs**: Review MISSING_COMPONENTS.md
34
+ - [ ] **Skipped files**: [list any excluded files]
35
+
36
+ [If MUI, add:]
37
+ - [ ] **MUI CSS Variables mode**: If MUI >= 6, add cssVariables: true to createTheme()
38
+ - [ ] **MUI palette auto-generation**: Verify primary.light/dark/contrastText are all explicit
39
+ - [ ] **MUI theme composition**: If using deepmerge, verify DS tokens preserved
40
+ - [ ] **MUI component slots**: Complex components (DataGrid, DatePicker) have slots not covered by styleOverrides
41
+ - [ ] **sx props audit**: grep for sx={{.*#[0-9A-Fa-f] to verify no hardcoded hex remains
42
+
43
+ ## Missing DS tokens (flagged)
44
+ | Pattern | File | Suggestion |
45
+ |---------|------|-----------|
46
+
47
+ ## Stub components encountered
48
+ [List each stub slug + figmaId]
49
+
50
+ ## Manual component review
51
+ [Entries added during Sub-fase C Pass 3]
52
+
53
+ ## Design System Reference
54
+ - Hub: https://trdr.mrocontent.com.br
55
+ - JSON catalog: https://trdr.mrocontent.com.br/components.json
56
+ - Tokens: https://trdr.mrocontent.com.br/tokens/semanticos
57
+ - Components: https://trdr.mrocontent.com.br/componentes
58
+ - Rules: https://trdr.mrocontent.com.br/para-ia
59
+ ```
@@ -0,0 +1,57 @@
1
+ # Template: DS_PROGRESS.md
2
+
3
+ > Write at project root when Phase 2 starts (Step 0).
4
+ > Replace all `[bracketed]` values. This file is the canonical state.
5
+
6
+ ```markdown
7
+ # TRDR DS Migration — Progress
8
+ Started: [ISO datetime]
9
+ Project: [project name from package.json]
10
+ Batch size: [N]
11
+ Status: IN_PROGRESS
12
+ Backup branch: [branch-name or NONE]
13
+ Original branch: [branch-name]
14
+ Sprint plan: SPRINT_PLAN.md
15
+ Current sprint: 1
16
+
17
+ ## Sub-fase A: Foundation — PENDING
18
+ - [ ] tokens.css
19
+ - [ ] components.css
20
+ - [ ] CLAUDE.md
21
+ - [ ] @import no CSS global
22
+
23
+ ## Sub-fase B: Violations — PENDING
24
+ Total de arquivos com violacoes: [total_files_with_violations]
25
+ Total de violacoes: [total_violations]
26
+ Total de lotes: [N]
27
+
28
+ [For each batch:]
29
+ ### Lote 1 — [folder/] ([N] arquivos) — PENDING
30
+ ### Lote 2 — [folder/] ([N] arquivos) — PENDING
31
+ ...
32
+
33
+ ## Sub-fase C: Components — PENDING
34
+ Install order: [topological — atomics first, then compounds]
35
+ [list candidates]
36
+
37
+ ## Sub-fase D: Final — PENDING
38
+ - [ ] logos incorretos substituidos
39
+ - [ ] DS_MIGRATION.md gerado
40
+
41
+ ## Padroes Sem Token (revisao manual)
42
+ [empty — filled during execution]
43
+
44
+ ## Execution Log
45
+ [Each action appends a row here:]
46
+ | Timestamp | Phase | Action | File | Details |
47
+ |-----------|-------|--------|------|---------|
48
+ ```
49
+
50
+ ## Execution Log Rules
51
+
52
+ After EVERY file creation or modification, append a row:
53
+ ```
54
+ | [ISO datetime] | [sub-phase] | [CREATE/MODIFY/SKIP/FAIL] | [file path] | [details] |
55
+ ```
56
+
57
+ This log is cumulative — never clear it.
@@ -0,0 +1,68 @@
1
+ # Template: SPRINT_PLAN.md
2
+
3
+ > Write at project root after DS_ANALYSIS.md (Step 5.6).
4
+ > Replace all `[bracketed]` values.
5
+
6
+ ```markdown
7
+ # TRDR DS — Sprint Plan
8
+ Generated: [ISO datetime]
9
+ Project: [project name]
10
+ Total sprints: [N]
11
+ Estimated context windows: [N] (one per sprint + one for analysis)
12
+
13
+ > Cada sprint e independente. Entre sprints, limpe o contexto (/clear) ou inicie nova conversa.
14
+ > Para continuar: /trdr-ds resume
15
+
16
+ ---
17
+
18
+ ## Sprint 1 — Foundation
19
+ **Scope:** Create tokens.css, components.css, CLAUDE.md, @import in global CSS
20
+ [If MUI: + generate/update MUI theme with DS token references]
21
+ **Sub-fase:** A
22
+ **Files to create:** 3 (tokens.css, components.css, CLAUDE.md)
23
+ **Files to modify:** [1 or 2]
24
+ **Status:** PENDING
25
+
26
+ ---
27
+
28
+ ## Sprint 2 — Violations: [first-folder/]
29
+ **Scope:** Fix [N] violations in [M] files
30
+ **Sub-fase:** B
31
+ **Files:** [list each file path]
32
+ **Violation count:** [N] (A:[n], B:[n], C:[n], ...)
33
+ **Status:** PENDING
34
+
35
+ ---
36
+
37
+ [... repeat for each folder/batch ...]
38
+
39
+ ---
40
+
41
+ ## Sprint [N-1] — Components
42
+ **Scope:** Implement DS components ([S] simple, [P] complex-preservable, [M] manual review)
43
+ [If MUI: Generate MUI theme component styleOverrides, migrate sx prop violations]
44
+ **Candidates:** [total]
45
+ **Sub-fase:** C
46
+ **Install order:** [topological]
47
+ **Status:** PENDING
48
+
49
+ ---
50
+
51
+ ## Sprint [N] — Final
52
+ **Scope:** Replace logos, replace SVG icons (size-preserved), generate DS_MIGRATION.md
53
+ **Sub-fase:** D
54
+ **Status:** PENDING
55
+ ```
56
+
57
+ ## Sprint Naming Convention
58
+ - Foundation: `Sprint 1 — Foundation`
59
+ - Violations: `Sprint N — Violations: [folder/]`
60
+ - Split folder: `Sprint Na — Violations: [folder/] (part 1 of 2)`
61
+ - Components: `Sprint N — Components`
62
+ - Final: `Sprint N — Final`
63
+
64
+ ## Sprint Sizing Rules
65
+ - Max **15 files** per sprint
66
+ - Group by **folder** (natural boundary)
67
+ - If folder >15 files: split into sub-sprints
68
+ - Foundation, Components, Final: each their own sprint