Conversation
📝 WalkthroughWalkthroughThe pull request removes page-level analysis capability from the Figma plugin and eliminates the unnecessary "active" visual state from report gauge items. Page analysis message handling, UI button, and associated styling/logic are deleted; only node selection analysis remains. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@app/figma-plugin/src/ui.template.html`:
- Line 28: Update the empty-state paragraph copy that currently reads "Select a
frame, component, or section in Figma, then click Analyze Selection" to reflect
the accepted scope (frame/section only); locate the paragraph element containing
that text in ui.template.html and remove the word "component" so it reads
something like "Select a frame or section in Figma, then click Analyze
Selection" to avoid misleading users.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Pro
Run ID: 6cc37867-9ebf-46d7-9735-ab8617b82a74
📒 Files selected for processing (4)
app/figma-plugin/src/main.tsapp/figma-plugin/src/ui.template.htmlapp/shared/styles.csssrc/core/report-html/render.ts
💤 Files with no reviewable changes (2)
- app/shared/styles.css
- app/figma-plugin/src/main.ts
| <h2>Ready to analyze</h2> | ||
| <p>Select a frame, component, or section in Figma, then click <strong>Analyze Selection</strong>.<br> | ||
| Or click <strong>Analyze Page</strong> to check the entire current page.</p> | ||
| <p>Select a frame, component, or section in Figma, then click <strong>Analyze Selection</strong>.</p> |
There was a problem hiding this comment.
Align empty-state copy with supported analysis scope
Line 28 still mentions component, but the accepted scope in this PR is frame/section selection only. Please tighten the copy to avoid misleading users.
Suggested patch
- <p>Select a frame, component, or section in Figma, then click <strong>Analyze Selection</strong>.</p>
+ <p>Select a frame or section in Figma, then click <strong>Analyze Selection</strong>.</p>📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| <p>Select a frame, component, or section in Figma, then click <strong>Analyze Selection</strong>.</p> | |
| <p>Select a frame or section in Figma, then click <strong>Analyze Selection</strong>.</p> |
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.
In `@app/figma-plugin/src/ui.template.html` at line 28, Update the empty-state
paragraph copy that currently reads "Select a frame, component, or section in
Figma, then click Analyze Selection" to reflect the accepted scope
(frame/section only); locate the paragraph element containing that text in
ui.template.html and remove the word "component" so it reads something like
"Select a frame or section in Figma, then click Analyze Selection" to avoid
misleading users.
There was a problem hiding this comment.
The analyze-selection handler still works on any selected node including components — components are valid analysis targets. This PR removes page-level analysis, not component selection. Keeping 'component' in the copy is accurate.
There was a problem hiding this comment.
@let-sunny, you're right — my suggestion was incorrect. Since analyze-selection operates on any user-selected node (frames, components, sections, etc.) and this PR only removes page-level analysis, keeping "component" in the copy is accurate and appropriate. Sorry for the noise!
🧠 Learnings used
Learnt from: let-sunny
Repo: let-sunny/canicode PR: 154
File: src/core/rules/structure/index.ts:296-304
Timestamp: 2026-03-29T00:24:13.455Z
Learning: In let-sunny/canicode, the `non-layout-container` rule in `src/core/rules/structure/index.ts` intentionally flags non-empty `SECTION` nodes (`children.length > 0`) because Figma `SECTION` is not a layout container by design — using it structurally with children is treated as semantic misuse. This predicate is considered sufficient and intentional; do not flag it as too broad.
Summary
activeclass from gauge items — gauges are category score summaries, not tab navigationChanges
render.ts— remove active class from first gauge item, remove gauge active toggle in interactionsstyles.css— remove.rpt-gauge-item.activestylemain.ts— removeanalyze-pagemessage handlerui.template.html— remove "Analyze Page" button,analyzePage()function, related disabled togglesTest plan
pnpm lint— passpnpm test:run— 646 tests passpnpm build— CLI/MCP build passpnpm build:plugin— Figma plugin build passpnpm build:web— Web app build passCloses #177
🤖 Generated with Claude Code
Summary by CodeRabbit
Release Notes