Skip to content

Update excel-formula-beautifier extension - #22871

Merged
raycastbot merged 3 commits into
raycast:mainfrom
oliverde8:ext/excel-formula-beautifier
Nov 17, 2025
Merged

raycastbot merged 3 commits into
raycast:mainfrom
oliverde8:ext/excel-formula-beautifier

Conversation

@oliverde8

@oliverde8 oliverde8 commented Nov 13, 2025 •

Copy link
Copy Markdown
Contributor

Description

  • Fix issue with strings being parsed as part of formulas,
  • Improve beatification & UI/UX improvements for bigger formulas.
  • Allow beautified formula to be copied
  • Display quick doc about the formulas used.
  • Improve the logic within the code to handle edge cases

Screencast

Checklist

- chore: Fix lint issues
- doc: Updated changelog and metadata
- chore: Added formula documentation on the clipbard command.
- feat: Add documentation when beautifying formulas
- feat: UI/UX Improvements
- fix: Fix issue with Cell parsing & Code quality
@raycastbot raycastbot added extension fix / improvement Label for PRs with extension's fix improvements extension: excel-formula-beautifier Issues related to the excel-formula-beautifier extension platform: macOS platform: Windows OP is author The OP of the PR is the author of the extension labels Nov 13, 2025
@raycastbot

ghost commented Nov 13, 2025

Copy link
Copy Markdown
Collaborator

Thank you for the update! 🎉

Due to our current reduced availability, the initial review may take up to 10 business days.

@oliverde8
oliverde8 marked this pull request as ready for review November 15, 2025 09:24
@greptile-apps

ghost commented Nov 15, 2025

Copy link
Copy Markdown
Contributor

Greptile Overview

Greptile Summary

This PR adds significant functionality improvements to the Excel Formula Beautifier extension, addressing string parsing issues and enhancing the user experience with formula documentation and improved UI.

Key Changes:

  • Fixed critical bug where strings within formulas were incorrectly parsed as formula components by adding quote state tracking in the parser (parser.ts:144-156)
  • Added comprehensive formula documentation system with a 1486-line documentation database covering 400+ Excel formulas in English and French
  • Enhanced clipboard command with visual metadata display showing formula usage statistics, categories, syntax, and examples
  • Added copy action to allow users to copy beautified formulas directly from the detail view
  • Improved error handling by replacing status text with toast notifications for better UX
  • Code cleanup: removed unused replaceChildren method and combineCellRanges function

Issues Found:

  • Debug console.log statement left in parser (parser.ts:398) - must be removed before merging
  • Typo in CHANGELOG: "beutification" should be "beautification"

Confidence Score: 4/5

  • This PR is safe to merge after removing the debug console.log statement
  • The PR makes solid improvements to functionality and UX. The main issue is a leftover debug console.log that must be removed. The typo in CHANGELOG is minor. The core changes (string parsing fix, documentation system, UI enhancements) are well-implemented with no logical errors detected.
  • parser.ts requires attention to remove debug logging before merge; CHANGELOG.md has minor typo that should be fixed

Important Files Changed

File Analysis

Filename Score Overview
extensions/excel-formula-beautifier/CHANGELOG.md 4/5 Added new changelog entry with correct {PR_MERGE_DATE} template string; contains typo: "beutification" should be "beautification" (appears twice)
extensions/excel-formula-beautifier/src/excel-beautifier-clipboard.tsx 5/5 Enhanced clipboard command with formula documentation display, metadata UI, and copy action; improved error handling with toast messages
extensions/excel-formula-beautifier/src/parser/parser.ts 5/5 Fixed string literal parsing by tracking quote state; removed colon operator from operator list; removed unused combineCellRanges function; added debug console.log
extensions/excel-formula-beautifier/src/parser/formula-extractor.ts 5/5 New utility to extract and count formulas from parsed expressions with documentation lookup
extensions/excel-formula-beautifier/src/parser/formulas-documentation.ts 5/5 New 1486-line file containing documentation for Excel formulas with descriptions, syntax, and examples

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.

9 files reviewed, 2 comments

Edit Code Review Agent Settings | Greptile

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>

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.

Auto-approved

@raycastbot
raycastbot merged commit c9533df into raycast:main Nov 17, 2025
@github-actions

ghost commented Nov 17, 2025

Copy link
Copy Markdown
Contributor

@raycastbot

ghost commented Nov 17, 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.

@oliverde8
oliverde8 deleted the ext/excel-formula-beautifier branch September 14, 2026 11:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

extension: excel-formula-beautifier Issues related to the excel-formula-beautifier extension extension fix / improvement Label for PRs with extension's fix improvements OP is author The OP of the PR is the author of the extension platform: macOS platform: Windows

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants