mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-11 11:06:16 -08:00
* fix(i18n): translate hard-coded labels, snackbars and missing keys Catalog screens, snackbars and external player messages showed English in every locale, and seven keys used in code were missing from en.json, so ngx-translate rendered them raw. - Catalog: "All items", item and channel counts, channel sort menus and tooltips, unnamed-category and empty-category labels, LIVE/PAUSED badges and the Xtream global search summary are translated. The Xtream and Stalker stores no longer bake an English name into the every-item sentinel; the facades return a null title and the view translates it. - Snackbars: Xtream/Stalker request failures, the 413 upload error, backup export/import results and the category visibility failure use keys; every "Close" action uses CLOSE. - External player: the main process sends an error code instead of an English sentence (player-error event, session errorCode, and a tag in rejected launch errors); the renderer, dock and VOD primary button translate it. The external player info dialog is translated. - Adds the seven missing keys and 43 new ones, translated in all 18 locales; seven legitimately identical values are baselined. - tools/i18n/check-usage.mjs fails on keys used in code but missing from en.json; it runs in i18n:check (and so in CI through i18n:validate). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(i18n): translate catalog counts in the template and skip inline template comments - The category subtitle hands a key to the translate pipe instead of caching translate.instant(), so a cold start re-renders it once the language file loads. - The Xtream live root count uses the singular/plural item keys, so one result no longer reads "1 channels". - check-usage.mjs strips HTML comments inside inline templates of TypeScript files, so a commented-out key no longer fails the check. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(i18n): check keys in parenthesised translate pipe operands `(expanded() ? 'SHOW_LESS' : 'SHOW_MORE') | translate` yields keys that neither precede the pipe directly nor contain a dot, so the usage check missed them. It now reads the ternary and fallback branches of a parenthesised operand; a literal compared in the condition is not read as a key. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * test(e2e): expect the translated external player failure in the dock A launch failure without an error code now shows the translated generic status in the playback dock, with the raw main-process detail as its tooltip. The ClearKey DASH flow asserted the raw English text. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(playback): keep the IPC error tag out of the stored session detail A tagged launch failure reached ExternalPlayerSession.error unchanged, so the dock tooltip showed "[iptvnator:external-player:start-failed]". The registry now strips the tag when it stores the detail; the rejected IPC error keeps it for the renderer to read the code. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * test(web): expect translated portal request failure toasts #1861's new resolved-failure specs asserted the English toast text; the toasts now go through PORTALS.REQUEST_ERRORS keys, so the specs check the key and its message/status params. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(i18n): read only returned branches of a grouped translate operand A literal at the start of a condition, as in `('ERROR' === status() ? 'CLOSE' : 'CLOSE') | translate`, was taken for a translation key, so a valid template could fail the usage check. A grouped literal now counts only when it ends its operand (end of group, `:`, `||` or `??`). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(i18n): translate the remaining hard-coded labels Follow-up to the UI-26 pass. The remaining English UI literals now come from translation keys, translated in all 18 locales: - Windows/Linux window controls, playlist switcher title and actions menu, the portal status tooltip, dashboard carousel roles and rail scroll buttons, the search placeholder, the card remove tooltip, the EPG offset unit, the REC chip, the Stalker EPG source label and the export file type. - Embedded MPV failures raised in the renderer and the release-notes dialog without a bridge. Settings never showed its English reasons, so they are dropped. - Unnamed Stalker episodes: data access leaves the title empty and the series view labels it after the TMDB overlay. Synthetic season names stay, because they key persisted episode progress. - The phone remote-control page, which follows the first browser language with a translation and sets <html lang>. Removes the dead getStatusMessage(), the unused favorites layout and the translateWithFallback() helpers whose keys now exist. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(remote-control): keep the remote build off shared-interfaces The language resolver imported the Language enum, which made remote-control-web depend on shared-interfaces. Its build-performance chain then hit Nx's recursive-invocation guard through the existing shared-interfaces/shared-logging build loop, failing the Electron E2E and performance journey builds. The resolver now keeps its own list of translation codes, and a spec checks it against the locale files the page loads. Also drops the deleted favorites layout from the zoneless checklist, whose guard spec requires ticked entries to exist. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * perf(journeys): raise the launch DOM mutation baseline for translated attributes Launch now sets 569 DOM mutations before the first dashboard card instead of 557 (identical in all three CI iterations). The extra twelve come from attributes this PR moved from static English to translated bindings on the launch path: the window-control labels and tooltips on Linux, the hero carousel and slide roles, and the rail scroll-button labels. A translated attribute is a binding set after the element is attached, so each costs a mutation. Accepted as a deliberate trade-off; it needs the perf-baseline-increase label. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
450 lines
19 KiB
JSON
450 lines
19 KiB
JSON
{
|
|
"version": 1,
|
|
"reporting": {
|
|
"mergedCoverageDir": "coverage/merged",
|
|
"e2eSummaryDir": "coverage/e2e",
|
|
"unitCodecovFlag": "unit",
|
|
"coverageRatchet": {
|
|
"merged": {
|
|
"statements": 69.54,
|
|
"branches": 59.07,
|
|
"functions": 67.44,
|
|
"lines": 69.85
|
|
},
|
|
"criticalFiles": [
|
|
{
|
|
"path": "apps/electron-backend/src/app/server/http-server.ts",
|
|
"statements": {
|
|
"minimumCovered": 83,
|
|
"minimumPercent": 90.21
|
|
}
|
|
},
|
|
{
|
|
"path": "apps/electron-backend/src/app/events/remote-control.events.ts",
|
|
"statements": {
|
|
"minimumCovered": 112,
|
|
"minimumPercent": 96.55
|
|
}
|
|
},
|
|
{
|
|
"path": "apps/electron-backend/src/app/events/settings.events.ts",
|
|
"statements": {
|
|
"minimumCovered": 26,
|
|
"minimumPercent": 96.29
|
|
}
|
|
},
|
|
{
|
|
"path": "apps/electron-backend/src/app/events/database/downloads.events.ts",
|
|
"statements": {
|
|
"minimumCovered": 79,
|
|
"minimumPercent": 62.69
|
|
}
|
|
},
|
|
{
|
|
"path": "apps/electron-backend/src/app/events/database/download-removal-requests.ts",
|
|
"statements": {
|
|
"minimumCovered": 53,
|
|
"minimumPercent": 91.37
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"unitCoverage": {
|
|
"description": "Tier A projects collect and trend source coverage. Tier B projects are validated without percentage coverage. Tier C projects are excluded from the source coverage baseline.",
|
|
"tierA": [
|
|
{
|
|
"name": "web",
|
|
"root": "apps/web",
|
|
"sourceRoot": "apps/web/src",
|
|
"jestRootMode": "project",
|
|
"validationCommand": "pnpm nx test web",
|
|
"e2eTags": ["@web", "@m3u", "@pwa", "@settings"]
|
|
},
|
|
{
|
|
"name": "electron-backend",
|
|
"root": "apps/electron-backend",
|
|
"sourceRoot": "apps/electron-backend/src",
|
|
"validationCommand": "pnpm nx test electron-backend",
|
|
"e2eTags": ["@electron", "@critical", "@persistence"]
|
|
},
|
|
{
|
|
"name": "web-backend",
|
|
"root": "apps/web-backend",
|
|
"sourceRoot": "apps/web-backend/src",
|
|
"validationCommand": "pnpm nx test web-backend",
|
|
"e2eTags": ["@self-hosted", "@web"]
|
|
},
|
|
{
|
|
"name": "services",
|
|
"root": "libs/services",
|
|
"sourceRoot": "libs/services/src",
|
|
"validationCommand": "pnpm nx test services",
|
|
"e2eTags": ["@m3u", "@persistence", "@settings"]
|
|
},
|
|
{
|
|
"name": "epg-data-access",
|
|
"root": "libs/epg/data-access",
|
|
"sourceRoot": "libs/epg/data-access/src",
|
|
"validationCommand": "pnpm nx test epg-data-access",
|
|
"e2eTags": ["@epg"]
|
|
},
|
|
{
|
|
"name": "playback-data-access",
|
|
"root": "libs/playback/data-access",
|
|
"sourceRoot": "libs/playback/data-access/src",
|
|
"validationCommand": "pnpm nx test playback-data-access",
|
|
"e2eTags": ["@persistence"]
|
|
},
|
|
{
|
|
"name": "m3u-state",
|
|
"root": "libs/m3u-state",
|
|
"sourceRoot": "libs/m3u-state/src",
|
|
"validationCommand": "pnpm nx test m3u-state",
|
|
"e2eTags": ["@m3u", "@persistence"]
|
|
},
|
|
{
|
|
"name": "playback-util",
|
|
"root": "libs/playback/util",
|
|
"sourceRoot": "libs/playback/util/src",
|
|
"validationCommand": "pnpm nx test playback-util",
|
|
"e2eTags": ["@playback", "@m3u", "@xtream", "@stalker"]
|
|
},
|
|
{
|
|
"name": "playlist-import-feature",
|
|
"root": "libs/playlist/import/feature",
|
|
"sourceRoot": "libs/playlist/import/feature/src",
|
|
"validationCommand": "pnpm nx test playlist-import-feature",
|
|
"e2eTags": ["@m3u", "@file-import"]
|
|
},
|
|
{
|
|
"name": "playlist-m3u-feature-player",
|
|
"root": "libs/playlist/m3u/feature-player",
|
|
"sourceRoot": "libs/playlist/m3u/feature-player/src",
|
|
"validationCommand": "pnpm nx test playlist-m3u-feature-player",
|
|
"e2eTags": ["@m3u", "@playback"]
|
|
},
|
|
{
|
|
"name": "playlist-shared-ui",
|
|
"root": "libs/playlist/shared/ui",
|
|
"sourceRoot": "libs/playlist/shared/ui/src",
|
|
"validationCommand": "pnpm nx test playlist-shared-ui",
|
|
"e2eTags": ["@m3u"]
|
|
},
|
|
{
|
|
"name": "playlist-shared-util",
|
|
"root": "libs/playlist/shared/util",
|
|
"sourceRoot": "libs/playlist/shared/util/src",
|
|
"validationCommand": "pnpm nx test playlist-shared-util",
|
|
"e2eTags": ["@m3u"]
|
|
},
|
|
{
|
|
"name": "portal-catalog-feature",
|
|
"root": "libs/portal/catalog/feature",
|
|
"sourceRoot": "libs/portal/catalog/feature/src",
|
|
"validationCommand": "pnpm nx test portal-catalog-feature",
|
|
"e2eTags": ["@xtream", "@stalker"]
|
|
},
|
|
{
|
|
"name": "portal-downloads-feature",
|
|
"root": "libs/portal/downloads/feature",
|
|
"sourceRoot": "libs/portal/downloads/feature/src",
|
|
"validationCommand": "pnpm nx test portal-downloads-feature",
|
|
"e2eTags": ["@downloads", "@electron", "@persistence"]
|
|
},
|
|
{
|
|
"name": "portal-shared-data-access",
|
|
"root": "libs/portal/shared/data-access",
|
|
"sourceRoot": "libs/portal/shared/data-access/src",
|
|
"validationCommand": "pnpm nx test portal-shared-data-access",
|
|
"e2eTags": ["@xtream", "@stalker", "@persistence"]
|
|
},
|
|
{
|
|
"name": "portal-shared-ui",
|
|
"root": "libs/portal/shared/ui",
|
|
"sourceRoot": "libs/portal/shared/ui/src",
|
|
"validationCommand": "pnpm nx test portal-shared-ui",
|
|
"e2eTags": ["@xtream", "@stalker"]
|
|
},
|
|
{
|
|
"name": "portal-shared-util",
|
|
"root": "libs/portal/shared/util",
|
|
"sourceRoot": "libs/portal/shared/util/src",
|
|
"validationCommand": "pnpm nx test portal-shared-util",
|
|
"e2eTags": ["@xtream", "@stalker"]
|
|
},
|
|
{
|
|
"name": "portal-stalker-data-access",
|
|
"root": "libs/portal/stalker/data-access",
|
|
"sourceRoot": "libs/portal/stalker/data-access/src",
|
|
"validationCommand": "pnpm nx test portal-stalker-data-access",
|
|
"e2eTags": ["@stalker"]
|
|
},
|
|
{
|
|
"name": "portal-stalker-feature",
|
|
"root": "libs/portal/stalker/feature",
|
|
"sourceRoot": "libs/portal/stalker/feature/src",
|
|
"validationCommand": "pnpm nx test portal-stalker-feature",
|
|
"e2eTags": ["@stalker"]
|
|
},
|
|
{
|
|
"name": "portal-xtream-data-access",
|
|
"root": "libs/portal/xtream/data-access",
|
|
"sourceRoot": "libs/portal/xtream/data-access/src",
|
|
"validationCommand": "pnpm nx test portal-xtream-data-access",
|
|
"e2eTags": ["@xtream"]
|
|
},
|
|
{
|
|
"name": "portal-xtream-feature",
|
|
"root": "libs/portal/xtream/feature",
|
|
"sourceRoot": "libs/portal/xtream/feature/src",
|
|
"validationCommand": "pnpm nx test portal-xtream-feature",
|
|
"e2eTags": ["@xtream"]
|
|
},
|
|
{
|
|
"name": "database",
|
|
"root": "libs/shared/database",
|
|
"sourceRoot": "libs/shared/database/src",
|
|
"validationCommand": "pnpm nx test database",
|
|
"e2eTags": ["@electron", "@persistence"]
|
|
},
|
|
{
|
|
"name": "shared-interfaces",
|
|
"root": "libs/shared/interfaces",
|
|
"sourceRoot": "libs/shared/interfaces/src",
|
|
"validationCommand": "pnpm nx test shared-interfaces",
|
|
"e2eTags": ["@m3u", "@xtream", "@stalker"]
|
|
},
|
|
{
|
|
"name": "shared-logging",
|
|
"root": "libs/shared/logging",
|
|
"sourceRoot": "libs/shared/logging/src",
|
|
"validationCommand": "pnpm nx test shared-logging",
|
|
"e2eTags": ["@electron", "@xtream", "@stalker", "@settings"]
|
|
},
|
|
{
|
|
"name": "shared-host-health",
|
|
"root": "libs/shared/host-health",
|
|
"sourceRoot": "libs/shared/host-health/src",
|
|
"validationCommand": "pnpm nx test shared-host-health",
|
|
"e2eTags": ["@xtream", "@stalker"]
|
|
},
|
|
{
|
|
"name": "m3u-utils",
|
|
"root": "libs/shared/m3u-utils",
|
|
"sourceRoot": "libs/shared/m3u-utils/src",
|
|
"validationCommand": "pnpm nx test m3u-utils",
|
|
"e2eTags": ["@m3u"]
|
|
},
|
|
{
|
|
"name": "components",
|
|
"root": "libs/ui/components",
|
|
"sourceRoot": "libs/ui/components/src",
|
|
"validationCommand": "pnpm nx test components",
|
|
"e2eTags": ["@m3u", "@search", "@persistence"]
|
|
},
|
|
{
|
|
"name": "ui-epg",
|
|
"root": "libs/ui/epg",
|
|
"sourceRoot": "libs/ui/epg/src",
|
|
"validationCommand": "pnpm nx test ui-epg",
|
|
"e2eTags": ["@epg"]
|
|
},
|
|
{
|
|
"name": "@iptvnator/pipes",
|
|
"root": "libs/ui/pipes",
|
|
"sourceRoot": "libs/ui/pipes/src",
|
|
"validationCommand": "pnpm nx test @iptvnator/pipes",
|
|
"e2eTags": ["@epg", "@settings"]
|
|
},
|
|
{
|
|
"name": "ui-playback",
|
|
"root": "libs/ui/playback",
|
|
"sourceRoot": "libs/ui/playback/src",
|
|
"validationCommand": "pnpm nx test ui-playback",
|
|
"e2eTags": ["@playback", "@m3u"]
|
|
},
|
|
{
|
|
"name": "workspace-dashboard-data-access",
|
|
"root": "libs/workspace/dashboard/data-access",
|
|
"sourceRoot": "libs/workspace/dashboard/data-access/src",
|
|
"validationCommand": "pnpm nx test workspace-dashboard-data-access",
|
|
"e2eTags": ["@dashboard", "@persistence"]
|
|
},
|
|
{
|
|
"name": "workspace-dashboard-feature",
|
|
"root": "libs/workspace/dashboard/feature",
|
|
"sourceRoot": "libs/workspace/dashboard/feature/src",
|
|
"validationCommand": "pnpm nx test workspace-dashboard-feature",
|
|
"e2eTags": ["@dashboard", "@persistence"]
|
|
},
|
|
{
|
|
"name": "workspace-shell-feature",
|
|
"root": "libs/workspace/shell/feature",
|
|
"sourceRoot": "libs/workspace/shell/feature/src",
|
|
"validationCommand": "pnpm nx test workspace-shell-feature",
|
|
"e2eTags": ["@search", "@settings", "@persistence"]
|
|
},
|
|
{
|
|
"name": "workspace-shell-util",
|
|
"root": "libs/workspace/shell/util",
|
|
"sourceRoot": "libs/workspace/shell/util/src",
|
|
"validationCommand": "pnpm nx test workspace-shell-util",
|
|
"e2eTags": ["@search", "@settings"]
|
|
}
|
|
],
|
|
"tierB": [
|
|
{
|
|
"name": "website",
|
|
"root": "apps/website",
|
|
"validationCommand": "pnpm nx test website",
|
|
"reason": "Astro marketing site; build output and targeted static checks are more meaningful than source percentage coverage."
|
|
},
|
|
{
|
|
"name": "packaging",
|
|
"root": "tools/packaging",
|
|
"validationCommand": "pnpm nx test packaging",
|
|
"reason": "Node package identity checks validate generated packaging metadata."
|
|
},
|
|
{
|
|
"name": "release-tools",
|
|
"root": "tools/release",
|
|
"validationCommand": "pnpm nx test release-tools",
|
|
"reason": "Node tests validate release-note parsing, rendering and gate policy; the scripts are release tooling, not shipped source."
|
|
},
|
|
{
|
|
"name": "repository-skills",
|
|
"root": "tools/skills",
|
|
"validationCommand": "pnpm nx test repository-skills",
|
|
"reason": "Node tests validate committed repository-skill metadata and documented paths; the validator is agent tooling, not shipped source."
|
|
},
|
|
{
|
|
"name": "eslint-tools",
|
|
"root": "tools/eslint",
|
|
"validationCommand": "pnpm nx test eslint-tools",
|
|
"reason": "Node tests assert the committed max-lines baseline still matches what the generator produces; the scripts are lint tooling, not shipped source, and percentage coverage over a generated list would not mean anything."
|
|
},
|
|
{
|
|
"name": "performance-tools",
|
|
"root": "tools/performance",
|
|
"validationCommand": "pnpm nx test performance-tools",
|
|
"reason": "Node tests validate the initial-bytes measurement over synthetic build output; the scripts are performance tooling, not shipped source."
|
|
},
|
|
{
|
|
"name": "shared-marketing-fixtures",
|
|
"root": "libs/shared/marketing-fixtures",
|
|
"validationCommand": "pnpm nx test shared-marketing-fixtures",
|
|
"reason": "Screenshot-safe fictional poster catalog shared by both mock servers; the spec asserts catalog order and shape, and percentage coverage over fixture data would not mean anything."
|
|
},
|
|
{
|
|
"name": "remote-control-web",
|
|
"root": "apps/remote-control-web",
|
|
"validationCommand": "pnpm nx build remote-control-web",
|
|
"reason": "Product surface without unit specs today; validate build output and add focused tests when behavior changes."
|
|
},
|
|
{
|
|
"name": "web-e2e",
|
|
"root": "apps/web-e2e",
|
|
"validationCommand": "pnpm nx run web-e2e:e2e -- --project=chromium",
|
|
"reason": "Playwright semantic flow coverage is reported separately."
|
|
},
|
|
{
|
|
"name": "electron-backend-e2e",
|
|
"root": "apps/electron-backend-e2e",
|
|
"validationCommand": "pnpm nx run electron-backend-e2e:e2e",
|
|
"reason": "Playwright semantic flow coverage is reported separately."
|
|
}
|
|
],
|
|
"tierC": [
|
|
{
|
|
"name": "xtream-mock-server",
|
|
"root": "apps/xtream-mock-server",
|
|
"reason": "Validated through Playwright API and user-flow tests unless mock behavior changes directly."
|
|
},
|
|
{
|
|
"name": "stalker-mock-server",
|
|
"root": "apps/stalker-mock-server",
|
|
"reason": "Validated through Playwright API and user-flow tests unless mock behavior changes directly."
|
|
},
|
|
{
|
|
"name": "shared-testing",
|
|
"root": "libs/shared/testing",
|
|
"reason": "Test helper library."
|
|
},
|
|
{
|
|
"name": "remote-control",
|
|
"root": "libs/ui/remote-control",
|
|
"reason": "Small phone UI: focused specs cover its labels and language choice; validate the rest through remote-control flows."
|
|
},
|
|
{
|
|
"name": "shared-portals",
|
|
"root": "libs/ui/shared-portals",
|
|
"reason": "Type-only library after the dead epg-view/live-epg-panel components were removed; only the LiveEpgPanelSummary interface remains, so there is no runtime code to unit test."
|
|
}
|
|
]
|
|
},
|
|
"e2eSemanticCoverage": {
|
|
"trackedTags": [
|
|
"@critical",
|
|
"@electron",
|
|
"@web",
|
|
"@xtream",
|
|
"@stalker",
|
|
"@m3u",
|
|
"@search",
|
|
"@epg",
|
|
"@persistence",
|
|
"@settings",
|
|
"@pwa",
|
|
"@self-hosted"
|
|
],
|
|
"criticalJourneys": [
|
|
{
|
|
"name": "Electron app starts and renders workspace",
|
|
"projects": ["electron-backend-e2e"],
|
|
"matchAnyTags": ["@critical"]
|
|
},
|
|
{
|
|
"name": "Xtream portal import, browse, and cached access",
|
|
"projects": ["web-e2e", "electron-backend-e2e"],
|
|
"matchAnyTags": ["@xtream"]
|
|
},
|
|
{
|
|
"name": "Stalker portal import and browse",
|
|
"projects": ["web-e2e", "electron-backend-e2e"],
|
|
"matchAnyTags": ["@stalker"]
|
|
},
|
|
{
|
|
"name": "M3U import, playback, and playlist state",
|
|
"projects": ["web-e2e", "electron-backend-e2e"],
|
|
"matchAnyTags": ["@m3u"]
|
|
},
|
|
{
|
|
"name": "Workspace search across providers",
|
|
"projects": ["electron-backend-e2e"],
|
|
"matchAnyTags": ["@search"]
|
|
},
|
|
{
|
|
"name": "EPG rendering and source management",
|
|
"projects": ["electron-backend-e2e"],
|
|
"matchAnyTags": ["@epg"]
|
|
},
|
|
{
|
|
"name": "Favorites, recent items, and restart persistence",
|
|
"projects": ["electron-backend-e2e"],
|
|
"matchAnyTags": ["@persistence"]
|
|
},
|
|
{
|
|
"name": "Settings persistence and playback options",
|
|
"projects": ["web-e2e", "electron-backend-e2e"],
|
|
"matchAnyTags": ["@settings"]
|
|
},
|
|
{
|
|
"name": "Self-hosted PWA/backend integration",
|
|
"projects": ["web-e2e"],
|
|
"matchAnyTags": ["@self-hosted", "@pwa"]
|
|
}
|
|
]
|
|
}
|
|
}
|