Skip to content

[Ligue-1] Update extensions - #22806

Merged
raycastbot merged 4 commits into
raycast:mainfrom
anhthang:ligue-1
Nov 11, 2025
Merged

raycastbot merged 4 commits into
raycast:mainfrom
anhthang:ligue-1

Conversation

@anhthang

Copy link
Copy Markdown
Contributor

Description

  • Updated the Fixtures & Results view to default to displaying the latest season upon opening.
  • Added Windows support, making the extension accessible to a wider audience on the Raycast platform.
  • Dependencies upgraded to the latest versions to resolve security issues.
  • Enhanced code maintainability and efficiency by utilizing the usePromise hook for asynchronous operations.

Screencast

None

Checklist

@raycastbot raycastbot added extension fix / improvement Label for PRs with extension's fix improvements extension: ligue-1 Issues related to the ligue-1 extension platform: macOS platform: Windows OP is author The OP of the PR is the author of the extension labels Nov 11, 2025
@raycastbot

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

@greptile-apps

ghost commented Nov 11, 2025

Copy link
Copy Markdown
Contributor

Greptile Overview

Greptile Summary

This PR modernizes the Ligue 1 extension with significant improvements across the codebase. The changes include expanding support from Ligue 1 only to both Ligue 1 and Ligue 2, adding Windows platform compatibility, and upgrading all dependencies to their latest versions. The code has been refactored to use modern Raycast patterns, particularly replacing manual useEffect/useState async handling with the more robust usePromise hook from @raycast/utils. The extension now defaults to showing the latest season data immediately upon opening, and the UI has been enhanced with better organization including permanent detail views in the table component and improved dropdown navigation that supports multiple competitions per season. The TypeScript configuration and ESLint setup have been modernized to current standards.

PR Description Notes:

  • The PR description correctly highlights the key improvements but doesn't mention the expansion to Ligue 2 support, which is a significant feature addition.

Important Files Changed

Filename Score Overview
extensions/ligue-1/package.json 5/5 Comprehensive modernization including Windows support, dependency upgrades, and improved command descriptions
extensions/ligue-1/src/club.tsx 5/5 Clean refactor to usePromise hook with improved error handling and loading states
extensions/ligue-1/src/types/index.d.ts 4/5 Enhanced type safety by replacing unknown[] with proper interfaces, but missing Broadcasters interface definition
extensions/ligue-1/CHANGELOG.md 2/5 Missing required {PR_MERGE_DATE} template string in the new changelog entry
extensions/ligue-1/src/table.tsx 4/5 Modernized with usePromise hook and enhanced UI, but removes dynamic stats toggle functionality
extensions/ligue-1/README.md 5/5 Improved structure and user-focused documentation with clear feature descriptions
extensions/ligue-1/tsconfig.json 5/5 Updated to ES2023 and modern TypeScript configuration standards
extensions/ligue-1/eslint.config.mjs 5/5 Proper migration to modern ESLint flat config format using Raycast standards
extensions/ligue-1/src/api/index.ts 4/5 Well-executed expansion to support multiple competitions, but parameter parsing could be more robust
extensions/ligue-1/src/result.tsx 4/5 Successful modernization with usePromise hooks and improved default behavior
extensions/ligue-1/src/components/season_dropdown.tsx 4/5 Enhanced to support dual competitions with nested structure, but hardcoded competition data

Confidence score: 4/5

  • This PR is generally safe to merge with good architectural improvements and follows Raycast best practices
  • Score reflects solid refactoring work and dependency updates, but deducted one point for the missing {PR_MERGE_DATE} template in CHANGELOG.md and some minor type safety concerns
  • Pay close attention to the CHANGELOG.md file which needs the required {PR_MERGE_DATE} template string added

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.

Additional Comments (2)

  1. extensions/ligue-1/src/types/index.d.ts, line 58 (link)

    logic: The Broadcasters type is referenced but not defined in this file. This will cause a TypeScript compilation error.

  2. extensions/ligue-1/src/result.tsx, line 27-29 (link)

    logic: Potential runtime error if fixtures is undefined when groupBy is called. The fixtures could be undefined during loading state.

11 files reviewed, 4 comments

Edit Code Review Agent Settings | Greptile

Comment thread extensions/ligue-1/CHANGELOG.md Resolved
Comment thread extensions/ligue-1/src/table.tsx Outdated
text={team.goalsDifference.toString()}
/>
<List.Item.Detail.Metadata.Separator />
<List.Item.Detail.Metadata.TagList title="Forme">

ghost Nov 11, 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: Title should be in English ('Form' instead of 'Forme') to maintain consistency with other labels

Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

Anh Thang and others added 2 commits November 11, 2025 13:49
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
@pernielsentikaer pernielsentikaer self-assigned this Nov 11, 2025

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 a6f6853 into raycast:main Nov 11, 2025
@github-actions

ghost commented Nov 11, 2025

Copy link
Copy Markdown
Contributor

@raycastbot

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

@anhthang
anhthang deleted the ligue-1 branch November 11, 2025 10:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

extension fix / improvement Label for PRs with extension's fix improvements extension: ligue-1 Issues related to the ligue-1 extension 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