about summary refs log tree commit diff
path: root/src/view/com/composer
Commit message (Collapse)AuthorAgeFilesLines
...
* Hackfix to composer focus on web (#2057)Paul Frazee2023-12-031-0/+10
|
* Hindi Internationalization (#1914)Ansh2023-11-201-4/+4
| | | | | | | | | | | | | | | | | | | | | | * 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-162-9/+8
|
* Remove deprecated models and mobx usage (react-query refactor) (#1934)Paul Frazee2023-11-164-15/+12
| | | | | | | | | | | | | | | | | | | | | * 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
* Some me model cleanup (#1928)Eric Bailey2023-11-161-3/+5
| | | | | | | | | | | | | | | | | * Replace me model in post dropdown btn * Replace delete account logic * Replace me model in bottom bar web * Replace me model in bottom bar * Replace me model in reply prompt * Better fallback * Fix reference * Fix bad ref in bottom bar
* Update post embed fetching to use new methods (#1916)Eric Bailey2023-11-151-3/+5
| | | | | * Update post embed fetching to use new methods * Use session agent
* Autocomplete updates (react-query refactor) (#1911)Paul Frazee2023-11-153-21/+23
| | | | | | | | | | | | | * Unify the autocomplete code; drop fuse * Persist autocomplete results while they're in progress * Commit lockfile * Use ReturnType helper --------- Co-authored-by: Eric Bailey <git@esb.lol>
* Fix openCamera, openCropped, lightbox model, and image model usages (#1908)Eric Bailey2023-11-142-7/+3
|
* Composer update (react-query refactor) (#1899)Paul Frazee2023-11-146-52/+53
| | | | | | | | | * Move composer state to a context * Rework composer to use RQ --------- Co-authored-by: Eric Bailey <git@esb.lol>
* Refactor feeds to use react-query (#1862)Paul Frazee2023-11-101-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Update to react-query v5 * Introduce post-feed react query * Add feed refresh behaviors * Only fetch feeds of visible pages * Implement polling for latest on feeds * Add moderation filtering to slices * Handle block errors * Update feed error messages * Remove old models * Replace simple-feed option with disable-tuner option * Add missing useMemo * Implement the mergefeed and fixes to polling * Correctly handle failed load more state * Improve error and empty state behaviors * Clearer naming
* Internationalization & localization (#1822)Ansh2023-11-098-24/+54
| | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Pull language methods into api context (#1847)Eric Bailey2023-11-082-7/+6
| | | | | * Pull language methods into api context * Rename for consistency
* Add modal state provider, replace usage except methods (#1833)Eric Bailey2023-11-084-18/+37
| | | | | | | | | | | | | * 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-1/+1
| | | | | | | in reminders (#1845) * Move alt-text-required into preferences * Fix bug: reminders now using new onboarding state
* Move language preferences to new persistence + context (#1837)Paul Frazee2023-11-082-10/+26
|
* Move require alt-text to new persistence + context (#1839)Paul Frazee2023-11-081-8/+6
|
* Fix accidental unwrapped strings (#1826)dan2023-11-061-2/+2
|
* Replace all logs with new loggerEric Bailey2023-11-042-4/+6
|
* Fix other error logs while I'm at itEric Bailey2023-11-042-4/+6
|
* Simplify loading emoji data (#1790)dan2023-11-012-2/+4
|
* Don't highlight tags in composer yet (#1665)Eric Bailey2023-10-101-10/+13
|
* Dont trim before posting (close #1621) (#1622)Paul Frazee2023-10-051-1/+1
| | | | | * Dont trim before posting (close #1621) * Tweak: do trim end
* Only listen to back button on android (#1623)Paul Frazee2023-10-051-0/+3
|
* Fix 1405 handle android back button in composer (#1446)Ansh2023-09-291-5/+19
| | | | | | | * handle android back button in composer * improve backHandler error handling * simplify composer onClose functionality
* Improve Device Detection For Better Responsiveness (#1512)Bryan Lee2023-09-282-5/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* fix link highlighting with mention present (#1544)Eric Bailey2023-09-272-80/+29
|
* Fix gallery image size (#1474)Sasha Mansurov2023-09-251-6/+36
| | | Fixes #1323
* Minor alignment fixPaul Frazee2023-09-211-1/+1
|
* Tune the treeview mode to use larger immediate-children (#1506)Paul Frazee2023-09-211-1/+1
| | | | | * Tune the treeview mode to use larger immediate-children * Fix display name alignment
* Even less intrusive status line for posts (#1496)Paul Frazee2023-09-201-41/+40
|
* Nicer 'post processing status' in the composer (#1472)Paul Frazee2023-09-191-10/+11
|
* make sure click events on the emoji picker don't bubble up to the mask (#1427)Ansh2023-09-111-15/+21
|
* composer: inhibit Cmd-Enter from inputting newline (#1421)uakci2023-09-111-0/+1
|
* Fix autocomplete avatar alignment (#1414)dan2023-09-081-1/+1
|
* Give explicit names to MobX observer components (#1413)dan2023-09-072-78/+76
| | | | | | | | | * 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-073-279/+272
| | | | | * Add eslint-plugin-react * Enable display name rule
* Updates to use dynamic/responsive styles on web (#1351)Paul Frazee2023-09-053-19/+33
| | | | | | | | | | | | | | | | | | | * 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
* Fix caret jumps for web composer (#1374)dan2023-09-051-5/+2
| | | | | * Fix caret jumps for web composer * Autofocus at the end on mount
* Fix #1328 fix emoji picker scroll on firefox and chrome (#1332)Ansh2023-08-301-16/+36
| | | | | | | | | * fix emoji picker scroll on firefox and chrome * click outside emoji picker to dismiss * dynamically position emoji picker * dynamically placing picker
* Replace web editor link behavior (#1319)Paul Frazee2023-08-282-26/+123
| | | | | * Replace web editor link behavior (close #1293) (close #1292) * Update link decorator to match rich text link detector
* [APP-836] Emoji picker for web (#1254)Ansh2023-08-233-12/+108
| | | | | | | | | | | | | | | | | | | | | | | | | * add emoji-mart package for emoji dropdown picker * remove emoji picker modal * load emoji mart data not as part of the main bundle * remove @emoji-mart/data * setup emoji insertion with events * get emoji data from local static assets * close emoji picker after one emoji has been inserted * Switch emoji picker trigger to an icon * Update emoji-mart-data.js * make grabbing emoji data work on more browsers --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com>
* Improve handling of unselecting languanges in composer language menu (#1093)Eric Bailey2023-08-232-19/+30
| | | | | | | | | | | | | | | | | | | | | | | * 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
* [APP-834] Allow @ing someone in post directly from profile (#1241)Ansh2023-08-222-2/+72
| | | | | * setup `initMention` for mobile * setup creating post with profile tagged on web
* Update the web composer textinput to an emitter (close #1193) (#1205)Paul Frazee2023-08-172-15/+26
| | | | | | | The tiptap useEditor() hook creates an awkward challenge for passing event handlers into its plugins and native events. By introducing a memoized editor, we should be able to shuttle events out of tiptap without retriggering the useEditor hook. The emitter can then change its registered handlers with each state update.
* A set of composer fixes (#1187)Paul Frazee2023-08-163-3/+11
| | | | | | | * Don't insert a newline on cmd+entrl (close #1173) * Don't linkify selected text on url-paste (close #1149) * Disable the adult content controls if there is no media on the post (close #1169)
* Shorten links in composer to reduce char usage (#1188)Paul Frazee2023-08-162-16/+24
| | | | | | | * Modify toShortUrl() to always include the full domain * Shorten links in the composer to save on characters * Apply some limits to the link card suggester
* Fix: close keyboard when viewing the self-label modal (#1153)Paul Frazee2023-08-111-3/+9
|
* Add self-labeling controls (#1141)Paul Frazee2023-08-092-65/+105
| | | | | | | | | | | | | | | * Add self-label modal * Use the shield-exclamation icon consistently on post moderation * Wire up self-labeling * Bump @atproto/api@0.6.0 * Bump @atproto/dev-env@^0.2.3 * Add e2e test for self-labeling * Fix types
* Simplify the after-post logic to avoid a UI bug (#1105)Paul Frazee2023-08-041-3/+2
|
* [APP-737] Accessible native dropdown menu (#988)Ansh2023-07-282-7/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * fix comments * add zeego package * get basic native dropdown working * add separator and icon components * refined native dropdown component * add android build properties to app.json * move `PostDropdownBtn` to its own component * fix selectors issue * move `PostDropdownBtn` to its own component * fix hitslop * fix post dropdown hitslop * fix android dropdown icons * move `UserAvatar.tsx` to native dropdown * use native dropdown in `ProfileHeader.tsx` * use native dropdown in `PostThreadItem.tsx` * use native dropdown in `UserBanner.tsx` * use native dropdown in `CustomFeed.tsx` * replace `testId` with `testID` (which is what is used everywhere) * move `Settings.tsx` to use native dropdown * create jest mocks for zeego * create jest mock for `zeego/dropdown-menu` * web styles for native dropdown * remove example native dropdown * adjust web styles * fix propagation * fix pressable in `Settings.tsx` * animate dropdown on web * add keyboard nav and hover styles * add hitslop to constants * add comments to NativeDropdown component * temporarily removed android icons * add testID to PostDropdownBtn * add testID back to all NativeDropdown button implementations * add postDropdownBtn testID * add testID to dropdown items * remove testID from dropdown menu item * refactor home-screen tests for native dropdown * refactor profile-screen tests for native dropdown * refactor thread-muting tests for native dropdown * refactor thread-screen tests for native dropdown * fix dropdown color for post dropdown button * remove icons from android dropdown menu * fix `create-account.test.ts` * fix `invite-codes.test.ts`