about summary refs log tree commit diff
path: root/src/components/dialogs
Commit message (Collapse)AuthorAgeFilesLines
...
* Merge remote-tracking branch 'origin/ten-milly-android-save' into ten-millyEric Bailey2024-09-121-5/+38
|\ | | | | | | | | * origin/ten-milly-android-save: On android, change ten milly nux secondary action to save instead of share
| * On android, change ten milly nux secondary action to save instead of sharePaul Frazee2024-09-121-5/+38
| |
* | Let display name wrapEric Bailey2024-09-121-2/+1
| |
* | Fallback snoozingEric Bailey2024-09-121-2/+24
|/
* Handle display nameEric Bailey2024-09-121-1/+9
|
* Handle overflow of bottom textEric Bailey2024-09-121-5/+13
|
* Ensure dialog shows for all accounts without snoozingEric Bailey2024-09-121-3/+18
|
* Add gateEric Bailey2024-09-121-4/+20
|
* CopyEric Bailey2024-09-121-3/+3
|
* Protect against other exit methods, protect against multiple fetchesEric Bailey2024-09-112-13/+16
|
* Protect against 3p PDSs and bad responsesEric Bailey2024-09-111-4/+11
|
* Dev helpers, string cleanupEric Bailey2024-09-113-7/+26
|
* Fix some nux typesEric Bailey2024-09-111-3/+6
|
* Refactor, integrate nux, snoozingEric Bailey2024-09-113-109/+169
|
* RenameEric Bailey2024-09-116-7/+7
|
* Hook up dataEric Bailey2024-09-111-4/+74
|
* Don't open for logged out usersEric Bailey2024-09-112-6/+14
|
* CopyEric Bailey2024-09-111-16/+6
|
* Add badges, clean up spacingEric Bailey2024-09-115-13/+126
|
* Disable aviEric Bailey2024-09-111-43/+84
|
* WIP, avi not working on webEric Bailey2024-09-111-176/+247
|
* Progress on desktoipEric Bailey2024-09-111-43/+287
|
* WIPEric Bailey2024-09-112-0/+153
|
* Localize dates, counts (#5027)Eric Bailey2024-08-291-3/+3
| | | | | | | | | | | | | | | | | | | | | | | * 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>
* Detached QPs and hidden replies (#4878)Eric Bailey2024-08-212-217/+538
| | | | Co-authored-by: Hailey <me@haileyok.com>
* Improve styles (#4916)Minseo Lee2024-08-111-1/+3
| | | | Co-authored-by: Hailey <me@haileyok.com>
* Fix `occurred` typo (#4919)Shubh Porwal2024-08-111-1/+1
| | | | Co-authored-by: Hailey <hailey@blueskyweb.xyz>
* Update muted words dialog with `expiresAt` and `actorTarget` (#4801)Eric Bailey2024-08-011-90/+283
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * WIP not working dropdown * Update MutedWords dialog * Add i18n formatDistance * Comments * Handle text wrapping * Update label copy Co-authored-by: Hailey <me@haileyok.com> * Fix alignment * Improve translation output * Revert toggle changes * Better types for useFormatDistance * Tweaks * Integrate new sdk version into TagMenu * Use ampersand Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com> * Bump SDK --------- Co-authored-by: Hailey <me@haileyok.com> Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com>
* Boolean filter improvement alternative: TS upgrade (#4840)Dmitrii Kartashev2024-07-261-1/+3
| | | | | * upgrade typescript and use new feature * fix: typing error
* [ALF] Theme & palette cleanup (#4769)Eric Bailey2024-07-112-8/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Invert primary scale * Invert negative palette * Replace theme specific styles in Toggle * Remove theme specific colors from Button, improves secondary solid on dark mode * TextField * Remove from MessageItem * Threadgate editor * IconCircle * Muted words * Generate themes from hues * Cleanup * Deprecate more values, fix circular import * Invert positive too, hardly use * Button tweaks, some theme diffs * Match disabled state for negative button * Fix unread noty bg
* Fix typo in ThreadgateEditor.tsx (#4636)surfdude292024-06-251-1/+1
|
* Composer - replace threadgate modal with alf dialog (#4329)Samuel Newman2024-06-242-0/+219
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * replace threadgate modal with alf dialog * add accessibility to selectable * add aria * hide spinner once fetched * add `hasOpenDialogs` value to context * remove state * Rm loading state * Update the threadgate dialog button theming * Factor out the threadgate editor and add editing to post views * Mark messages for localization * Use colors from mute dialog * Remove unnecessary effect * Reset state on dialog dismiss * Clearer CTA * Fix bugs * Scope keyboard fix * Rm getAreDialogsActive (no longer needed) --------- Co-authored-by: Dan Abramov <dan.abramov@gmail.com> Co-authored-by: Paul Frazee <pfrazee@gmail.com>
* Only enable keyboard controller when necessary (#4483)Samuel Newman2024-06-111-2/+0
| | | | | | | | | | | | | | | | | | | * Only enable keyboard controller when necessary * make it screen only * rm keyboard padding * rm keyboardpadding file * revert using keyboard controller in composer * remove styles.outer (unnecessary for revert) * continue to use keyboard padding in the report dialog for dms --------- Co-authored-by: Hailey <me@haileyok.com>
* Native `formSheet` for GIF select on iOS (#4328)Samuel Newman2024-06-043-49/+324
| | | | | | | | | * native formsheet for gif select * trigger confirm discard if have gif * give modal a background color * fix web top bar - unrelated but I cba to make a separate PR
* Add padding to dialogs when keyboard is open on Android (#4182)Hailey2024-05-231-0/+2
| | | | | | | | | * add keyboard padding to android dialogs * missing `keyboardDismissMode` for `ScrollableInner` * add to `MutedWords` * add to `LabelsOnMe`
* [🐴] Show if user can be messaged in new chat search (#4021)Samuel Newman2024-05-151-0/+1
| | | | | | | | | | | | | * show if user can be messaged * allow 2 lines in handle field due to new text * cannot -> can't * rework canBeMessaged logic and move to new file --------- Co-authored-by: Eric Bailey <git@esb.lol>
* Alt text for gifs (#3876)Samuel Newman2024-05-061-2/+2
| | | | | | | | | | | | | | | | | | | | | * add alt text dialog * multiline alt text input * add pressable alt text badge * rename `ALT: ` to `Alt text: ` to avoid including old bad ones * reuse alt text reminder * reuse alt text reminder in gallery * add alt text reminder in the dialog itself * autofocus text input * reorder components to fix tab order * fix close btn position
* Improve account switcher pending state (#3827)dan2024-05-021-2/+2
| | | | | | | | | * Protect against races * Reduce UI jank when switching accounts * Add pending state to selected account * Disable presses while pending
* [Session] Extract selectAccount out (#3812)dan2024-05-021-1/+2
|
* use keyboardDismissMode rather than onScrollBeginDrag (#3767)Samuel Newman2024-04-301-2/+2
|
* [GIFs] Remove consent flow (#3652)dan2024-04-231-89/+4
| | | | | * Remove tenor from settings * Remove consent flow
* [GIFs] Replace GIPHY with Tenor (#3651)Samuel Newman2024-04-221-38/+27
| | | | | | | | | * replace GIPHY with Tenor * remove "directly" wording * replace GIPHY wording * remove log
* properly close the switch account dialog (#3558)Hailey2024-04-221-8/+9
| | | | | | | | | | | | | | | | | | | * properly close the switch account dialog * use it for switch account as well * ensure dialog is closed on unmount Revert "properly check if the ref is null" This reverts commit 8f563808a5d39389b0bc47a31e73cd147d1e7e8b. properly check if the ref is null ensure dialog is closed on unmount * Revert "ensure dialog is closed on unmount" This reverts commit a48548fd8ed53ae3eb08a0e05bb89f641c112b95.
* [GIFs] Reset scroll on query change (#3642)Samuel Newman2024-04-221-5/+12
| | | | | | | * scroll list to top on query change * dismiss keyboard on swipe list * don't need an effect
* [GIFs] Add error boundary to GIF picker (#3643)Samuel Newman2024-04-221-1/+36
| | | | | | | | | | | | | * error boundary on gif picker * add dialog.close for web users * fix size of dialog on web * Safer coercion --------- Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* fix onEndReached issue by forcing flatlist to scroll (#3623)Samuel Newman2024-04-191-1/+5
|
* Throttle gif search by 500ms (#3622)Samuel Newman2024-04-191-8/+3
| | | | | | | | | * debounce gif search by 300ms * Throttle it instead --------- Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* Add GIF select to composer (#3600)Samuel Newman2024-04-191-0/+360
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * create dialog with flatlist in it * use alf for composer photos/camera/gif buttons * add gif icons * focus textinput on gif dialog close * add giphy API + gif grid * web support * add consent confirmation * track gif select * desktop web consent styles * use InlineLinkText instead of Link * add error/loading state * hide sideborders on web * disable composer buttons where necessary * skip cardyb and set thumbnail directly * switch legacy analytics to statsig * remove autoplay prop * disable photo/gif buttons if external media is present * memoize listmaybeplaceholder * fix pagination * don't set `value` of TextInput, clear via ref * remove console.log * close modal if press escape * pass alt text in the description * Fix typo * Rm dialog --------- Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* add ref_src (#3532)Samuel Newman2024-04-131-2/+6
|
* [Embeds] "Embed post" post dropdown option (#3513)Samuel Newman2024-04-131-0/+191
| | | | | | | | | | | | | | | | | | | | | | | | | * 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>