Skip to content

Conversation

@JakeGinnivan
Copy link
Contributor

No description provided.

… dependency

- Updated voting.server.ts to streamline session fetching and remove unnecessary service session filtering.
- Modified _layout.agenda.$year.talk.$sessionId.tsx to simplify session retrieval logic and eliminate timezone dependency.
- Adjusted _layout.agenda.($year).tsx to remove timezone handling from session fetching.
- Enhanced admin.voting-validation.stats.$runId.tsx to include sessionize data in voting results and improve error handling.
- Updated admin.voting.tsx to manage underrepresented groups configuration and improve error reporting.
- Refactored app-agenda-grid.tsx, app-agenda-sessions.tsx, and app-agenda-speakers.tsx to remove conferenceConfigPublic dependency and simplify session fetching logic.
@JakeGinnivan JakeGinnivan requested a review from Copilot July 29, 2025 07:46
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR implements ELO exports and imports functionality for the voting validation system, along with underrepresented groups configuration. The changes enable exporting voting data to external ELO ranking tools and importing the calculated results back into the system for improved talk ranking and diversity tracking.

  • Adds underrepresented groups configuration management in the admin interface
  • Implements ELO ranking export/import functionality with vote data export and results upload
  • Refactors session data handling to work with individual sessions instead of grouped sessions

Reviewed Changes

Copilot reviewed 20 out of 21 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
website/app/routes/app-agenda-speakers.tsx Removes timezone parameter from speaker data fetching
website/app/routes/app-agenda-sessions.tsx Refactors session processing to handle individual sessions and removes timezone dependency
website/app/routes/app-agenda-grid.tsx Removes timezone parameter from schedule grid fetching
website/app/routes/admin.voting.tsx Adds underrepresented groups configuration UI and management functionality
website/app/routes/admin.voting-validation.stats.$runId.tsx Implements ELO results import/export and displays ranked results with underrepresented group indicators
website/app/routes/admin.voting-validation.stats.$runId.download.tsx New route for exporting vote data as JSON for external ELO tools
website/app/routes/_layout.agenda.($year).tsx Removes timezone parameter from agenda data fetching
website/app/routes/_layout.agenda.$year.talk.$sessionId.tsx Refactors to work with individual sessions instead of grouped sessions
website/app/lib/voting.server.ts Updates session data processing to handle individual sessions
website/app/lib/voting-validation.server.ts Adds vote result storage, ELO result management, and underrepresented groups configuration
website/app/lib/voting-validation-types.ts Defines new types for ELO results, vote results, and underrepresented groups configuration
website/app/lib/sessionize.server.ts Refactors to return individual sessions and adds underrepresented groups data extraction
website/app/lib/session-info.server.ts Adds underrepresented groups question ID configuration
website/app/config/years/*.server.ts Adds underrepresented groups question ID configuration for each conference year


export async function getUnderrepresentedGroupsConfig(votesTableClient: TableClient): Promise<string[]> {
try {
const partitionKey: UnderrepresentedGroupsConfig['partitionKey'] = 'ddd'
Copy link

Copilot AI Jul 29, 2025

Choose a reason for hiding this comment

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

The hardcoded partition key 'ddd' should be replaced with a meaningful constant or configuration value to improve code maintainability and clarity.

Suggested change
const partitionKey: UnderrepresentedGroupsConfig['partitionKey'] = 'ddd'
const partitionKey: UnderrepresentedGroupsConfig['partitionKey'] = UNDERREPRESENTED_GROUPS_PARTITION_KEY

Copilot uses AI. Check for mistakes.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@JakeGinnivan JakeGinnivan merged commit ccd848f into main Jul 29, 2025
1 check passed
@JakeGinnivan JakeGinnivan deleted the feature/elo-exports-and-imports branch July 29, 2025 07:52
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