about summary refs log tree commit diff
path: root/src/view/com/util/forms
Commit message (Collapse)AuthorAgeFilesLines
* Add context for toast messages (#7902)Minseo Lee2025-03-061-9/+13
| | | | | * add context for toast * add
* New reporting flow (#7832)Eric Bailey2025-02-281-5/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add option to align web dialogs to top * Add new wait util * Pipe through feed view to feed components * Reset unneeded change to main * Copy over fresh report dialog based on old * Hack in temp testing data * Swap in new dialog in all cases but chat * Cleanup * Add load and initial error state * Fill in states * Add copyright link * Handle single labeler case * Comment out debug code * Improve centering of type in circles * Open details if Other is selected * Remove debug code * Tweak colors * Bump SDK * Tweak Admonition for better x-platform styles * Add retry button * Add close button * Remove todo not covered in this PR * Translate Retry
* Mute account from post (#7712)Samuel Newman2025-02-211-1/+51
| | | | | * mute account from post * move options around
* Fix "log in", "log out" to "sign in", "sign out" (#7739)Minseo Lee2025-02-171-1/+1
| | | | | * log to sign * logged to signed
* Add dev mode for easy copying of at:// URIs and DIDs (#7723)Tom Sherman2025-02-131-1/+33
| | | | | | | | | | | * Add dev mode for easy copying at:// URIs and DIDs * Use storage API * Share text instead of URL * Cleanup persisted schema * Change translation msg
* Refine accessibilityHint (#7554)Minseo Lee2025-02-111-1/+3
| | | | | | | | | | | | | | | * `accessibilityHint` * accessibilityHint * Update Co-Authored-By: jason-me <mail@jason-hester.me> * Update LoginForm.tsx --------- Co-authored-by: jason-me <mail@jason-hester.me>
* Spring cleaning (#7640)Samuel Newman2025-02-033-285/+0
| | | | | | | | | | | | | | | * delete breakpoint layouts * delete empty file * delete legacy radio buttons * delete selectable button * rm radio buttons from debug * delete storage.ts * delete type-assertions.ts
* Date input improvements (#7639)Samuel Newman2025-02-032-181/+0
| | | | | | | | | * add max date, use modern field for birthday input * rm legacy date input * handle simplifying to simpleDateString internally * update jsdoc
* Don't add unused keydown listeners (#7218)dan2024-12-201-0/+4
|
* clean rn 0.76 upgrade (#6887)Hailey2024-12-063-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * package upgrades * upgrade system ui * update patches * rename patch * rm * use .set/.set * resolve yarnlock * fix accidentally removed package * fix use permissions hook * fix some type errors * type fixes * more tweaking * clean * Discard changes to src/screens/Onboarding/StepProfile/index.tsx * oops * fix splash * use ios/android in config * Fix tests * add back patch * add to rn patch * fullscreen? * Revert "add to rn patch" This reverts commit 4716d2c643a29fc77b871ca8555d8d78cb4ac427. * try this * test with revert * test * maybe this * fix config * Bump @react-native-picker/picker * Bump some packages * Rm unused * Update lockfile * Rename expo-notifications+0.29.8.patch.md to expo-notifications+0.29.10.patch.md * Update react-native+0.76.3.patch.md * Update react-native+0.76.3.patch.md * Inline splash configs Jumping around the file is annoying and makes it harder to understand how this is structured. * Start fixing Android splash * Downgrade compressor This version isn't building for me due to https://github.com/numandev1/react-native-compressor/issues/322. * Make Android splash empty for now * Work around a bug * Bump the compressor * Bump again * Include splash fixes * Try updating * No custom Android splash * Revert to using icons * welp * Fix sizes * Make sizing work * Bump size --------- Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* Fix avi button hitslops (#6662)dan2024-11-231-19/+5
| | | | | | | | | | | | | | | | | * Remove web hack from non-web file * Remove hitSlop on the wrong Pressable It is not doing anything useful. * Extend avi column to prevent hit rect clipping You can't click outside the parent on Android. * Bump pressed opacity to .8 * Slightly reduce avi button hitslops * Asymmetric hit slop
* Add ability to block account from post dropdown menu (#6091)rshigg2024-11-221-8/+48
| | | | | Co-authored-by: Hailey <me@haileyok.com> Co-authored-by: Hailey <hailey@blueskyweb.xyz>
* Render post menu items lazily (take two) (#6473)dan2024-11-192-672/+741
| | | | | | | | | | | | | | | * Revert "Revert "Render dropdown menu items lazily (#6437)" (#6470)" This reverts commit 0b38c77faa71dbc777d3d0162b86cb3e8695ff99. * Lazily initialize menu items * Split in two files * Make it work on mobile This is wonky because our useMenuDialog abstraction only has `isOpen` on web. I couldn't figure out a way to make it work xplat so I'm just tracking it myself manually. * Fix typo in comment
* Leverage jsx transform to remove unnecessary react imports and update eslint ↵Paul Coroneos2024-11-196-6/+3
| | | | | | | | | config (#6516) * update eslint config with jsx runtime * leverage jsx transform to remove unnecessary react imports and update eslint config * run yarn lint --fix to remove eslint disables related to react/prop-types that is now disabled
* Revert "Render dropdown menu items lazily (#6437)" (#6470)dan2024-11-171-309/+278
| | | This reverts commit e9fe8d90ef5e9ca2ed4bc9649794c5288fb1232d.
* Render dropdown menu items lazily (#6437)dan2024-11-171-278/+309
|
* use IAB for translate (#6421)Samuel Newman2024-11-161-1/+1
|
* Thread composer UI (#6050)dan2024-11-011-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Basic adding of posts * Switch active post on focus * Conditionally show plus button * Insert posts midthread * Track active/inactive post * Delete posts in a thread * Focus after deletion * Tweak empty post detection * Mix height for active only * Move toolbar with post on web * Fix footer positioning * Post All button * Fix reply to positioning * Improve memoization * Improve memoization for clearVideo * Remove unnecessary argument * Add some manual memoization to fix re-renders * Scroll to bottom on add new * Fix opacity on Android * Add backdrop * Fix videos * Check alt for video too * Clear pending publish on error * Fork alt message by type * Separate placeholder for next posts * Limit hitslop to avoid clashes
* Sort imports (#6009)dan2024-10-294-10/+12
| | | | | * Mark import sort/order/style rules as error * npm run lint -- --fix
* Translate some missing strings via global i18n instance (#5740)Samuel Newman2024-10-141-4/+4
|
* Present in-app browser as sheet (#5718)Samuel Newman2024-10-111-1/+1
| | | | | | | * use page sheet presentation * move to its own file rather than sitting in prefs * whoops, missed one
* Downgrade Radix packages for type compat (#5653)Eric Bailey2024-10-081-4/+5
|
* [Sheets] [Pt. 1] Root PR (#5557)Hailey2024-10-041-7/+9
| | | | | | | Co-authored-by: Samuel Newman <mozzius@protonmail.com> Co-authored-by: Eric Bailey <git@esb.lol> Co-authored-by: dan <dan.abramov@gmail.com> Co-authored-by: Hailey <me@haileyok.com>
* 🪵📌 (#5594)Samuel Newman2024-10-031-0/+2
|
* ALF text input for generic search input (#5511)Samuel Newman2024-09-301-124/+0
| | | | | | | | | | | | | | | | | | | | | * alf text input for generic search input * clearer ref naming * Adjust props and definition * Migrate props * Migrate props * Migrate props * Replace on search screen * rm old props --------- Co-authored-by: Eric Bailey <git@esb.lol>
* Pinned posts (#5055)Samuel Newman2024-09-281-11/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * add to dropdown menu * use normal profile mutation hook * add pin as reason * request pins * shadow update * rm logs * get prev pinned from getProfile * fix toasts * invalidate after appview ready * don't mutate params * rm log * use checkCommited rather than manual whenAppViewReady * move to mutation * even more optimistic optimistic update * allow pins in `posts_and_author_threads` * update @atproto/api * add reasonPin type * fix strange type error in unrelated query * another missing type
* [Neue] Font weights (#5442)Eric Bailey2024-09-205-48/+50
| | | | | | | * Align all font weights * Only load necessary fonts * Also comment out from hook
* Localize dates, counts (#5027)Eric Bailey2024-08-291-16/+12
| | | | | | | | | | | | | | | | | | | | | | | * refactor: consistent localized formatting * refactor: localized date time * refactor: localize relative time with strings * chore: fix typo from copy-paste * Clean up useTimeAgo * Remove old ago * Const * Reuse * Prettier --------- Co-authored-by: Mary <git@mary.my.id>
* Optimistic hidden replies (#4977)Eric Bailey2024-08-231-7/+5
|
* Detached QPs and hidden replies (#4878)Eric Bailey2024-08-211-19/+243
| | | | Co-authored-by: Hailey <me@haileyok.com>
* Use appropriate icons for toasts (#4803)Samuel Newman2024-07-231-3/+6
| | | | | | | | | | | | | * use appropriate icons for toasts * use info for session expiry * tweak size * message -> safeMessage --------- Co-authored-by: Samuel Newman <10959775+mozzius@users.noreply.github.com>
* Add dismiss backdrop to native dropdowns (#4711)dan2024-07-011-65/+98
|
* Server-side thread mutes (#4518)Samuel Newman2024-06-181-19/+26
| | | | | | | | | | | * update atproto/api * move thread mutes to server side * rm log * move muted threads provider to inside did key * use map instead of object
* Don't show warning when sharing your own post in PWI opt-out mode (#4495)Hailey2024-06-121-1/+4
|
* rip out native translate (#4482)Samuel Newman2024-06-111-15/+2
|
* [🐴] Option to share via chat in post dropdown (#4231)Samuel Newman2024-05-311-3/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * add send via chat button to post dropdown (cherry picked from commit d8458c0bc344f993266f7bc7e325d47e40619648) * let usePostQuery take uris with DIDs (cherry picked from commit 16b577ce749fd07e1d5f8461e8ca71c5b874a936) * add embed preview in composer (cherry picked from commit 795ceb98d55b6a3ab5b83187a582f9656d71db69) * rm log (cherry picked from commit 374d6b8869459f08d8442a3a47d67149e8d9ddd4) * remove params properly, or at least as close to (cherry picked from commit c20e0062c2ca4d9c2b28324eee5e713a1a3ab251) * show images in preview (cherry picked from commit 5bb617a3ce00f67bfc79784b2f81ef8dcb5bfc25) * Register embed immediately (cherry picked from commit ee120d5438a2c91c8980288665576d6a29b4c7e7) * Add hover to match embeds (cherry picked from commit 5297a5b06e499f46a9f6da510124610005db2448) * Update post dropdown copy (cherry picked from commit bc7e9f6a4303926a53c5c889f1f1b136faf20491) * Embed preview style tweaks (cherry picked from commit 9e3ccb0f25ac2f3ce6af538bb29112a3e96e01b1) * use hydrated posts from API and just use postembed component (cherry picked from commit cc0b84db87ca812d76cc69f46170ae84cfdde4ef) * fix type error (cherry picked from commit 9c49b940e1248e8a7c3b64190c5cb20750043619) * undo needless export (cherry picked from commit 1186701c997c50c0b29a809637cb9bc061b8c0a0) * fix overflow (cherry picked from commit 8868d5075062d0199c8ef6946fabde27e46ea378) --------- Co-authored-by: Eric Bailey <git@esb.lol>
* Composer - fix modals, and other tweaks (#4298)Samuel Newman2024-05-311-17/+18
| | | | | | | | | | | | | | | | | | | * fix depreciated import * add animations to old dropdown * wrap modals in fullwindowoverlay * move errors inside header * add background to bottom bar and stop overlap * nest dialogs on android * fix android (wrap in gesturehandlerrootview) * make borders all the same color * revert threadgate button back to solid
* put dropdown in fullscreenoverlay on iOS (#4284)Samuel Newman2024-05-301-9/+19
|
* Use ALF for post controls (#3400)Samuel Newman2024-05-301-7/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * alf the repost dropdown on web + import icons * alf like icon * convert other post controls * add missing padding to share button * refine buttons and use better icons * revert buttonicon changes * remove ButtonIcon and ButtonText from repost dialog * use 15px font size when not big * reduce size and use contrast_25 * add hover state to logged out view * add `userSelect: 'none'` to buttons * use width rather than height * fix quote close behaviour * prettier * Fix Esc on repost * Use new icons for placeholder * Fix placeholder --------- Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* Native translation expo module (#4098)Samuel Newman2024-05-281-4/+17
| | | | | | | | | | | | | | | | | | | | | | * translation expo module * add `onClose` and `onReplacementAction` * rm onReplacementAction * make all props published * make translation api available globally w/o wrapper (#4110) * conditionally import the translation module * only use native translation if language is probably supported * open native translation via dropdown menu --------- Co-authored-by: Hailey <me@haileyok.com> Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* [🐴] Settings screen (#3830)Samuel Newman2024-05-142-4/+6
| | | | | | | | | * create settings screen + api * update api package * use putrecord API with validate false * create new RadioGroup component
* Implement FeedFeedback API (#3498)Paul Frazee2024-05-071-2/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Implement onViewableItemsChanged on List.web.tsx * Introduce onItemSeen to List API * Add FeedFeedback tracker * Add clickthrough interaction tracking * Add engagement interaction tracking * Reduce duplicate sends, introduce a flushAndReset to be triggered on refreshes, and modify the api design a bit * Wire up SDK types and feedContext * Avoid needless function allocations * Fix schema usage * Add show more / show less buttons * Fix minor rendering issue on mobile menu * Wire up sendInteractions() * Fix logic error * Fix: it's item not uri * Update 'seen' to mean 3 seconds on-screen with some significant portion visible * Fix non-reactive debounce * Move methods out * Use a WeakSet for deduping * Reset timeout * 3 -> 2 seconds * Oopsie * Throttle instead * Fix divider * Remove explicit flush calls * Rm unused --------- Co-authored-by: dan <dan.abramov@gmail.com>
* Assorted clipclop fixes (#3853)Samuel Newman2024-05-041-2/+2
| | | | | | | | | | | | | | | * empty state for new chat dialog * use terniary * dark mode pending state * copy message text option * fix service url input (scrollview ftw) * whoops, fix equality * slightly reduce horizontal message padding
* Fix dropdown immediately closing on Enter (#3745)dan2024-04-281-63/+87
| | | | | | | * Move dropdown content into separate component * Fix dropdown with keyboard * No-op is sufficient
* Hide translate/copy text options when `!no-unauthenticated` (#3573)Samuel Newman2024-04-161-17/+21
| | | | | | | | | * hide translate/copy text options when no-pwi * only do this for no-unauth * always show if logged in * swap order of OR
* [Embeds] "Embed post" post dropdown option (#3513)Samuel Newman2024-04-131-1/+30
| | | | | | | | | | | | | | | | | | | | | | | | | * add embed option to post dropdown menu * put embed post button behind a gate * increase line height in dialog * add gate to gate name union * hide embed button if PWI optout * Ungate embed button * Escape HTML, align implementations * Make dialog conditionally rendered * Memoize EmbedDialog * Render dialog lazily --------- Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* Remove report post option from PWI (#3510)Paul Frazee2024-04-121-21/+25
|
* migrate to `expo-clipboard` (#3419)Hailey2024-04-041-2/+2
| | | | | * replace package * replace usages
* Add share warning to big share button in post ctrl (#3367)Samuel Newman2024-04-031-26/+26
|
* Merge branch 'web-fix-fonts-and-image-box' of ↵Paul Frazee2024-03-191-1/+1
|\ | | | | | | https://github.com/alexkuz/social-app into alexkuz-web-fix-fonts-and-image-box