about summary refs log tree commit diff
path: root/src/view/screens/Settings.tsx
Commit message (Collapse)AuthorAgeFilesLines
* basic export repository link in settings (#2641)bnewbold2024-02-121-1023/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * basic export repository link in settings Absolutely no prior React experience, and limited TypeScript, so probably doing all kinds of things wrong! I tried to make it a download button instead of link but that didn't work. There is probably a safer way to construct the URL string. I think having the download open in the browser is reasonable, as opposed to an in-app save flow in mobile. But i'm not sure. * Remove appview proxy toggle * Move Settings screen to a subfolder * Add support for the download attribute on links in web * Rewrite ExportRepository modal using ALF * Mobile ui tweaks --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com>
* Update `blueskyweb.xyz` links to `bsky.social` (#2830)surfdude292024-02-121-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Update blogpost link to bsky.social and remove unnecessary localisation params at end of Play Store URL in README.md * Update privacy policy link to bsky.social in PrivacyPolicy.tsx * Update TOS link to bsky.social in TermsOfService.tsx * Update links to bsky.social in Links.tsx * Update links to bsky.social in SplashScreen.web.tsx * Update link to bsky.social in base.html * Update links to bsky.social in HomeLoggedOutCTA.tsx * Update links to bsky.social in RightNav.tsx * Update links to bsky.social in Drawer.tsx * Update DMCA link to bsky.social in Modal.tsx * Update link to copyright policy on bsky.social in CopyrightPolicy.tsx * Update link to bsky.social in CommunityGuidelines.tsx * Update links to bsky.social in Settings.tsx * Update to bsky.social in Typography.tsx
* Options for selecting dark theme, fix some white flashes when in dark mode ↵Hailey2024-02-061-4/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (#2722) * add dark theme selection to settings/schema * use `useThemePrefs` where needed * adjust theme providers to support various themes * update storybook * handle web themes * better themeing for web * dont show dark theme prefs when color mode is light * drop the inverted text change on oled theme * get the color mode inside of `useColorModeTheme` * use `ThemeName` type everywhere * typo * use dim/dark instead of dark/oled * prevent any fickers on web * fix styles * use `dim` for dark default * more cleanup * 🤔 * set system background color * ts
* password flow improvements (#2730)Hailey2024-02-061-4/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * add button to skip sending reset code * add validation to reset code * comments * update test id * consistency sneak in - everything capitalized * add change password button to settings * create a modal for password change * change password modal * remove unused styles * more improvements * improve layout * change done button color * add already have a code to modal * remove unused prop * icons, auto add dash * cleanup * better appearance on android * Remove log * Improve error messages and add specificity to function names --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com>
* Remove excess l10n related markups (#2544)Takayuki KUSANO2024-01-181-1/+1
| | | | | * Remove excess l10n related markups * One more correction pointed out by quiple
* fix: truncate long email address (#2493)Mary2024-01-121-2/+8
|
* (optional) In app browser (#2490)Paul Frazee2024-01-121-0/+18
| | | | | | | | | | | | | * add expo web browser + modal * add in app browser option to settings * don't show toggle on web * Tweak browser-choice UIs --------- Co-authored-by: Samuel Newman <mozzius@protonmail.com>
* Internationalize more strings (#2440)Stanislas Signoud2024-01-091-29/+31
| | | Co-authored-by: Ansh <anshnanda10@gmail.com>
* Mark more texts for localization (#2436)Noritada Kobayashi2024-01-101-13/+14
|
* Add stable gutters to settings pagePaul Frazee2024-01-081-1/+3
|
* Merge branch 'settings-web' of https://github.com/rahulyadav5524/social-app ↵Paul Frazee2024-01-081-3/+15
|\ | | | | | | into main
| * Fixed same issueRahul Yadav2024-01-071-1/+0
| |
| * Fixed import issueRahul Yadav2024-01-071-1/+1
| |
| * Removed unused codeRahul Yadav2024-01-071-2/+2
| |
| * Removed unused codeRahul Yadav2024-01-071-11/+1
| |
| * Fixed scroll issueRahul Yadav2024-01-071-10/+17
| |
| * fixed lint issueRahul Yadav2024-01-041-1/+1
| |
| * Show setting header in webRahul Yadav2023-12-301-5/+21
| |
* | Additional embed sources and external-media consent controls (#2424)Paul Frazee2024-01-041-0/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * add apple music embed * add vimeo embed * add logic for tenor and giphy embeds * keep it simple, use playerUri for images too * add gif embed player * lint, fix tests * remove links that can't produce a thumb * Revert "remove links that can't produce a thumb" This reverts commit 985b92b4e622db936bb0c79fdf324099b9c8fcd8. * Revert "Revert "remove links that can't produce a thumb"" This reverts commit 4895ded8b5120c4fc52b43ae85c9a01ea0b1a733. * Revert "Revert "Revert "remove links that can't produce a thumb""" This reverts commit 36d04b517ba5139e1639f2eda28d7f9aaa2dbfb6. * properly obtain giphy metadata regardless of used url * test fixes * adjust gif player * add all twitch embed types * support m.youtube links * few logic adjustments * adjust spotify player height * prefetch gif before showing * use memory-disk cache policy on gifs * use `disk` cachePolicy on ios - can't start/stop animation * support pause/play on web * onLoad fix * remove extra pressable, add accessibility, fix scale issues * improve size of embed * add settings * fix(?) settings * add source to embed player params * update tests * better naming and settings options * consent modal * fix test id * why is webstorm adding .tsx * web modal * simplify types * adjust snap points * remove unnecessary yt embed library. just use the webview always * remove now useless WebGifStill 😭 * more type cleanup * more type cleanup * combine parse and prefs check in one memo * improve dimensions of youtube shorts * oops didn't commit the test 🫥 * add shorts as separate embed type * fix up schema * shorts modal * hide gif details * support localized spotify embeds * more cleanup * improve look and accessibility of gif embeds * Update routing for the external embeds settings page * Update and simplify the external embed preferences screen * Update copy in embedconsent modal and add 'allow all' button --------- Co-authored-by: Hailey <me@haileyok.com>
* | Localize the option to make alt text mandatory (#2376)Noritada Kobayashi2024-01-031-1/+1
|/
* Add policy links to left nav and settings page (#2300)Paul Frazee2023-12-241-2/+21
|
* Improvements to persisted state migration (#2098)Eric Bailey2023-12-051-1/+1
| | | | | | | | | | | * Fix session email/emailConfirmed types, update usage for safer access * Handle fallback better, better errors * Better handling, add test * Add test for default data * Remove fallback, not needed, update logs
* Various fixes (#2053)Paul Frazee2023-11-301-7/+4
| | | | | * Fix invite code translations (plural api not availabe in ios) * Speed up the composer animation a smidge
* Merge remote-tracking branch 'upstream/main' into invite-code-warningSamuel Newman2023-11-301-10/+8
|\
| * Show logged out view when adding accounts (#2020)Ansh2023-11-291-10/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | * show logged out view when adding accounts * Handle existing signed-in account * Show which account is currently logged in * Fix showing toasts --------- Co-authored-by: Eric Bailey <git@esb.lol>
* | show informative message when token scope is wrongSamuel Newman2023-11-301-5/+15
|/
* PWI: Refactor Shell (#1989)dan2023-11-241-3/+2
| | | | | | | | | | | | | | | | | | | * Vendor createNativeStackNavigator for further tweaks * Completely disable withAuthRequired * Render LoggedOut for protected routes * Move web shell into the navigator * Simplify the logic * Add login modal * Delete withAuthRequired * Reset app state on session change * Move TS suppression
* Add dev-only button to clear storage (#1965)Eric Bailey2023-11-211-0/+33
| | | | | | | * Add dev-only button to clear storage * Add legacy storage clearing too * Use try/catch
* Hindi Internationalization (#1914)Ansh2023-11-201-2/+2
| | | | | | | | | | | | | | | | | | | | | | * get basic hindi support to work * get web app language switcher in * Refactor i18n implementation and remove unused code * add missing strings * add dropdowns and modals missing strings * complete all hindi translations * fix merge conflicts * fix legeacy persisted state * fix data in RecommendedFeeds * fix lint
* Move the current agent to a global and reset RQ queries on agent change (#1946)Paul Frazee2023-11-161-3/+10
|
* Remove deprecated models and mobx usage (react-query refactor) (#1934)Paul Frazee2023-11-161-587/+576
| | | | | | | | | | | | | | | | | | | | | * Update login page to use service query * Update modal to use session instead of store * Move image sizes cache off store * Update settings to no longer use store * Update link-meta fetch to use agent instead of rootstore * Remove deprecated resolveName() * Delete deprecated link-metas cache * Delete deprecated posts cache * Delete all remaining mobx models, including the root store * Strip out unused mobx observer wrappers
* Refactor invites modal (#1930)Eric Bailey2023-11-161-7/+9
| | | | | | | * Refactor invites modal * Replace in drawer * Delete stuff from me model
* Eric/preferences (#1873)Eric Bailey2023-11-121-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add initial preferences query, couple mutations * Remove unused * Clean up labels, migrate getModerationOpts * Add birth date handling * Migrate feed prefs * Migrate thread view prefs * Migrate homeFeed to use existing key name * Fix up saved feeds in response, no impl yet * Migrate saved feeds to new hooks * Clean up more of preferences * Fix PreferencesThreads load state * Fix modal dismissal * Small spacing fix --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com>
* Pare down session as much as possibleEric Bailey2023-11-101-1/+1
|
* Remove error states, just best effortEric Bailey2023-11-101-7/+4
|
* Follow conventions for query, use isDirty flag in session store to avoid ↵Eric Bailey2023-11-101-2/+2
| | | | unneccessary writes
* Web login/signup and shellEric Bailey2023-11-091-95/+141
|
* First pass at a session handler (#1850)Eric Bailey2023-11-091-3/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * First pass at a session handler * TODOs * Fix recursion * Couple more things * Add back resume session concept * Handle ready * Cleanup of initial loading states * Handle init failure * Cleanup * Remove account * Add updateCurrentAccount * Remove log * Cleanup * Integrate removeAccount * Add hasSession * Add to App.native, harden migration * Use effect to persist data
* Internationalization & localization (#1822)Ansh2023-11-091-47/+53
| | | | | | | | | | | | | | | | | | | | | | | | | * install and setup lingui * setup dynamic locale activation and async loading * first pass of automated replacement of text messages * add some more documentaton * fix nits * add `es` and `hi`locales for testing purposes * make accessibilityLabel localized * compile and extract new messages * fix merge conflicts * fix eslint warning * change instructions from sending email to opening PR * fix comments
* Add modal state provider, replace usage except methods (#1833)Eric Bailey2023-11-081-13/+12
| | | | | | | | | | | | | * Add modal state provider, replace usage except methods * Replace easy spots * Fix sticky spots * Replace final usages * Memorize context objects * Add more warnings
* State layer cleanup: move alt-text-required into preferences and fix a bug ↵Paul Frazee2023-11-081-2/+4
| | | | | | | in reminders (#1845) * Move alt-text-required into preferences * Fix bug: reminders now using new onboarding state
* Move onboarding state to new persistence + reducer context (#1835)Paul Frazee2023-11-081-2/+4
|
* Move require alt-text to new persistence + context (#1839)Paul Frazee2023-11-081-2/+6
|
* Add persistent state provider (#1830)Eric Bailey2023-11-071-7/+13
| | | | | | | | | | | | | | | | | | | | | | | | | * Add persistent state provider * Catch write error * Handle read errors, update error msgs * Fix lint * Don't provide initial state to loader * Remove colorMode from shell state * Idea: hook into persisted context from other files * Migrate settings to new hook * Rework persisted state to split individual contexts * Tweak persisted schema and validation --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com>
* Extract shell state into separate context (#1824)Eric Bailey2023-11-071-2/+4
| | | | | | | | | | | | | | | | | * WIP * Add shell state * Integrate new shell state for drawer and minimal shell mode * Replace isDrawerSwipeDisabled * Split shell state into separate contexts to avoid needless re-renders * Fix typo --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com>
* Replace all logs with new loggerEric Bailey2023-11-041-4/+4
|
* Fix other error logs while I'm at itEric Bailey2023-11-041-1/+1
|
* Revert "Fix invite codes flash on desktop, use loading placeholder (#1591)" ↵Paul Frazee2023-10-101-39/+31
| | | | | (#1656) This reverts commit 9278822088d212c9bee6a40a6a8b773bc482242d.
* Fix invite codes flash on desktop, use loading placeholder (#1591)Patroll2023-10-041-31/+39
| | | | | * Fix invite codes flashing untrue value before loaded * Add loading placeholder for right nav invites
* Account quick switch modal (#1567)Paul Frazee2023-09-281-59/+5
| | | | | | | | | | | | | | | * quick switch menu * Some small tweaks and fixes to the account switch modal * Factor out the account switcher logic to a hook * Add haptic feedback on account switcher open * Fix bad merge --------- Co-authored-by: Samuel Newman <mozzius@protonmail.com>