Skip to content

Implement share button with URL feedback and improve login flow#2

Merged
canghai118 merged 3 commits into
linkcraftstudio:mainfrom
canghai118:main
May 21, 2026
Merged

Implement share button with URL feedback and improve login flow#2
canghai118 merged 3 commits into
linkcraftstudio:mainfrom
canghai118:main

Conversation

@canghai118
Copy link
Copy Markdown
Contributor

Checklist

  • Commits are signed off (git commit -s)
  • Tests pass locally (pnpm build)
  • If schema changed, migration was generated (pnpm generate:migration) and committed
  • If public API or env vars changed, README.md / .env.example / docs/deploy/* updated
  • No secrets, internal URLs, or team member names in the diff

Use vue-sonner for feedback and move global Toaster to top-center.
Share URL is built from the post slug so it stays correct when the
post is opened in a modal over a different page.
Reactions previously called the API immediately, which 401'd for
anonymous users and left a brief optimistic highlight that rolled
back with no explanation. Now toggle() opens the global LoginModal
before any API call, matching the post/comment login-guard pattern.
@canghai118 canghai118 merged commit ede94e3 into linkcraftstudio:main May 21, 2026
2 checks passed
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