Skip to content

Add rule-of-three extension - #22773

Merged
raycastbot merged 7 commits into
raycast:mainfrom
Yaya12085:ext/rule-of-three
Nov 9, 2025
Merged

raycastbot merged 7 commits into
raycast:mainfrom
Yaya12085:ext/rule-of-three

Conversation

@Yaya12085

@Yaya12085 Yaya12085 commented Nov 9, 2025 •

Copy link
Copy Markdown
Contributor

Description

Calculate proportions using the rule of three (cross multiplication)

Screencast

rule-of-three-1 rule-of-three-2 rule-of-three-3

Checklist

@raycastbot

Copy link
Copy Markdown
Collaborator

Congratulations on your new Raycast extension! 🚀

You can expect an initial review within five business days.

Once the PR is approved and merged, the extension will be available on our Store.

@Yaya12085
Yaya12085 marked this pull request as ready for review November 9, 2025 17:58

@greptile-apps greptile-apps Bot left a comment

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.

Greptile Overview

Greptile Summary

This PR introduces a new "Rule of Three" extension for Raycast that enables users to calculate proportions using cross multiplication. The extension provides a form-based interface where users input three known values (A, B, C) and the system calculates the fourth unknown value (X) using the formula X = (C × B) ÷ A. The implementation includes real-time calculation updates, copy-to-clipboard functionality, and value swapping operations for easier manipulation. Additionally, the extension features an educational details view that displays an illustration, explains the mathematical formula, and provides step-by-step calculation breakdowns. The extension follows standard Raycast conventions with proper configuration files, TypeScript setup, and formatting rules, making it consistent with existing extensions like ratio-calculator.

Important Files Changed

Filename Score Overview
extensions/rule-of-three/src/index.tsx 4/5 Main form component implementing rule of three calculator with real-time calculations and swap functionality
extensions/rule-of-three/src/details.tsx 3/5 Educational detail view component that references a missing illustration asset file
extensions/rule-of-three/package.json 4/5 Extension configuration with redundant subtitle in command definition
extensions/rule-of-three/README.md 4/5 Minimal documentation with only title and no meaningful content for users
extensions/rule-of-three/CHANGELOG.md 5/5 Proper changelog with required {PR_MERGE_DATE} template format
extensions/rule-of-three/.prettierrc 5/5 Standard Prettier configuration following Raycast conventions
extensions/rule-of-three/tsconfig.json 5/5 Standard TypeScript configuration for Raycast extension
extensions/rule-of-three/.gitignore 5/5 Standard gitignore following Raycast extension template
extensions/rule-of-three/eslint.config.js 5/5 Standard ESLint configuration using Raycast defaults

Confidence score: 3/5

  • This PR introduces new functionality with minimal risk but has several issues that should be addressed before merging
  • Score reflects missing assets, documentation gaps, and minor UI inconsistencies that could impact user experience
  • Pay close attention to src/details.tsx for missing illustration.png asset and README.md for inadequate documentation

9 files reviewed, 4 comments

Edit Code Review Agent Settings | Greptile

Comment thread extensions/rule-of-three/README.md Resolved
<Action title="Copy X" icon={Icon.Clipboard} onAction={copyX} shortcut={{ modifiers: ["cmd"], key: "c" }} />
)}
<Action
title="Swap a ↔ B"

ghost Nov 9, 2025

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.

style: Inconsistent capitalization: 'Swap a ↔ B' should be 'Swap A ↔ B' to match other swap actions

Suggested change
title="Swap a ↔ B"
title="Swap A ↔ B"

Comment thread extensions/rule-of-three/package.json Resolved
Yaya Mohamed and others added 5 commits November 9, 2025 18:24
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
Updated the illustration path to use a relative URL.

ghost left a comment

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.

Looks good to me, approved 🔥

@raycastbot
raycastbot merged commit 5898b65 into raycast:main Nov 9, 2025
@github-actions

ghost commented Nov 9, 2025

Copy link
Copy Markdown
Contributor

@raycastbot

ghost commented Nov 9, 2025

Copy link
Copy Markdown
Collaborator

🎉 🎉 🎉

We've rewarded your Raycast account with some credits. You will soon be able to exchange them for some swag.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants