Skip to content

Add "Enjoying Sumbee? Share Now" CTA and viral share sheet to the main panel#9

Merged
wynnwu merged 11 commits into
remote-devfrom
claude/add-share-button-main-panel
Jun 22, 2026
Merged

Add "Enjoying Sumbee? Share Now" CTA and viral share sheet to the main panel#9
wynnwu merged 11 commits into
remote-devfrom
claude/add-share-button-main-panel

Conversation

@Claude

@Claude Claude AI commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

Adds a top-right "Enjoying Sumbee? [Share Now]" call to action in the main panel header (across from the brand) that opens a share modal for spreading the word, following viral-marketing best practices.

Header CTA

  • MainPanelView header gains a right-aligned "Enjoying Sumbee?" label + accent Share Now button that sets state.showShare.
  • Presented as a .sheet from ContentView.

Share modal (Views/Share/ShareSheet.swift)

Ordered by friction:

  • Copy link to the canonical repo URL (state.copyShareLink()NSPasteboard, with a confirming toast).
  • Post on X / Email a friend one-click deep links opened via NSWorkspace.
  • Native macOS share via an NSSharingServicePicker bridge (SharePickerButton, kept as a dedicated AppKit control per the repo's interop learnings — Messages/AirDrop/Mail/etc.).
  • A selectable, ready-to-post message.

Share copy (Models/ShareContent.swift)

  • Pure value type: canonical https://github.com/wynnwu/Sumbee URL, benefit-led message/tweet/email strings, and X/mailto link builders. Message ends with the link so it survives truncation. No analytics/tracking — stays local-first.

State / tests / spec

  • AppState: showShare flag + copyShareLink().
  • ShareContentTests: canonical URL, link-ends-message, tweet length (<280), and X/mailto query encoding.
  • Documented as FR-046 in specs/001-transcript-summarizer/spec.md.
// Share copy is pure + testable; the link is last so clipped posts still work.
public static let message =
    "I've been using Sumbee to turn transcripts & YouTube videos into clean Markdown notes on my Mac - local-first, your files, no lock-in. Free & open source: \(repoURLString)"

Note: swift build/swift test and CodeQL can't run in the Linux CI sandbox (the app imports AppKit). All new/edited files pass swiftc -parse, and AppKit APIs match signatures already used in the repo; please run swift build/swift test on macOS to confirm.

Agent-Logs-Url: https://github.com/wynnwu/Sumbee/sessions/f60b2f21-e101-426d-8403-39ce75114043

Co-authored-by: wynnwu <1041852+wynnwu@users.noreply.github.com>
Co-Authored-By: Claude <noreply@anthropic.com>

Agent-Logs-Url: https://github.com/wynnwu/Sumbee/sessions/8783059c-f8a6-476f-8081-e1e496ff7570

Co-authored-by: wynnwu <1041852+wynnwu@users.noreply.github.com>
@github-actions

github-actions Bot commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

Sumbee screenshots

Captured from 1489459. Also available as a downloadable artifact.

Main panel

Main panel

Settings - Generation

Settings - Generation

Styles editor

Styles editor

Output

Output

Co-Authored-By: Claude <noreply@anthropic.com>

Agent-Logs-Url: https://github.com/wynnwu/Sumbee/sessions/08d87e1f-c11c-446a-b0c0-84b6f481d6db

Co-authored-by: wynnwu <1041852+wynnwu@users.noreply.github.com>
Co-Authored-By: Claude <noreply@anthropic.com>

Agent-Logs-Url: https://github.com/wynnwu/Sumbee/sessions/5ec4426b-d166-48c6-902f-186726bee7df

Co-authored-by: wynnwu <1041852+wynnwu@users.noreply.github.com>
@wynnwu wynnwu marked this pull request as ready for review June 22, 2026 13:10
Claude AI and others added 2 commits June 22, 2026 13:21
Co-Authored-By: Claude <noreply@anthropic.com>

Agent-Logs-Url: https://github.com/wynnwu/Sumbee/sessions/56be9111-96dd-4070-a13f-d997112fe19b

Co-authored-by: wynnwu <1041852+wynnwu@users.noreply.github.com>
Co-Authored-By: Claude <noreply@anthropic.com>

Agent-Logs-Url: https://github.com/wynnwu/Sumbee/sessions/56be9111-96dd-4070-a13f-d997112fe19b

Co-authored-by: wynnwu <1041852+wynnwu@users.noreply.github.com>
…-checks

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@wynnwu wynnwu merged commit 2e8d101 into remote-dev Jun 22, 2026
1 check passed
@wynnwu wynnwu deleted the claude/add-share-button-main-panel branch June 22, 2026 13:52
wynnwu added a commit that referenced this pull request Jun 22, 2026
Adds an "Enjoying Sumbee?" prompt + Share button in the main panel that opens a share sheet (copy message, X/Twitter, email). Merged from PR #9 (claude/add-share-button-main-panel via remote-dev). Includes fixes: ShareContentTests throws signatures, and an explicit Font base in AccentButtonStyle's compact ternary.

Co-Authored-By: Claude Opus 4.8 (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.

2 participants