Skip to content

chore(deps): bump shadcn from 3.8.4 to 4.13.1 in /frontend - #39

Closed
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/frontend/shadcn-4.13.0
Closed

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/frontend/shadcn-4.13.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Jul 7, 2026 •

Copy link
Copy Markdown
Contributor

Bumps shadcn from 3.8.4 to 4.13.1.

Release notes

Sourced from shadcn's releases.

[email protected]

Patch Changes

[email protected]

Minor Changes

[email protected]

Minor Changes

[email protected]

Patch Changes

[email protected]

Minor Changes

Patch Changes

[email protected]

Minor Changes

[email protected]

Minor Changes

[email protected]

Patch Changes

... (truncated)

Changelog

Sourced from shadcn's changelog.

4.13.1

Patch Changes

4.13.0

Minor Changes

4.12.0

Minor Changes

4.11.1

Patch Changes

4.11.0

Minor Changes

Patch Changes

4.10.0

Minor Changes

4.9.0

... (truncated)

Commits

@dependabot @github

dependabot Bot commented on behalf of github Jul 7, 2026

Copy link
Copy Markdown
Contributor Author

Labels

The following labels could not be found: dependencies. Please create it before Dependabot can add it to a pull request.

Please fix the above issues or remove invalid values from dependabot.yml.

@dependabot
dependabot Bot requested a review from itsbkm as a code owner July 7, 2026 00:04
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/frontend/shadcn-4.13.0 branch 3 times, most recently from 57eb6ea to 36893d4 Compare July 10, 2026 18:38
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/frontend/shadcn-4.13.0 branch 2 times, most recently from 2ba19f8 to 8937b49 Compare July 15, 2026 14:41
@dependabot dependabot Bot changed the title chore(deps): bump shadcn from 3.8.4 to 4.13.0 in /frontend chore(deps): bump shadcn from 3.8.4 to 4.13.1 in /frontend Jul 20, 2026
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/frontend/shadcn-4.13.0 branch from 8937b49 to 73d11ec Compare July 20, 2026 17:44
@dependabot @github

dependabot Bot commented on behalf of github Jul 21, 2026

Copy link
Copy Markdown
Contributor Author

Looks like shadcn is up-to-date now, so this is no longer needed.

@dependabot dependabot Bot closed this Jul 21, 2026
@dependabot
dependabot Bot deleted the dependabot/npm_and_yarn/frontend/shadcn-4.13.0 branch July 21, 2026 13:37
khaira777 added a commit that referenced this pull request Oct 28, 2026
…ests/daily-sales-export.test.ts` and `tests/reports-export.test.ts` by unescaping `&` last (after `<`, `>`, `"`, and `'`) in `extractHtmlSummaryMap` and `parseHtmlSummaryMetrics`. Verified with `npx tsx tests/reports-export.test.ts`, `npx tsx tests/daily-sales-export.test.ts`, `npm run lint`, `npm run build`, and `git diff --check`
khaira777 added a commit that referenced this pull request Oct 28, 2026
…ests/daily-sales-export.test.ts` and `tests/reports-export.test.ts` by unescaping `&` last (after `<`, `>`, `"`, and `'`) in `extractHtmlSummaryMap` and `parseHtmlSummaryMetrics`. Verified with `npx tsx tests/reports-export.test.ts`, `npx tsx tests/daily-sales-export.test.ts`, `npm run lint`, `npm run build`, and `git diff --check`
khaira777 added a commit that referenced this pull request Oct 28, 2026
* feat(reports): PDF export for X, Z, daily sales

* no-mistakes(document): Update report HTML export docs and fix lint warning

* no-mistakes(ci): Fixed the 3 CodeQL `js/double-escaping` alerts in `tests/daily-sales-export.test.ts` and `tests/reports-export.test.ts` by unescaping `&` last (after `<`, `>`, `"`, and `'`) in `extractHtmlSummaryMap` and `parseHtmlSummaryMetrics`. Verified with `npx tsx tests/reports-export.test.ts`, `npx tsx tests/daily-sales-export.test.ts`, `npm run lint`, `npm run build`, and `git diff --check`

* fix(reports): address PR #1393 review feedback

* no-mistakes(review): Update printer IPC test for preferCSSPageSize PDF option

* no-mistakes(document): Update daily sales HTML export docs and doc comment

* test(reports): verify native Electron printToPDF and remove HTML row truncation

* no-mistakes(document): Update daily sales PDF export docs and test comments

