Skip to content

fix: correct typos and minor code quality issues#42827

Open
yogeshwaran-c wants to merge 1 commit intosupabase:masterfrom
yogeshwaran-c:fix/typos-and-minor-code-quality
Open

fix: correct typos and minor code quality issues#42827
yogeshwaran-c wants to merge 1 commit intosupabase:masterfrom
yogeshwaran-c:fix/typos-and-minor-code-quality

Conversation

@yogeshwaran-c
Copy link

@yogeshwaran-c yogeshwaran-c commented Feb 15, 2026

What kind of change does this PR introduce?

Code quality / cleanup

What is the current behavior?

Several typos and minor code quality issues exist across the codebase:

  • STYLING_CONGIF (should be STYLING_CONFIG) typo in Launch Week handler functions (lwx-ticket, lwx-og, lw11-og)
  • geneartedOGImage (should be generatedOGImage) typo in lwx-ticket-og handler
  • console.log used for warning-level messages in docs generator legacy.ts, and "Cant find" missing apostrophe
  • Missing alt attribute on <img> element in AuthProvidersForm/FormField.tsx

What is the new behavior?

  • STYLING_CONGIF -> STYLING_CONFIG across all 3 LW handler files
  • geneartedOGImage -> generatedOGImage in lwx-ticket-og handler
  • console.log -> console.warn with "Can't find" grammar fix in legacy.ts
  • Added alt={option.label} to the img element in FormField for accessibility

Additional context

All changes are safe renames within file scope (no cross-file references). The STYLING_CONGIF typo appears in variable declaration and all its usages within each file, so the rename is self-contained. The accessibility fix adds a descriptive alt attribute using the already-available option.label value.

Summary by CodeRabbit

  • Bug Fixes
    • Corrected internal variable and configuration naming inconsistencies that could affect styling and image generation
    • Improved error messaging with clearer warnings and corrected grammar
    • Added accessibility attributes to form images for better user experience

- Fix STYLING_CONGIF -> STYLING_CONFIG typo in LW handler functions
- Fix geneartedOGImage -> generatedOGImage typo in lwx-ticket-og handler
- Fix console.log -> console.warn and "Cant find" -> "Can't find" in docs generator legacy.ts
- Add missing alt attribute to img element in AuthProvidersForm FormField
@yogeshwaran-c yogeshwaran-c requested review from a team as code owners February 15, 2026 11:33
@vercel
Copy link

vercel bot commented Feb 15, 2026

@yogeshwaran-c is attempting to deploy a commit to the Supabase Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions
Copy link
Contributor

Thanks for contributing to Supabase! ❤️ Our team will review your PR.

A few tips for a smoother review process:

  • If you have a local version of the repo, run pnpm run format to make sure formatting checks pass.
  • Once we've reviewed your PR, please don't trivially merge master (don't click Update branch if there are no merge conflicts to be fixed). This invalidates any pre-merge checks we've run.

@vercel
Copy link

vercel bot commented Feb 15, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
design-system Skipped Skipped Feb 15, 2026 11:33am

Request Review

@github-actions github-actions bot added the documentation Improvements or additions to documentation label Feb 15, 2026
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Feb 15, 2026

Walkthrough

This pull request addresses multiple typo fixes and minor improvements across the codebase. Changes include correcting console logging behavior, enhancing form accessibility with an alt attribute, fixing misspelled styling configuration constants in OG image handlers, and correcting a variable name in the ticket OG handler.

Changes

Cohort / File(s) Summary
Definition Tree Logging
apps/docs/generator/legacy.ts
Changed console.log to console.warn when target node cannot be found, and corrected grammar from "Cant" to "Can't".
Form Accessibility
apps/studio/components/interfaces/Auth/AuthProvidersForm/FormField.tsx
Added alt attribute to icon images in select options for improved accessibility.
Styling Configuration Constants
apps/www/supabase/functions/lw11-og/handler.tsx, apps/www/supabase/functions/lwx-og/handler.tsx, apps/www/supabase/functions/lwx-ticket/handler.tsx
Corrected typo in styling configuration constant from STYLING_CONGIF to STYLING_CONFIG across all references in OG image generation logic.
OG Image Variable Name
apps/www/supabase/functions/lwx-ticket-og/handler.tsx
Fixed variable name typo from geneartedOGImage to generatedOGImage in image generation and storage upload calls.

Suggested labels

autofix

Suggested reviewers

  • joshenlim
  • awaseem
  • CoolAssPuppy
🚥 Pre-merge checks | ✅ 3 | ❌ 1
❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 20.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately summarizes the PR's main objective: fixing typos and minor code quality issues across multiple files.
Description check ✅ Passed The description covers the required section 'What kind of change' and provides detailed explanations of current and new behavior for all changes in the PR.
Merge Conflict Detection ✅ Passed ✅ No merge conflicts detected when merging into master

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

No actionable comments were generated in the recent review. 🎉


Comment @coderabbitai help to get the list of available commands and usage tips.

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

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant