Repository navigation
Add rule-of-three extension - #22773
Conversation
|
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. |
There was a problem hiding this comment.
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
| <Action title="Copy X" icon={Icon.Clipboard} onAction={copyX} shortcut={{ modifiers: ["cmd"], key: "c" }} /> | ||
| )} | ||
| <Action | ||
| title="Swap a ↔ B" |
There was a problem hiding this comment.
style: Inconsistent capitalization: 'Swap a ↔ B' should be 'Swap A ↔ B' to match other swap actions
| title="Swap a ↔ B" | |
| title="Swap A ↔ B" |
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.
commented
Nov 9, 2025
|
Published to the Raycast Store: |
commented
Nov 9, 2025
|
🎉 🎉 🎉 We've rewarded your Raycast account with some credits. You will soon be able to exchange them for some swag. |
Description
Calculate proportions using the rule of three (cross multiplication)
Screencast
Checklist
npm run buildand tested this distribution build in Raycastassetsfolder are used by the extension itselfREADMEare placed outside of themetadatafolder