Skip to content

Fix D1 schema editor tab not tracking unsaved changes - #14629

Merged
dario-piotrowicz merged 3 commits into
mainfrom
dario/local-explorer-leave-guard
Jul 10, 2026
Merged

Fix D1 schema editor tab not tracking unsaved changes#14629
dario-piotrowicz merged 3 commits into
mainfrom
dario/local-explorer-leave-guard

Conversation

@dario-piotrowicz

@dario-piotrowicz dario-piotrowicz commented Jul 9, 2026

Copy link
Copy Markdown
Member

I noticed that the D1 schema editor tab (edit table / create table) doesn't get marked as dirty when there are unsaved schema changes. This PR fixes this issue.

Before:
https://github.com/user-attachments/assets/aee1aa40-3b2c-4bd6-aa0c-3f7f3455d998

After:
https://github.com/user-attachments/assets/7cf16c87-2f72-4e81-9803-9fdf3b18176d


  • Tests
    • Tests included/updated
    • Automated tests not possible - manual testing has been completed as follows:
      • I've create a worker with a local KV binding and a D1 as well
      • run wrangler dev and (as shown in the videos above)
        • gone to the local explorer
        • made changes to a D1 table schema
        • noticed that before the tab is not marked as dirty and it is after
        • (note: as far as I can tell this feature is not e2e tested not even for the other tabs)
    • Additional testing not necessary because:
  • Public documentation
    • Cloudflare docs PR(s):
    • Documentation not necessary because: bugfix

A picture of a cute animal (not mandatory, but encouraged)


Open in Devin Review

@changeset-bot

changeset-bot Bot commented Jul 9, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: d1bb396

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@cloudflare/local-explorer-ui Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@workers-devprod

workers-devprod commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Codeowners approval required for this PR:

  • ✅ @cloudflare/wrangler
Show detailed file reviewers

@ask-bonk

ask-bonk Bot commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

UnknownError: ProviderInitError

github run

@ask-bonk

ask-bonk Bot commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

@dario-piotrowicz Bonk workflow failed. Check the logs for details.

View workflow run · To retry, trigger Bonk again.

@github-actions

github-actions Bot commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

✅ All changesets look good

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Open in Devin Review

@pkg-pr-new

pkg-pr-new Bot commented Jul 9, 2026

Copy link
Copy Markdown
@cloudflare/autoconfig

npm i https://pkg.pr.new/@cloudflare/autoconfig@14629

create-cloudflare

npm i https://pkg.pr.new/create-cloudflare@14629

@cloudflare/deploy-helpers

npm i https://pkg.pr.new/@cloudflare/deploy-helpers@14629

@cloudflare/kv-asset-handler

npm i https://pkg.pr.new/@cloudflare/kv-asset-handler@14629

miniflare

npm i https://pkg.pr.new/miniflare@14629

@cloudflare/pages-shared

npm i https://pkg.pr.new/@cloudflare/pages-shared@14629

@cloudflare/unenv-preset

npm i https://pkg.pr.new/@cloudflare/unenv-preset@14629

@cloudflare/vite-plugin

npm i https://pkg.pr.new/@cloudflare/vite-plugin@14629

@cloudflare/vitest-pool-workers

npm i https://pkg.pr.new/@cloudflare/vitest-pool-workers@14629

@cloudflare/workers-auth

npm i https://pkg.pr.new/@cloudflare/workers-auth@14629

@cloudflare/workers-editor-shared

npm i https://pkg.pr.new/@cloudflare/workers-editor-shared@14629

@cloudflare/workers-utils

npm i https://pkg.pr.new/@cloudflare/workers-utils@14629

wrangler

npm i https://pkg.pr.new/wrangler@14629

commit: d1bb396

ask-bonk[bot]

This comment was marked as resolved.

@ask-bonk

This comment was marked as resolved.

@NuroDev NuroDev left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM ✅
Might be worth also upstreaming this to the dash

@workers-devprod workers-devprod left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Codeowners reviews satisfied

@github-project-automation github-project-automation Bot moved this from Untriaged to Approved in workers-sdk Jul 10, 2026
@dario-piotrowicz
dario-piotrowicz merged commit c5647dd into main Jul 10, 2026
64 checks passed
@dario-piotrowicz
dario-piotrowicz deleted the dario/local-explorer-leave-guard branch July 10, 2026 09:49
@github-project-automation github-project-automation Bot moved this from Approved to Done in workers-sdk Jul 10, 2026
tpmmorris pushed a commit to tpmmorris/workers-sdk that referenced this pull request Jul 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants