Skip to content

MistDemo: zone-aware writes (CRUD + assets) #454

Description

@leogdion

Summary

Extend MistDemo web create/update/delete (and asset upload) to honor a zone selection, building on ZoneSelector from #438 / #453.

Library conveniences already accept zoneID: ZoneID? = nil on createRecord / updateRecord / deleteRecord — the remaining gap is the demo request/backend/browser stack.

Scope

  1. Reuse ZoneSelector on WebRequests.Create / Update / Delete (flat zoneName/zoneOwner wire format, same decode rules as query).
  2. Thread through WebBackend / CloudKitService+WebBackend / mocks / WebServer+CRUD.
  3. AssetsUploadAsset must carry the same zone; create-in-custom-zone after a default-zone upload fails at CloudKit.
  4. Browser UX — prefer reusing the query toolbar zone for writes (label clearly) over a second set of inputs; CloudKit JS writes use per-record record.zoneID (saveRecords / deleteRecords), which is a different shape from query.

Out of scope

Depends on

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions