about summary refs log tree commit diff
path: root/src/view/com/util
Commit message (Collapse)AuthorAgeFilesLines
...
* Warn the user on links that dont match their text (#1573)Paul Frazee2023-10-022-2/+24
| | | | | | | | | | | | | | | | | | | * Add link warning modal when URLs do not match their text * Simplify the misleading link case for clarity * Fix typecheck * fix dark mode * Give a stronger visual indication of the root domain in the link warning * More rigorous URL mismatch logic * Remove debug --------- Co-authored-by: Ansh Nanda <anshnanda10@gmail.com>
* Improve Device Detection For Better Responsiveness (#1512)Bryan Lee2023-09-282-58/+74
| | | | | | | | | | | | | | | | | | | | | | | | | | * Refactor `useOnMainScroll` function to use responsive device detection - Replace static `isDesktopWeb` with `useWebMediaQueries` hook to enable dynamic device type detection. - Create `useDeviceLimits` hook to dynamically determine `DY_LIMIT_UP` and `DY_LIMIT_DOWN` based on device type. - Update dependency arrays for the `useCallback` hooks to include new dynamic variables. * Refactor styles to be responsive to device type - Create `useStyles` hook that generates styles object based on device type detected from `useWebMediaQueries`. - Replace static styles object with dynamic styles object generated from `useStyles` hook in components. - This allows `paddingLeft` values for 'ul' and 'ol' styles to adapt to device type dynamically. - This allows `maxWidth` values for 'metaItem'' styles to adapt to device type dynamically. * Remove `isDesktopWeb` in favor of `useWebMediaQueries().isDesktop` * Refactor `SplashScreen` component for responsive design * Revision based on review results * Fix isNative check --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com>
* Account quick switch modal (#1567)Paul Frazee2023-09-281-0/+46
| | | | | | | | | | | | | | | * 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>
* Email verification and change flows (#1560)Paul Frazee2023-09-281-2/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * fix 'Reposted by' text overflow * Add email verification flow * Implement change email flow * Add verify email reminder on load * Bump @atproto/api@0.6.20 * Trim the inputs * Accessibility fixes * Fix typo * Fix: include the day in the sharding check * Update auto behaviors * Update yarn.lock * Temporary error message --------- Co-authored-by: Eric Bailey <git@esb.lol>
* Merge pull request #1553 from mozzius/refreshed-web-repost-dropdownEric Bailey2023-09-271-37/+54
|\ | | | | Use refreshed dropdown style for repost/quote post dropdown
| * replace dropdown componentSamuel Newman2023-09-271-37/+54
| |
* | Improve image cropping on android and introduce aspect ratio field (#1525)Paul Frazee2023-09-272-3/+10
|/ | | | | * Fix image cropping on android * Store and use aspect ratio field in post images (close #1392)
* :lipstick: Remove report option on my own post (#1537)Foysal Ahamed2023-09-261-1/+1
|
* Accessibility fixes: add missing labels, dynamically scale home header (#1516)Paul Frazee2023-09-223-3/+13
| | | | | * Improve labels * Dynanically adjust home header to account for font scaling
* Switch the date input web version to the date-input web control (#1510)Paul Frazee2023-09-211-47/+30
| | | | | * Switch the date input web version to the date-input web control * Fix types
* Dont reposition load latest button on desktop (#1508)Paul Frazee2023-09-211-1/+2
|
* Prefilter the mergefeed to ensure a better mix of following and custom feeds ↵Paul Frazee2023-09-201-1/+3
| | | | | | | | | | | | | | | (#1498) * Prefilter the mergefeed to ensure a better mix of following and custom feeds * Test suite improvements & tests for the mergefeed (#1499) * Disable invite codes test for now * Update test sim to latest iphone * Introduce TestCtrls driver * Add mergefeed tests
* Improve consistency of floating button positioning (#1501)Paul Frazee2023-09-202-26/+17
|
* Tune the treeview UI a bit more (#1494)Paul Frazee2023-09-201-9/+15
|
* Onboarding recommended follows (#1457)Ansh2023-09-201-11/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * upgrade api package * add RecommendedFollows as a step in onboarding * add list of recommended follows from suggested actor model * remove dead code * hoist suggestedActors into onboarding model * add comments * load more suggested follows on follow * styling changes * add animation * tweak animations * adjust styling slightly * adjust styles on mobile * styling improvements for web * fix text alignment in RecommendedFollows * dedupe inserted suggestions * fix animation duration * Minor spacing tweak --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com> and Eric Bailey <git@esb.lol>
* :bug: Handle middle mouse click on feed list items (#1469)Foysal Ahamed2023-09-181-2/+3
| | | | | | | | | | | | | | | * :bug: Handle middle mouse click on feed list items * :recycle: Refactor the event listener and turn it into a dedicated hook for web * :broom: Cleanup unnecessary Link changes * Fix import * Create native version of useAuxClick --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com>
* Feed UI update working branch [WIP] (#1420)Paul Frazee2023-09-188-183/+362
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Feeds navigation on right side of desktop (#1403) * Remove home feed header on desktop * Add feeds to right sidebar * Add simple non-moving header to desktop * Improve loading state of custom feed header * Remove log Co-authored-by: Eric Bailey <git@esb.lol> * Remove dead comment --------- Co-authored-by: Eric Bailey <git@esb.lol> * Redesign feeds tab (#1439) * consolidate saved feeds and discover into one screen * Add hoverStyle behavior to <Link> * More UI work on SavedFeeds * Replace satellite icon with a hashtag * Tune My Feeds mobile ui * Handle no results in my feeds * Remove old DiscoverFeeds screen * Remove multifeed * Remove DiscoverFeeds from router * Improve loading placeholders * Small fixes * Fix types * Fix overflow issue on firefox * Add icons prompting to open feeds --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com> * Merge feed prototype [WIP] (#1398) * POC WIP for the mergefeed * Add feed API wrapper and move mergefeed into it * Show feed source in mergefeed * Add lodash.random dep * Improve mergefeed sampling and reliability * Tune source ui element * Improve mergefeed edge condition handling * Remove in-place update of feeds for performance * Fix link on native * Fix bad ref * Improve variety in mergefeed sampling * Fix types * Fix rebase error * Add missing source field (got dropped in merge) * Update find more link * Simplify the right hand feeds nav * Bring back load latest button on desktop & unify impl * Add 'From' to source * Add simple headers to desktop home & notifications * Fix thread view jumping around horizontally * Add unread indicators to desktop headers * Add home feed preference for enabling the mergefeed * Add a preference for showing replies among followed users only (#1448) * Add a preference for showing replies among followed users only * Simplify the reply filter UI * Fix typo * Simplified custom feed header * Add soft reset to custom feed screen * Drop all the in-post translate links except when expanded (#1455) * Update mobile feed settings links to match desktop * Fixes to feeds screen loading states * Bolder active state of feeds tab on mobile web * Fix dark mode issue --------- Co-authored-by: Eric Bailey <git@esb.lol> Co-authored-by: Ansh <anshnanda10@gmail.com>
* Readd hitslop to post controls (#1461)Paul Frazee2023-09-152-3/+8
| | | | | * Readd hitslop to post controls * Bigger hitslop on bigger controls
* wrap impersonation text (#1447)Ansh2023-09-131-5/+5
|
* Remove accessibilityRole=button on dropdown mask, it causes issues on ↵Paul Frazee2023-09-111-1/+0
| | | | firefox (#1436)
* 💅 disallow overflow outside of post content area(s) (#1395)Micah Maligie2023-09-071-2/+5
|
* Give explicit names to MobX observer components (#1413)dan2023-09-076-106/+107
| | | | | | | | | * Consider observer(...) as components * Add display names to MobX observers * Temporarily suppress nested components * Suppress new false positives for react/prop-types
* Add ESLint React plugin (#1412)dan2023-09-075-125/+120
| | | | | * Add eslint-plugin-react * Enable display name rule
* Fix scrollbar gutters on web (#1401)Paul Frazee2023-09-071-8/+12
| | | | | * Fix scrollbar gutters on web * Fix typecheck
* Upgrade to Expo 49 (#1331)Eric Bailey2023-09-055-5/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * update to expo 49 * update expo-camera to fix console erorrs * run doctor again * fix ts errors * patch @sentry/react-native Getting `cannot read property 'ignoreLogs' of undefined` in this file. Ironically, this may be a cyclical imports problem. LogBox isn't enabled in production, so this patch should only affect dev/test. * fix type error * reinstall newer reanimated * pin expo-dev-client to fix reanimated dev-build issue * fix type errors, fix bad conflict res * Fix to notifications badge z-index on desktop --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com>
* Updates to use dynamic/responsive styles on web (#1351)Paul Frazee2023-09-0511-72/+131
| | | | | | | | | | | | | | | | | | | * Move most responsive queries to the hook * Fix invalid CSS value * Fixes to tablet render of post thread * Fix overflow issues on web * Fix search header on tablet * Fix QP margin in web composer * Fix: only apply double gutter once to flatlist (close #1368) * Fix styles on discover feeds header * Fix double discover links in multifeed
* Improved mute alerting (#1355)Paul Frazee2023-09-011-5/+1
| | | | | | | * Use a simpler mute alert when viewing a post by a muted user * Dont mute self-QPs when we're overriding a mute * Fix types
* Improvements to UI in web logged-out views (#1341)Paul Frazee2023-08-301-0/+102
| | | | | | | * Add LoggedOutLayout for desktop/tablet web * Avoid screen flash in the transition to onboarding * Fix comment
* fix types for breakpoints on mobile (#1342)Ansh2023-08-301-3/+6
|
* Merge branch 'ansh/app-812-add-custom-feed-discovery-to-onboarding' into mainPaul Frazee2023-08-305-30/+166
|\
| * Simplify the RecommendedFeeds with breakpoint componentsPaul Frazee2023-08-302-0/+28
| |
| * Fix types and remove dead codePaul Frazee2023-08-301-1/+1
| |
| * More fixes to mobile onboardPaul Frazee2023-08-301-3/+2
| |
| * Fix onboarding on mobile webPaul Frazee2023-08-301-0/+22
| |
| * Tweak dark mode on webPaul Frazee2023-08-301-3/+10
| |
| * Tweaks to mobile onboardPaul Frazee2023-08-291-2/+2
| |
| * Rework web onboardingPaul Frazee2023-08-291-0/+62
| |
| * fix onboarding on webAnsh Nanda2023-08-291-28/+46
| |
* | Test fixesPaul Frazee2023-08-281-0/+1
| |
* | Make posts behave more like links (#1316)Eric Bailey2023-08-281-5/+11
|/ | | | | | | | | | | | | | | | | * use cursor for post cards * ignore type error * handle meta keys on non native links (cherry picked from commit daccafea0b7ab21af6572767e496d20f32ead353) * remove cursor on non-post notifications, not quite right * Simplify link handling --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com>
* Eslint updates (#1281)Eric Bailey2023-08-252-2/+4
| | | | | | | | | | | | | | | | | | * eslint: Update eslintrc * eslint: Strings must use singlequote quotes * eslint: expected { after if-condition * eslint: update warnings * a little cleanup * remove conflicted file --------- Co-authored-by: Josh Soref <2119212+jsoref@users.noreply.github.com> Co-authored-by: Paul Frazee <pfrazee@gmail.com>
* Use `Pressable` for most links/embeds (#1181)Eric Bailey2023-08-245-23/+12
| | | | | * delay press on all links * use Pressable for all accessible links
* Fixes #1252 fix alt text setting description toggle (#1261)Ansh2023-08-231-2/+2
| | | | | * make toggle border width slightly larger * change copy
* Improve handling of unselecting languanges in composer language menu (#1093)Eric Bailey2023-08-231-0/+3
| | | | | | | | | | | | | | | | | | | | | | | * allow toggling off/on multiple from main composer lang menu * fix dropdown styles for long labels * udpate model to use new string field * update language UI * save langs to history on submit * remove edit * clean up use new fields * default to deviceLocales * fix default valu * feedback * use radio icon
* add title attr to text text links (#1228)Eric Bailey2023-08-223-2/+17
| | | | | | | | | | | | | | | * add title attr to text text links * Revert "add title attr to text text links" This reverts commit c028cd184efd3b2788d8f46134eecf521e5d7b07. * use css tooltips * add to expanded post state * handle theming * add to bskyweb
* Fix android postmeta alignmentPaul Frazee2023-08-171-1/+1
|
* Tune link card font sizes on desktopPaul Frazee2023-08-161-2/+2
|
* Tune up the link card to look nicer, show more info, and layout horizontally ↵Paul Frazee2023-08-161-16/+35
| | | | on web to user space more nicely (#1190)
* Fix tap target size of post dropdown menus (#1180)Paul Frazee2023-08-155-83/+28
|
* Remove view selector offsetting (close #1174) (#1183)Paul Frazee2023-08-151-5/+3
| | | | | * Remove view selector offsetting (close #1174) * Remove horizontal scroll indicator in view selector