Skip to content

At loading, the cog may not render properly for a few seconds - #566

Merged
agarny merged 3 commits into
opencor:mainfrom
agarny:issue565
Oct 5, 2026
Merged

agarny merged 3 commits into
opencor:mainfrom
agarny:issue565

Conversation

@agarny

@agarny agarny commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

Fixes #565.

agarny added 3 commits October 5, 2026 17:14
PrimeIcons is now imported as `primeicons.woff2?inline` so Vite embeds it reliably across dev/prod. The CSP adds `font-src 'self' data:` to allow the inlined font and the TypeScript shim is updated to recognise `*.woff2?inline` imports. `font-display` is switched to `block` to avoid icon fallback flashes while the font is applied.
Copilot AI balanced review requested due to automatic review settings October 5, 2026 04:34

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟢 Approval recommended

The inline font and CSP changes consistently address the startup rendering delay without identified regressions.

Review effort: Balanced
Findings: None

What changed in this PR

Inlines the PrimeIcons font to prevent delayed or incorrect cog rendering during startup.

Changes:

  • Inline the WOFF2 font and block fallback rendering.
  • Permit data-URI fonts through CSP.
  • Synchronize release and dependency updates with lockfiles.
File Description
src/​renderer/​src/​types/​shims.d.ts Types inline WOFF2 imports.
src/​renderer/​src/​assets/​primeicons-assets.ts Inlines the icon font.
src/​renderer/​index.html Allows data-URI fonts.
src/​renderer/​package.json Updates version and tooling.
src/​renderer/​bun.lock Locks renderer dependencies.
package.json Updates version and tooling.
bun.lock Locks root dependencies.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@agarny
agarny merged commit a65faa4 into opencor:main Oct 5, 2026
9 checks passed
@agarny
agarny deleted the issue565 branch October 5, 2026 04:41
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.

At loading, the cog may not render properly for a few seconds

2 participants