Skip to content

feat(app): open social links in app and validate post limits - #31

Merged
looechao merged 1 commit into
mainfrom
codex/in-app-links-composer
Nov 9, 2026
Merged

looechao merged 1 commit into
mainfrom
codex/in-app-links-composer

Conversation

@looechao

@looechao looechao commented Nov 9, 2026

Copy link
Copy Markdown
Owner

Mention and hashtag links now open reusable columns in the originating tab instead of sending readers to a browser. Known mentions use instance-local account IDs; other marked mentions resolve through the logged-in instance. Hashtag timelines support refresh and pagination, and ordinary links retain their browser behavior.

The composer reads the instance’s posting limit, displays used/allowed characters, and prevents over-limit submissions. Counting handles grapheme clusters, reserved URL lengths, and remote mentions. Failed limit requests offer Retry, server validation explanations remain visible, and successful publication closes the composer after draft cleanup. Failed submissions keep the editor and draft intact.

Validation:

  • git diff --check, gofmt -l ., and go vet ./...
  • go tool mygo i18n check and go tool mygo generate (11 languages)
  • go test -race ./...
  • CERAMIC_SCREENSHOTS=1 go test -run TestNative ./..., with light/dark and compact screenshots inspected
  • ./scripts/build.sh (macOS arm64 app and DMG)

Regression coverage includes successful dismissal, failed-draft preservation, instance-limit retry/session isolation, Unicode and URL counting boundaries, hostile advertised URL lengths, originating-column navigation, profile resolution, pagination, and late results after column closure. The existing typesetting dependency is now direct for Unicode grapheme segmentation; no dependency version changes.

Closes #24
Closes #29

@looechao
looechao merged commit 2644587 into main Nov 9, 2026
1 check passed
@looechao
looechao deleted the codex/in-app-links-composer branch November 11, 2026 05:55
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.

Improve post composer validation and close the dialog after successful posting Open @ mentions and hashtags within the app

1 participant