Skip to content

feat(site): use localStorage for devMode instead of searchParams - #57

Merged
zwpaper merged 1 commit into
mainfrom
chore/dev-mode
May 21, 2026
Merged

feat(site): use localStorage for devMode instead of searchParams#57
zwpaper merged 1 commit into
mainfrom
chore/dev-mode

Conversation

@zwpaper

@zwpaper zwpaper commented May 21, 2026

Copy link
Copy Markdown
Member

Summary

  • Replaced URL query parameter ?dev=true with a localStorage.getItem('devMode') === 'true' check
  • This allows developers to persistently enable dev mode across all pages without needing to manually append the query parameter to the URL each time

Test plan

  1. Open the browser DevTools Console
  2. Run localStorage.setItem('devMode', 'true')
  3. Verify that dev mode features (like viewing pending models) are enabled
  4. Run localStorage.removeItem('devMode') to disable it

🤖 Generated with Pochi | Task

Replaces the `?dev=true` URL query parameter check with a `localStorage.getItem('devMode') === 'true'` check. This allows developers to persistently enable dev mode across all pages without needing to manually add the query parameter to the URL each time.

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

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

github-actions Bot commented May 21, 2026

Copy link
Copy Markdown
PR Preview Action v1.8.1
Preview removed because the pull request was closed.
2026-05-21 11:01 UTC

@zwpaper
zwpaper requested review from icycodes and liangfung May 21, 2026 03:33
@zwpaper
zwpaper merged commit 1681486 into main May 21, 2026
1 check passed
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