Skip to content

Conversation

rohitpaulk
Copy link
Member

Replace allowsAnonymousAccess property with buildRouteInfoMetadata
method returning RouteInfoMetadata to declare anonymous access.
Refactor activate method to properly close function block. This update
aligns with new route metadata conventions and improves route
configuration clarity.

Replace allowsAnonymousAccess property with buildRouteInfoMetadata 
method returning RouteInfoMetadata to declare anonymous access. 
Refactor activate method to properly close function block. This update 
aligns with new route metadata conventions and improves route 
configuration clarity.
Add a new helper function to create leaderboard entries from sample data,
reducing duplicate test setup code for both anonymous and authenticated
user scenarios. Introduce a new test to verify leaderboard page viewing
for anonymous users. This improves test clarity and maintainability.
relatedCourseSlugs: ['redis', 'shell', 'sqlite', 'grep'].slice(0, Math.floor(sampleUserDatum.score / 50)),
});
}
}
Copy link

Choose a reason for hiding this comment

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

Bug: Test Behavior Altered by Dynamic Data

The createLeaderboardEntriesFromSampleData helper changes the "can switch languages" test's behavior. It dynamically calculates relatedCourseSlugs, replacing the test's original fixed array of two slugs with four for its sample data, which alters the test's intended validation.

Additional Locations (1)

Fix in Cursor Fix in Web

Copy link

github-actions bot commented Sep 5, 2025

Test Results

658 tests  +658   610 ✅ +610   9m 5s ⏱️ + 9m 5s
  1 suites +  1    48 💤 + 48 
  1 files   ±  0     0 ❌ ±  0 

Results for commit 2360dfc. ± Comparison against base commit 3f1f0c8.

Copy link

codecov bot commented Sep 5, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Copy link

codecov bot commented Sep 5, 2025

Bundle Report

Changes will decrease total bundle size by 1.63kB (-0.0%) ⬇️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
client-array-push 38.56MB -1.63kB (-0.0%) ⬇️

Affected Assets, Files, and Routes:

view changes for bundle: client-array-push

Assets Changed:

Asset Name Size Change Total Size Change (%)
assets/chunk.*.js -82 bytes 27.05kB -0.3%
assets/chunk.*.js -1.54kB 3.17MB -0.05%

Files in assets/chunk.*.js:

  • ./routes/leaderboard.ts → Total Size: 2.38kB

@rohitpaulk rohitpaulk merged commit a282bbc into main Sep 5, 2025
7 of 8 checks passed
@rohitpaulk rohitpaulk deleted the feat-leaderboard-anonymous-access-update branch September 5, 2025 00:11
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.

1 participant