Revert "fix: complete Google Font setup in brand panel"#2869
Conversation
This reverts commit 4e6562d.
|
This pull request has been ignored for the connected project Preview Branches by Supabase. |
|
Caution Review failedThe pull request is closed. WalkthroughThe changes remove Tailwind/root-layout update and global view reload steps from font addition/removal/sync flows, retaining only internal state updates and font loading. AST helpers now always use Identifier keys for font family entries, eliminating prior StringLiteral fallback for non-identifier font IDs. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor User
participant FM as FontManager
participant FSM as FontSearchManager
participant TW as Tailwind Config
participant RL as Root Layout
participant V as Views
rect rgba(230,240,255,0.5)
note over User,FM: Previous addFont flow (simplified)
User->>FM: addFont(font)
FM->>FM: update internal _fonts
FM->>FSM: update index + load(font)
FM->>TW: add fontFamily entry
FM->>RL: insert CSS var to root
FM->>V: reload all views
end
rect rgba(230,255,230,0.5)
note over User,FSM: New addFont flow
User->>FM: addFont(font)
FM->>FM: update internal _fonts
FM->>FSM: update index + load(font)
note over TW,RL: No updates
note over V: No reload
end
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Poem
✨ Finishing touches
🧪 Generate unit tests
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (3)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Reverts #2867
Important
Reverts previous changes to Google Font setup in brand panel, removing logic for font configuration and integration with Tailwind and layout management.
FontManager:addFont().addFontToTailwindConfig()andlayoutManager.addFontVariableToRootLayout().editorEngine.frames.reloadAllViews()calls inaddFont(),removeFont(), andsyncFontsWithConfigs().ast-generators.ts:createFontFamilyProperty().ast-manipulators.ts:addFontToTailwindTheme().This description was created by
for 42b1ae2. You can customize this summary. It will automatically update as commits are pushed.
Summary by CodeRabbit