You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cc @rknoche6 — happy to help you re-land this properly once the schema migration is sorted.
Greptile Summary
Clean revert of commit 8993395 ("display total skills count on /skills page (#76)") to fix a Convex server error on the /skills page (#357). The original commit added a globalStats table, a countPublicSkills query, a cron job to update global stats, and UI to display the total count in the page header. Since the globalStats table was never properly initialized in the Convex deployment, the countPublicSkills query caused a server error.
Removes the globalStats table definition from convex/schema.ts
Removes the countPublicSkills query from convex/skills.ts
Removes the updateGlobalStatsInternal mutation and its hourly cron from convex/statsMaintenance.ts and convex/crons.ts
Reverts the /skills page UI to no longer display the total skills count
Cleans up test mocks for useQuery that were added for the feature
Removes the corresponding CHANGELOG entry
Verified this is a byte-for-byte clean revert — the resulting files are identical to the state before the original feature commit.
Confidence Score: 5/5
This PR is safe to merge — it is a clean, complete revert restoring the codebase to a known-good state.
The revert produces zero diff against the pre-feature commit (e352309), confirming it is an exact rollback. The feature being reverted was merged but broken in production due to an uninitialized table. No new code is introduced, no partial changes remain, and tests are updated to match.
Low Risk
This is a revert that removes a failing read path and related maintenance code; it should reduce runtime errors, with minimal functional impact beyond hiding the total count.
Overview
Removes the /skills header total-count display by dropping the countPublicSkills Convex query and its corresponding useQuery call in the skills index route.
Reverts the uninitialized global stats infrastructure by deleting the globalStats table from the Convex schema, removing the hourly global-stats-update cron, and eliminating the updateGlobalStatsInternal maintenance mutation. Tests are updated to stop mocking useQuery for this page.
Written by Cursor Bugbot for commit 87dd677. This will update automatically on new commits. Configure here.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Reverts commit 8993395 which broke the /skills page with a Convex server error on
countPublicSkills.The
globalStatstable/cron was added but likely hasn't been properly initialized in the Convex deployment, causing a server error when querying it.Fixes #357
cc @rknoche6 — happy to help you re-land this properly once the schema migration is sorted.
Greptile Summary
Clean revert of commit 8993395 ("display total skills count on /skills page (#76)") to fix a Convex server error on the
/skillspage (#357). The original commit added aglobalStatstable, acountPublicSkillsquery, a cron job to update global stats, and UI to display the total count in the page header. Since theglobalStatstable was never properly initialized in the Convex deployment, thecountPublicSkillsquery caused a server error.globalStatstable definition fromconvex/schema.tscountPublicSkillsquery fromconvex/skills.tsupdateGlobalStatsInternalmutation and its hourly cron fromconvex/statsMaintenance.tsandconvex/crons.ts/skillspage UI to no longer display the total skills countuseQuerythat were added for the featureVerified this is a byte-for-byte clean revert — the resulting files are identical to the state before the original feature commit.
Confidence Score: 5/5
Last reviewed commit: 87dd677
Context used:
dashboard- AGENTS.md (source)