Skip to content

feat: Enhance UI for live scores and standings, refactor data types f…#4

Open
gishanchamith wants to merge 1 commit intomainfrom
dev
Open

feat: Enhance UI for live scores and standings, refactor data types f…#4
gishanchamith wants to merge 1 commit intomainfrom
dev

Conversation

@gishanchamith
Copy link
Owner

…or matches

@vercel
Copy link

vercel bot commented Sep 27, 2025

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

Project Deployment Preview Comments Updated (UTC)
v0-portfolio-website Ready Ready Preview Comment Sep 27, 2025 7:09am

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting

Comment on lines +63 to +65
<div className="w-10 h-10 rounded-full bg-primary/20 flex items-center justify-center">
<span className="text-sm font-bold text-primary">{match.team1?.shortCode || 'T1'}</span>
</div>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[P1] Extend TeamInfo to cover short codes

The new Matches typings only give a team name, yet the live score card renders match.team1?.shortCode as part of the UI. With the stricter typing introduced in this commit, running npx tsc --noEmit fails (TS2339: Property 'shortCode' does not exist on type 'TeamInfo'). Either add an optional shortCode field to TeamInfo or stop referencing it so type checking doesn’t break.

Useful? React with 👍 / 👎.

Comment on lines +101 to +103
<h4 className="font-semibold text-sm">{match.currentOver?.number || 6}th over</h4>
<div className="flex justify-center gap-1">
{match.currentOver?.balls?.map((ball, index) => (

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[P1] Match type missing current over data

The UI now reads match.currentOver?.number and iterates over match.currentOver?.balls, but the newly added Match interface in lib/types.ts doesn’t define a currentOver field. This causes npx tsc --noEmit to fail with TS2339 and makes the types unusable for editor assistance. Consider extending the Match type (e.g. currentOver?: { number: number; balls: string[] }) or guarding the UI with any casting.

Useful? React with 👍 / 👎.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants