Skip to content

Prevent securing a system until a completed site has a marketId - #52

Open
Fenris159 wants to merge 4 commits into
njthomson:mainfrom
Fenris159:lock-architect-until-complete-site
Open

Prevent securing a system until a completed site has a marketId#52
Fenris159 wants to merge 4 commits into
njthomson:mainfrom
Fenris159:lock-architect-until-complete-site

Conversation

@Fenris159

@Fenris159 Fenris159 commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

Architect can still be claimed and saved as before.

The Secured toggle is gated until the system page has at least one site that is both complete and has a marketId:

  • Before that: the control shows Secured with a strikethrough and is disabled. Save does not send open. Exclusive edit is not applied yet, so others can still make changes.
  • After that: the toggle is available and defaults to Secured. Save only sends open if the user changed it. Switching to Open sticks on later saves — nothing flips it back automatically.

Tooltip: Only architects with a completed, linked site can Secure exclusive edit access

Helper text while gated: Complete your 1st site to secure this system

Uses the sites already loaded on the system page — no extra API call.

@Fenris159 Fenris159 changed the title Prevent claiming architect until a completed site has a marketId Prevent securing a system until a completed site has a marketId Aug 21, 2026
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