Skip to content

Migrate fonts to resource system#4165

Open
timon-schelling wants to merge 11 commits into
masterfrom
fonts-as-resources
Open

Migrate fonts to resource system#4165
timon-schelling wants to merge 11 commits into
masterfrom
fonts-as-resources

Conversation

@timon-schelling
Copy link
Copy Markdown
Member

No description provided.

gemini-code-assist[bot]

This comment was marked as outdated.

Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai Bot left a comment

Choose a reason for hiding this comment

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

8 issues found across 43 files

Confidence score: 2/5

  • Multiple high-severity, high-confidence issues indicate real regression risk: closest_style() in editor/src/messages/portfolio/fonts/utility_types.rs can panic on empty styles, and resource resolution paths in editor/src/messages/portfolio/document/resource/resource_message_handler.rs can deadlock when pending state is not cleared.
  • editor/src/messages/portfolio/portfolio_message_handler.rs introduces a global unresolved-resource guard that can block unrelated document rendering, which is a broad user-facing failure mode rather than a localized edge case.
  • Font resource consistency also looks fragile: key normalization mismatch in editor/src/messages/portfolio/fonts/fonts_message_handler.rs and duplicate ResourceId creation in editor/src/messages/portfolio/document/node_graph/node_properties.rs can make fonts unresolvable or duplicated.
  • Pay close attention to editor/src/messages/portfolio/fonts/utility_types.rs, editor/src/messages/portfolio/document/resource/resource_message_handler.rs, and editor/src/messages/portfolio/portfolio_message_handler.rs - panic/deadlock/global blocking behaviors are the main merge risks.

Reply with feedback, questions, or to request a fix.

Re-trigger cubic

Comment thread editor/src/messages/portfolio/fonts/utility_types.rs Outdated
Comment thread editor/src/messages/portfolio/portfolio_message_handler.rs
Comment thread editor/src/messages/tool/common_functionality/utility_functions.rs Outdated
Comment thread editor/src/messages/portfolio/fonts/fonts_message_handler.rs
Comment thread editor/src/messages/portfolio/document_migration.rs
Comment thread editor/src/messages/prelude.rs
@timon-schelling timon-schelling changed the title Fonts as resources Migrate fonts to resource system Jun 1, 2026
Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai Bot left a comment

Choose a reason for hiding this comment

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

2 issues found across 6 files (changes from recent commits).

Reply with feedback, questions, or to request a fix.

Re-trigger cubic

Comment thread editor/src/messages/portfolio/fonts/utility_types.rs
Comment thread editor/src/messages/portfolio/fonts/fonts_message_handler.rs
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.

2 participants