Skip to content

feat(cli): add Share with your team to local previews - #146

Merged
scott merged 1 commit into
mainfrom
feat/145-share-signup-button
Oct 6, 2026
Merged

scott merged 1 commit into
mainfrom
feat/145-share-signup-button

Conversation

@scott

@scott scott commented Oct 6, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Unsigned local previews show a Share with your team button in the top chrome. It asks for an email on the page and runs the same signup as gander signup --email: create a signup intent, open the signup form, poll until the token exists, and save it in ~/.gander/config.json.
  • The button is on unsigned one-shot previews, foreground --watch, and runner /w/<id> pages. Signed-up previews and -outfile omit it.
  • The page and the signup JSON never receive api_token. The runner signup route keeps the existing watch-token check.
  • Unsigned one-shot previews are served on 127.0.0.1 by a short-lived helper, because a file:// page exits before signup can save the token. The helper exits after it has been idle for about as long as the signup poll.

Related Issue

Closes #145

Testing

  • go test ./...
  • go vet ./...
  • mandoc -Tlint man/man1/gander.1

Notes

Uploading the open file (gander share) is out of scope. This button only starts signup.

Unsigned one-shot, foreground watch, and runner previews show a signup
button that runs the same flow as gander signup --email. The API token
is saved in the CLI config and is not returned to the page.

Closes #145
@scott
scott merged commit 40e081c into main Oct 6, 2026
1 check 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.

feat: add a "Share with your team" signup button to the CLI viewer

1 participant