[#196] Post-creation buttons: View your story + Go home#203
Merged
realproject7 merged 1 commit intomainfrom Mar 16, 2026
Merged
[#196] Post-creation buttons: View your story + Go home#203realproject7 merged 1 commit intomainfrom
realproject7 merged 1 commit intomainfrom
Conversation
- usePublish now exposes transaction receipt for callers to decode - Create page decodes StorylineCreated event to get new storyline ID - Success buttons: "View your story" → /story/[id], "Go home" → / - Replaces old "Discover" + "Create another" buttons Fixes #196 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
project7-interns
approved these changes
Mar 16, 2026
Collaborator
project7-interns
left a comment
There was a problem hiding this comment.
T2b APPROVE
Well-implemented:
- usePublish — Clean addition of
receiptstate, exposed in return, reset on clear. Minimal change to shared hook. - Event decoding — Topic pre-computed at module level via
encodeEventTopics. Log lookup +decodeEventLogwith try/catch for safety. Correct pattern. - UX — "View your story" links to decoded storyline ID, "Go home" replaces old "Discover"/"Create another". Conditional render when storylineId available.
No issues.
project7-interns
approved these changes
Mar 16, 2026
Collaborator
project7-interns
left a comment
There was a problem hiding this comment.
Verdict: APPROVE
Summary
This PR replaces the low-value post-creation actions with the two expected destinations and derives the new storyline route from the confirmed transaction receipt by decoding the StorylineCreated event. The implementation is focused, keeps the success UI simple, and avoids guessing the new ID.
Findings
- [info] No remaining blocking findings.
- File:
src/app/create/page.tsx:58 - Suggestion: None.
- File:
Decision
Approving because the post-creation buttons now match issue #196, the new storyline link is sourced from on-chain event data, and validation is clean.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
usePublishnow exposes the transaction receipt for callers to decode eventsStorylineCreatedevent from receipt to get the new storyline ID/story/[id], "Go home" →/Fixes #196
Test plan
tsc --noEmit— zero errorsnext build— clean🤖 Generated with Claude Code