Skip to content

fix(site): make pending_models optional and update devMode check - #55

Merged
zwpaper merged 1 commit into
mainfrom
fix/pending-models
May 19, 2026
Merged

fix(site): make pending_models optional and update devMode check#55
zwpaper merged 1 commit into
mainfrom
fix/pending-models

Conversation

@zwpaper

@zwpaper zwpaper commented May 19, 2026

Copy link
Copy Markdown
Member

Summary

  • Cast zealtConfig to explicitly make pending_models optional, preventing TypeScript compilation errors and runtime issues when the field is omitted from config.json.
  • Update devMode logic to check process.env.NODE_ENV === "development" in addition to the URL query parameter for better developer experience.

Test plan

  • Verify that removing pending_models from .zealt/config.json does not break the build or cause runtime errors on the leaderboard and tasks pages.
  • Verify that devMode correctly defaults to true in development environments.

🤖 Generated with Pochi | Task

- Cast zealtConfig to explicitly make pending_models optional, preventing TS errors when the field is omitted from config.json.
- Update devMode logic to check process.env.NODE_ENV === "development" in addition to the URL query param.

🤖 Generated with [Pochi](https://getpochi.com) | [Task](https://app.getpochi.com/share/p-2039d4e2d1ed4e21bb3baa207943d5b6)

Co-Authored-By: Pochi <noreply@getpochi.com>
@github-actions

github-actions Bot commented May 19, 2026

Copy link
Copy Markdown
PR Preview Action v1.8.1
Preview removed because the pull request was closed.
2026-05-19 12:20 UTC

@zwpaper
zwpaper requested review from liangfung and wsxiaoys May 19, 2026 03:06
@zwpaper
zwpaper merged commit 9d893bd into main May 19, 2026
1 check passed
@zwpaper
zwpaper deleted the fix/pending-models branch May 19, 2026 12:19
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