Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,16 @@ impl ShapeType {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

P1: Custom agent: PR title enforcement

PR title "Adding tooltip desciptions" violates the title rule requiring imperative mood. Rename it to an imperative form, e.g. "Add tooltip descriptions".

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At editor/src/messages/tool/common_functionality/shapes/shape_utility.rs, line 72:

<comment>PR title "Adding tooltip desciptions" violates the title rule requiring imperative mood. Rename it to an imperative form, e.g. "Add tooltip descriptions".</comment>

<file context>
@@ -69,8 +69,16 @@ impl ShapeType {
 		(match self {
-			// TODO: Add descriptions to all the shape tools
-			_ => "",
+			Self::Polygon => "Draw a regular polygon.",
+			Self::Star => "Draw a star-shaped polygon.",
+			Self::Circle => "Draw a circle.",
</file context>

pub fn tooltip_description(&self) -> String {
(match self {
// TODO: Add descriptions to all the shape tools
_ => "",
Self::Polygon => "Draw a regular polygon.",
Self::Star => "Draw a star-shaped polygon.",
Self::Circle => "Draw a circle.",
Self::Arc => "Draw an arc or curved segment.",
Self::Spiral => "Draw a spiral shape.",
Self::Grid => "Draw a grid of equally sized cells.",
Self::Arrow => "Draw an arrow pointing in a specified direction.",
Self::Line => "Draw a straight line.",
Self::Rectangle => "Draw a rectangle or square.",
Self::Ellipse => "Draw an ellipse or circle.",
})
.into()
}
Expand Down