Skip to content

fix: polygon tool icon reads as freeform, not a fixed pentagon - #561

Open
bvnaik05 wants to merge 1 commit into
frappe:mainfrom
bvnaik05:fix/polygon-tool-icon
Open

fix: polygon tool icon reads as freeform, not a fixed pentagon#561
bvnaik05 wants to merge 1 commit into
frappe:mainfrom
bvnaik05:fix/polygon-tool-icon

Conversation

@bvnaik05

Copy link
Copy Markdown
Contributor

Problem

The Polygon tile in the Shapes menu (click-to-place-a-vertex drawing — no fixed side count) used lucide-pentagon: a symmetric, regular five-sided glyph. That icon promises a specific shape ("insert a pentagon") the tool doesn't actually draw, which reads as misleading for a tool whose whole point is that you decide the shape by clicking out its vertices yourself.

An earlier pass (#451) deliberately picked this over a prior pen-tool icon, reasoning "the tile draws a polygon, so it should look like one" — true, but a regular pentagon is a much more specific claim than "a polygon".

Fix

Draw an irregular polygon outline instead, the same way the custom-polygon tile beside it (the one that asks for a side count) already draws its own glyph rather than reaching for a Lucide icon. An asymmetric outline says "you decide the shape" instead of "insert a pentagon" — and stays visually distinct from that neighboring tile's regular, n-labeled glyph.

  • frontend/src/components/floating/ShapeGlyph.vue: new polygon-freeform glyph family, an irregular polygon outline.
  • frontend/src/composables/useInsertCatalog.js: the Polygon tile now uses glyph: 'polygon-freeform' instead of icon: 'lucide-pentagon'.

Testing

  • yarn vitest run — 149 files / 1731 tests pass.
  • Updated the existing test that pinned the old icon to assert the new glyph instead.

🤖 Generated with Claude Code

The Polygon tile (click-to-place-a-vertex drawing, no fixed side
count) used lucide-pentagon — a symmetric, regular five-sided glyph
that promises a specific shape the tool doesn't draw. An earlier pass
(frappe#451) deliberately chose it over the prior pen-tool icon, reasoning
"the tile draws a polygon, so it should look like one" — true, but a
regular pentagon is a much more specific claim than "polygon".

Draw an irregular polygon outline instead, the same way the custom
polygon tile beside it draws its own glyph rather than reaching for a
Lucide icon. An asymmetric shape says "you decide the shape" instead
of "insert a pentagon".
Copilot AI lite review requested due to automatic review settings August 20, 2026 11:09

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 was unable to review this pull request because the user who requested the review has reached their quota limit.

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