Restructured settings into sub-pages, exposed 10+ new API-backed controls, added push notification management.#29
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Added
Composables (
@repo/api)useAccountPreferences()— optimistic wrapper forPATCH /accounts/update_credentials(locked, discoverable, hideCollections, bot, source.language/privacy/sensitive). PatchescurrentUsersynchronously, rolls back on server error.usePushSubscription()— full Web Push lifecycle: browser permission, VAPID key from instance, PushManager subscribe/unsubscribe, MastodonPOST/PUT/DELETE /push/subscription, per-type alert toggles.Components (
@repo/ui)<SettingsSection>— titled group header with optional description.<SettingsNavItem>— navigation row (internal route / external link / button) with optional badge and chevron/↗ icon.Pages
/settings/privacy— posting defaults (visibility, language, sensitive), sensitive content display (media visibility moved from appearance), account visibility (locked, discoverable, hideCollections, bot), content links (blocked/muted)./settings/notifications— push notification master toggle, 7 per-type alert toggles (mention, follow, reblog, favourite, poll, status, update), browser permission flow./settings/appearance— theme, autoplay GIFs, reduce motion.Infrastructure
public/push-sw.js— service worker for push event handling + notification click.plugins/unregister-sw.client.tsto register the push SW instead of unregistering all SWs.Changed
/settingsindex — stripped to profile card + account status + category nav (Privacy & safety, Notifications, Appearance) + logout. Removed Early Access and About sections (already accessible from nav).New settings exposed (previously unavailable)
lockeddiscoverablehideCollectionsbotsource.languagealerts.mentionalerts.followalerts.reblogalerts.favouritealerts.pollalerts.statusalerts.update