Skip to content

A share link's contract starts with its own name and its lifecycle's first event - #3

Merged
tbrooke merged 1 commit into
trustblocksfrom
fix/link-request
Sep 28, 2026
Merged

tbrooke merged 1 commit into
trustblocksfrom
fix/link-request

Conversation

@tbrooke

@tbrooke tbrooke commented Sep 28, 2026

Copy link
Copy Markdown

Found on the live site, opening the app's link for the Town Manager contract after #2. The header still named the previous sample, the pay request, and Simulate's request box held that sample's request, InspectionCertified. So sending it wasn't a Council approval.

A link now:

  • names the contract for its root type, for example ManagerEmployment;
  • starts with the event its lifecycle begins with, for example BoardApprovalRequest, or an empty request when there's no lifecycle;
  • carries over nothing from the previous sample's runs.

Tests: 310 of 310 unit tests pass. The e2e share-link test now checks the name and default request, then sends that request untouched; 4 of 4 pass.

🤖 Generated with Claude Code

…first event

Opening Trustblocks' link for the Town Manager contract kept the previous
sample's name in the header and its request (a pay request's
InspectionCertified) in Simulate. A link now names the contract for its root
type and starts with the event its lifecycle begins with, and nothing of the
previous sample's runs carries over.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@tbrooke
tbrooke merged commit da01df7 into trustblocks Sep 28, 2026
2 checks passed
@tbrooke
tbrooke deleted the fix/link-request branch September 28, 2026 22:08
tbrooke added a commit to TrustBlocks/trustblocks-contracts that referenced this pull request Sep 28, 2026
…eview (TrustBlocks/template-playground#3, #4) (#50)

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
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