-
Notifications
You must be signed in to change notification settings - Fork 2
show scored soldier positions #14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -211,7 +211,7 @@ export default async function SoldierProfilePage({ | |||||||||||||||||||
| <ScoreCell | ||||||||||||||||||||
| label="Posiciones" | ||||||||||||||||||||
| value={`+${soldier.scoreBreakdown.positions}`} | ||||||||||||||||||||
| sub="podio" | ||||||||||||||||||||
| sub="top 6" | ||||||||||||||||||||
| /> | ||||||||||||||||||||
|
Comment on lines
212
to
215
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Inconsistent terminology: "Posiciones" vs "Puestos". The soldiers table now uses "Puestos" (SoldiersTable.tsx lines 125, 276, 502), but this detail page still uses "Posiciones" as the label. Consider using "Puestos" here as well for consistency across the UI. 📝 Proposed fix for consistency <ScoreCell
- label="Posiciones"
+ label="Puestos"
value={`+${soldier.scoreBreakdown.positions}`}
sub="top 6"
/>📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||
| </div> | ||||||||||||||||||||
|
|
||||||||||||||||||||
|
|
||||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix potential key collision in position chips.
The key
${projectId}-${position}could collide if the same project appears in multiple hackathons with the same position. IncludehackathonIdin the key for uniqueness.🔑 Proposed fix
{entries.map(({ position, hackathonLabel, projectId }) => ( + {entries.map(({ position, hackathonLabel, projectId, hackathonId }) => ( <span - key={`${projectId}-${position}`} + key={`${projectId}-${hackathonId ?? 'none'}-${position}`} title={hackathonLabel} className="inline-flex items-center gap-1 rounded-full border border-border bg-white/[0.03] px-2 py-0.5 text-foreground-muted" >🤖 Prompt for AI Agents