* no-mistakes(ci): Diagnosed and fixed the `Core Test Suite (Shard 1/4)` failure (`ci-1`, `github-check-run:123131589299`) in `npm run test:reports-export` (`tests/reports-export.test.ts:1265` and `:1489`). ### Invariant & Root Cause - **Invariant**: PDF report generation (`buildCashCloseReportHtml`, `buildDailySalesReportHtml`) and its real Electron `printToPDF` verification (`extractPdfInfo` / `pdfTextIncludesToken`) must preserve the full multi-script document metadata and verify rendered report tokens across X, Z, and daily-sales exports on every supported platform (macOS, Windows, and headless Linux CI runners with or without optional CJK/Devanagari system fonts). - **Root Cause**: 1. Both PDF HTML templates (`main/services/cash-close-export.ts` and `main/services/daily-sales-export.ts`) only specified generic Latin sans-serif fallbacks (`-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif`) instead of the multi-script system font stack used in `frontend/src/app/globals.css`. 2. On `ubuntu-24.04` GitHub Actions runners (`linux-tests`), `fonts-dejavu-core` and `fonts-liberation` are pre-installed (covering Latin, accented French, Arabic, and currency `₹`), whereas optional CJK and Devanagari system font packages are not pre-installed. When HarfBuzz/FontConfig has no installed font for a character, Chromium's Skia PDF backend maps the character to glyph ID `0` (`.notdef`): the first `.notdef` character/cluster in a font subset is emitted as bare `<0000> Tj` and omitted from `/ToUnicode` (`SkPDFMakeToUnicodeCmap` starts at glyph index `1`), while all subsequent `.notdef` characters in that font subset are emitted via `/Span<</ActualText <FEFF...> >> BDC` (e.g. `'京カフェ'`, `'茶ラテ'`, `'कैफे'`, `'साला चाय'`), and the PDF document metadata dictionary (`/Title <FEFF...>`) always preserves the complete UTF-16BE string (`كافيه النور · 東京カフェ · फ्लो कैफे · Café Élégant <script>alert(1)</script>`). ### Changes 1. Updated the CSS `font-family` fallback stack in `main/services/cash-close-export.ts` and `main/services/daily-sales-export.ts` to include the cross-platform multi-script system fonts (Noto/PingFang/Hiragino/Yu Gothic/Meiryo/Microsoft YaHei/Nirmala UI/Kohinoor). 2. Updated `extractPdfInfo` and added `pdfTextIncludesToken` in `tests/reports-export.test.ts` across all three real Electron `printToPDF` verification blocks (`xPdfInfo`, `zPdfInfo`, `dsPdfInfo`) to decode and assert the full UTF-16BE `/Title` metadata on all three PDFs while matching `/ToUnicode` + `/ActualText` page stream text across both full-font environments and headless Linux runners without CJK/Devanagari system fonts. ### Verification - `npm run test:reports-export` (passed, including real Electron `printToPDF` child-process suite) - `npm run test:daily-sales-export` (248/248 passed) - `npm run lint` (passed, 0 errors) - `npm run build` (passed) - `git diff --check` (clean)

* no-mistakes(ci): Diagnosed and fixed the `Core Test Suite (Shard 1/4)` failure (`ci-1`, `github-check-run:123144964054`) in `npm run test:reports-export` (`tests/reports-export.test.ts`). ### Invariant & Root Cause - **Invariant**: Headless Electron PDF and layout verification in `tests/reports-export.test.ts` must rely only on deterministic offscreen-safe DOM layout metrics (`executeJavaScript`) and `printToPDF` output, never invoking Viz compositor surface capture (`webContents.capturePage()`) on hidden (`show: false`) windows where X11/Xvfb does not allocate a composited surface. - **Root Cause**: After all X, Z, and daily-sales `printToPDF` assertions succeeded on Linux CI (`ubuntu-24.04` under `xvfb-run`), `verifyHtmlLayoutAndCapturePages` opened a hidden (`show: false`) `BrowserWindow` and called `win.webContents.capturePage()` in a loop to write unused PNG screenshots. On Linux X11/Xvfb, an unmapped (`show: false`) window does not submit frames to the Viz surface, so Electron's `WebContents::CapturePage` callback (`OnCapturePageDone`) receives an empty `SkBitmap` (`bitmap.drawsNothing() === true`) after the ~3.5s Viz copy timeout and rejects with `[Error: UnknownVizError]`. ### Changes - Renamed `verifyHtmlLayoutAndCapturePages` to `verifyHtmlLayout` in `tests/reports-export.test.ts` and removed the `webContents.capturePage()` loop and `FLO_PDF_ARTIFACTS_DIR` artifact-dumping path across all three report layout checks (`xLayout`, `zLayout`, and `dsLayout`), retaining the `executeJavaScript` DOM layout and overflow assertions (`scrollWidth <= clientWidth && overflowingCells === 0`). ### Verification - `npm run test:reports-export` (passed, including real Electron `printToPDF` child-process suite) - `npm run lint` (passed, 0 errors) - `node scripts/ci/check-changed-format.cjs --base 2fa0228` (passed) - `npm run build` (passed) - `git diff --check` (clean)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants