Commit Graph

235 Commits

Author SHA1 Message Date
Eric Bailey 61f88ae2b0 inherit outline tags of parent post 2023-10-21 12:14:37 -04:00
Eric Bailey a5d4cfda9b consolidate defs 2023-10-19 16:51:29 -04:00
Eric Bailey d93587aeef don't backfill tags, close dropdown on tab 2023-10-19 16:45:22 -04:00
Eric Bailey 2d62a4942a centralize regex 2023-10-19 16:28:12 -04:00
Eric Bailey 72bb3ccfac handle focus on tag buttons 2023-10-19 16:16:03 -04:00
Eric Bailey 911a5a5638 strip trailing punctuation 2023-10-19 14:07:36 -04:00
Eric Bailey 35dd618d83 use separate models, commit once 2023-10-13 14:52:58 -05:00
Eric Bailey 7ee34b6a12 swap in new button 2023-10-13 14:44:41 -05:00
Eric Bailey a5f37eb37f move TagInput into dir, use button on desktop 2023-10-13 14:38:48 -05:00
Eric Bailey 0dbf8f1b18 use gorhom bottom sheet 2023-10-12 17:52:17 -05:00
Eric Bailey b1843533eb let's roll with custom bottom sheet for now 2023-10-12 17:41:54 -05:00
Eric Bailey 8aeb364014 remove selected item code 2023-10-12 15:36:07 -05:00
Eric Bailey d7f7cb3128 mobile tags input and autocomplete 2023-10-12 15:04:22 -05:00
Eric Bailey 9f9f877ce1 add desktop TagInput autocomplete 2023-10-11 15:09:37 -05:00
Eric Bailey bfdf41a4c3 cleaning 2023-10-10 20:08:37 -05:00
Eric Bailey 078ba4cd35 add tag highlighting back 2023-10-10 19:59:16 -05:00
Eric Bailey 7a97c3c345 Merge remote-tracking branch 'origin' into eric/app-864-integrate-post-tags-into-app
* origin: (21 commits)
  resolve fork of zeed-dom (#1663)
  Port remaining lightbox code to Reanimated (#1669)
  Update testrunner to use new dev-env [WIP] (#1575)
  Fix MobX crash for Android lightbox (#1668)
  Change lightbox to use Pager (#1666)
  make empty feed required (#1667)
  Only warn on links to bsky.app if it represents itself as another url (#1662)
  Fix keyboard double pad issue in email change & verify modals (#1664)
  Don't highlight tags in composer yet (#1665)
  Fix: fetch follows on desktop search for typeahead (#1660)
  Remove duplicate modal container (#1661)
  Drive-by lightbox refactors (#1659)
  Only prompt users once to verify email (according to local storage) close #1657 (#1658)
  Revert "Fix invite codes flash on desktop, use loading placeholder (#1591)" (#1656)
  Refactor iOS lightbox to Reanimated (#1645)
  Bump package.json to 1.52
  Remove unnecessary opacity logic (#1646)
  Fix typo in image.ts (#1638)
  fix typo README.md (#1631)
  Typo fix in README.md: "small about" -> "small amount" (#1639)
  ...
2023-10-10 19:30:55 -05:00
Eric Bailey b33f70fcac remove unused TagDecorator 2023-10-10 18:59:16 -05:00
Eric Bailey 1dc38a8fd9 add a test 2023-10-10 18:49:15 -05:00
Eric Bailey b3bae78e30 enforce length in TagInput 2023-10-10 15:47:38 -05:00
Eric Bailey fc28fc639f Don't highlight tags in composer yet (#1665) 2023-10-10 13:44:27 -07:00
Eric Bailey 41c4b4af7b enforce 64 characters 2023-10-10 15:19:39 -05:00
Eric Bailey f97f1302cf fix added space on commit 2023-10-10 12:44:22 -05:00
Eric Bailey 50335206bf generally consistent across web/ios 2023-10-09 17:53:23 -05:00
Eric Bailey d9fc2775c4 pretty good spot with styles 2023-10-09 15:38:40 -05:00
Eric Bailey 3637676778 use consistent styling in the composer 2023-10-09 15:11:43 -05:00
Eric Bailey 48f15b7361 install fork of suggestion plugin 2023-10-09 14:58:47 -05:00
Eric Bailey 7bef0eca6a add tags autocomplete 2023-10-09 13:36:01 -05:00
Eric Bailey 6c25ca8181 Merge remote-tracking branch 'origin/main' into eric/app-864-integrate-post-tags-into-app
* origin/main: (40 commits)
  1.52
  README: tweaks to high-level context (#1625)
  Fix stuck lightbox header after double tap (#1627)
  Fix: add padding to the spinner bottom while loading threads (#1626)
  Rewrite Android lightbox (#1624)
  Dont trim before posting (close #1621) (#1622)
  Only listen to back button on android (#1623)
  Improve typeahead search with inclusion of followed users (temporary solution) (#1612)
  Slightly smaller highlighted post text (#1608)
  Pull upstream bugfixes to bottom-sheet (#1606)
  Fix animations and gestures getting reset on state updates in the lightbox (#1618)
  Remove unused lightbox options (#1616)
  Profile UI tweaks (#1607)
  Fix invite codes flash on desktop, use loading placeholder (#1591)
  Update to react-native@0.72.5 (#1599)
  Fixed a typo on the onboarding recommended screen (#1604)
  Onboarding & feed fixes (#1602)
  Improve time to content in the search page (#1603)
  Fix a potential reference error in bottombarweb (#1600)
  Fix: only use scroll-positioning control on thread when looking at replies (#1587)
  ...
2023-10-09 11:02:43 -05:00
Paul Frazee 8366fe2c4a Dont trim before posting (close #1621) (#1622)
* Dont trim before posting (close #1621)

* Tweak: do trim end
2023-10-05 19:08:20 -07:00
Paul Frazee b74a0e0fe2 Only listen to back button on android (#1623) 2023-10-05 18:29:41 -07:00
Ansh 04fda0f142 Fix 1405 handle android back button in composer (#1446)
* handle android back button in composer

* improve backHandler error handling

* simplify composer onClose functionality
2023-09-29 07:49:59 +04:00
Bryan Lee 2aae37d67b Improve Device Detection For Better Responsiveness (#1512)
* 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>
2023-09-28 12:47:34 -07:00
Eric Bailey 804a393ff8 move Tag, update styling 2023-09-28 11:00:50 -05:00
Eric Bailey e0c614bfb7 split tags on spaces in TagInput 2023-09-28 10:31:47 -05:00
Eric Bailey 564a654cc2 mobile autocomplete 2023-09-27 21:22:47 -05:00
Eric Bailey 4d367d6805 update graphemes 2023-09-27 20:51:44 -05:00
Eric Bailey 4868d4864b stick tag input to bottom 2023-09-27 20:43:54 -05:00
Eric Bailey 6f6a34cc99 clean up tags autocomplete desktop 2023-09-27 20:30:43 -05:00
Eric Bailey a07542a607 WIP autocomplete
(cherry picked from commit 3098ebb482)
2023-09-27 19:17:33 -05:00
Eric Bailey 4b47380cdf fix node walking 2023-09-27 15:51:27 -05:00
Eric Bailey f5e793d8c3 fix tag index parsing 2023-09-27 15:51:27 -05:00
Eric Bailey 0648f02f66 remove half-baked onBlur handling 2023-09-27 15:51:27 -05:00
Eric Bailey f404f52939 clean up handling 2023-09-27 15:51:27 -05:00
Eric Bailey 66181679a6 integrate into native text input 2023-09-27 15:51:27 -05:00
Eric Bailey 9668102ceb fix helper text 2023-09-27 15:51:27 -05:00
Eric Bailey dab793193e made 8 default max 2023-09-27 15:51:27 -05:00
Eric Bailey 44694abbe6 improve hash handling 2023-09-27 15:51:27 -05:00
Eric Bailey bfdbf43119 link out tags 2023-09-27 15:51:27 -05:00
Eric Bailey 439940532f add tags view 2023-09-27 15:51:27 -05:00