ai-localize-reporting 2.0.1 → 2.0.4
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.
- package/CHANGELOG.md +40 -0
- package/dist/index.d.mts +1 -2
- package/dist/index.d.ts +1 -2
- package/dist/index.js +1967 -143
- package/dist/index.mjs +1967 -143
- package/package.json +23 -3
- package/src/cli-reporter.ts +0 -29
- package/src/html-reporter.ts +0 -336
- package/src/index.ts +0 -3
- package/src/report-builder.ts +0 -35
- package/tsconfig.json +0 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,45 @@
|
|
|
1
1
|
# ai-localize-reporting
|
|
2
2
|
|
|
3
|
+
## 2.0.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
- ai-localize-shared@2.0.3
|
|
9
|
+
- ai-localize-config@2.0.3
|
|
10
|
+
|
|
11
|
+
## 2.0.2
|
|
12
|
+
|
|
13
|
+
### Minor Changes
|
|
14
|
+
|
|
15
|
+
- **Rich CLI reporter** — `printCliSummary()` completely rewritten with structured terminal output:
|
|
16
|
+
- Zero new dependencies; all ANSI codes inlined; respects `NO_COLOR` env var; auto-disables colour for non-TTY pipes
|
|
17
|
+
- Full-width banner with centred title, framework / date / duration meta row
|
|
18
|
+
- 9 stat lines with status dots (green/yellow/red), padded labels, right-aligned values, dim contextual hints
|
|
19
|
+
- Coverage progress bar — 24-block bar, colour-coded (green >=80%, yellow >=50%, red <50%)
|
|
20
|
+
- Top-files bar chart, missing-translations bar chart, namespace distribution, AST context distribution
|
|
21
|
+
- AI Insights summary block (100% deterministic) — duplicate text groups, missing languages, unused keys
|
|
22
|
+
- Overall PASS/ISSUES + COVERAGE N% ANSI badges in footer; context-aware recommended next steps
|
|
23
|
+
- Responsive width — reads process.stdout.columns, caps at 120 chars
|
|
24
|
+
|
|
25
|
+
- **Modern HTML analytics dashboard** — `generateHtmlReport()` completely rewritten:
|
|
26
|
+
- Sticky sidebar navigation with anchor links, active section highlighting, and alert indicators
|
|
27
|
+
- Light/dark theme — system preference detection, localStorage persistence, Cmd+D / Ctrl+D shortcut
|
|
28
|
+
- 9 summary stat cards with top-border colour coding and hover-lift effect
|
|
29
|
+
- Pure SVG donut chart for translation coverage % — no external dependencies
|
|
30
|
+
- Bar charts for keys-by-namespace (top 10) and texts-by-AST-context distribution
|
|
31
|
+
- Interactive tables with search/filter, per-column sorting, sticky headers, CSV + JSON export, pagination (50 rows/page)
|
|
32
|
+
- Accordions with expand/collapse all, severity dot icons, auto-opens when issues detected
|
|
33
|
+
- AI Insights section — duplicate text detection, translation inconsistency bar chart, unused key analysis, namespace cleanup suggestions
|
|
34
|
+
- Language filter chips on Missing Translations table
|
|
35
|
+
- Export panel — per-table CSV/JSON, full report JSON, summary CSV, Print/PDF via browser
|
|
36
|
+
- Responsive sidebar (collapses to top bar on mobile); accessible (ARIA roles, keyboard nav, focus-visible rings)
|
|
37
|
+
|
|
38
|
+
### Patch Changes
|
|
39
|
+
|
|
40
|
+
- Updated dependencies
|
|
41
|
+
- ai-localize-shared@2.0.2
|
|
42
|
+
|
|
3
43
|
## 2.0.1
|
|
4
44
|
|
|
5
45
|
### Patch Changes
|
package/dist/index.d.mts
CHANGED
|
@@ -9,11 +9,10 @@ interface ReportInput {
|
|
|
9
9
|
declare function buildReport(input: ReportInput): Report;
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
|
-
* Generates a comprehensive, self-contained HTML report
|
|
12
|
+
* Generates a comprehensive, self-contained HTML analytics dashboard report.
|
|
13
13
|
*
|
|
14
14
|
* @param report - The report data object built by `buildReport()`
|
|
15
15
|
* @param outputPath - Full path to the output HTML file
|
|
16
|
-
* e.g. `.ai-localize-reports/report.html`
|
|
17
16
|
*/
|
|
18
17
|
declare function generateHtmlReport(report: Report, outputPath: string): void;
|
|
19
18
|
|
package/dist/index.d.ts
CHANGED
|
@@ -9,11 +9,10 @@ interface ReportInput {
|
|
|
9
9
|
declare function buildReport(input: ReportInput): Report;
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
|
-
* Generates a comprehensive, self-contained HTML report
|
|
12
|
+
* Generates a comprehensive, self-contained HTML analytics dashboard report.
|
|
13
13
|
*
|
|
14
14
|
* @param report - The report data object built by `buildReport()`
|
|
15
15
|
* @param outputPath - Full path to the output HTML file
|
|
16
|
-
* e.g. `.ai-localize-reports/report.html`
|
|
17
16
|
*/
|
|
18
17
|
declare function generateHtmlReport(report: Report, outputPath: string): void;
|
|
19
18
|
|