Skip to content

feat(settings): clearer community-sharing UX (drop "slug", live URL preview)#100

Merged
fleveque merged 1 commit into
mainfrom
feat/settings-sharing-clarity
Jun 14, 2026
Merged

feat(settings): clearer community-sharing UX (drop "slug", live URL preview)#100
fleveque merged 1 commit into
mainfrom
feat/settings-sharing-clarity

Conversation

@fleveque

Copy link
Copy Markdown
Owner

Founder feedback on the /settings community-sharing card: "slug" isn't a widely-known word, legacy showed your future URLs, and a checked "share my portfolio" box with an empty link field reads as broken (it shares nothing).

Changes

  • Drop the "slug" jargon → label is now "Your public link", with a plain-language blurb.
  • Live URL preview (← legacy) — as you type a link, the resulting …/p/<link> (and …/r/<link> when radar sharing is on) renders via verified routes, reflecting the actual toggle state.
  • Toggles hidden until a link is entered — instead of a checked "share" box sitting next to an empty link field. Hiding (not disabling) is deliberate: a disabled Phoenix checkbox still submits its hidden false companion, so typing a link could silently flip share_portfolio to false. Hiding keeps the field absent from params → the existing value is preserved.

Reactive via a new phx-change handler; the slug normalization is mirrored for the preview (the real normalize runs in the changeset on save).

Tests

mix precommit green — 400 passed. The sharing test now covers: empty link → toggles hidden + hint; typing a link → toggles + URL preview appear. ~4 new strings translated ×6.

🤖 Generated with Claude Code

…e URL preview)

Reworks the /settings community-sharing card per founder feedback:

  - "slug" -> "Your public link" (the word "slug" isn't widely known);
    the blurb is rewritten in plain language.
  - Live URL preview (← legacy): as you type a link, the resulting
    quantic.es/p/<link> (and /r/<link> when radar sharing is on) is shown
    via verified routes, reflecting the actual toggle state.
  - Toggles are hidden until a link is entered, instead of leaving a
    "share my portfolio" box checked while the link field is empty
    (which shared nothing and read as broken). Hiding — not disabling —
    avoids the Phoenix checkbox gotcha where a disabled box still submits
    its hidden "false" companion and would silently flip the flag.

Reactive via a new phx-change handler; ~4 strings translated x6.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@fleveque fleveque merged commit 67d5629 into main Jun 14, 2026
1 check passed
@fleveque fleveque deleted the feat/settings-sharing-clarity branch June 14, 2026 08:25
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