about summary refs log tree commit diff
path: root/src/view/com/composer
Commit message (Collapse)AuthorAgeFilesLines
...
* 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`
* [APP-782] Support invalid handles correctly (#1049)Paul Frazee2023-07-271-1/+3
| | | | | | | | | | | | | | | | | | | * Update profile link construction to support handle.invalid * Update list links to support using handles * Use did for isMe check to ensure invalid handles dont distort the check * Shift the red (error) colors away from the pink spectrum * Add ThemedText helper component * Add sanitizedHandle() helper to render invalid handles well * Fix regression: only show avatar in PostMeta when needed * Restore the color of likes * Remove users with invalid handles from default autosuggests
* Bump react-native-paste-input; remove hack (#1051)Logan Rosen2023-07-251-15/+5
|
* #929 Wrap `PasteInput` updates in a `setTimeout` (#1033)Eric Bailey2023-07-191-39/+51
| | | | | * wrap PasteInput updates in a setTimeout * just wrap the whole callback
* [APP-735] Post language improvements (#982)Paul Frazee2023-07-063-17/+72
| | | | | | | | | | | | | | | | | * Fix composer character-counter bouncing around UI elements * Fix composer toolbar padding when keyboard is dismissed on iOS * Use the full name of the language in the composer footer * Add headings to the DropdownButton * Update the composer language control to use a simpler dropdown * Fix lint * Add translate link to Post component used in notifications * Fix lint
* Add alt text validation option to user preferences (supersedes #913) (#914)Paul Frazee2023-07-031-2/+34
| | | | | | | | | | | | | * Add alt text validation option to user preferences * Fix typos/linting issues * Update accessibility setting to match styles * Update the required alt text reminder to go away once it's added --------- Co-authored-by: Emma Fuller <emma@emmafuller.dev>
* [APP-724] Collection of accessibility fixes (#949)Paul Frazee2023-07-031-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Fix: include alt text on the web lightbox image * a11y: Dont read the 'ALT' label * a11y: remove a wrapper behavior from posts This appears to have been introduced with the goal of creating meta actions on posts, but the behavior seems counter-productive. The accessibility inspector was unable to access individual items within the post and therefore most content was simply skipped. There may be a way to support the post actions without losing the ability to access the inner elements but I couldnt find it. -prf * a11y: apply alt tags to image wrappers so they get read * a11y: set Link accessibilityLabel to the title if none set * a11y: skip the SANDBOX watermark * a11y: improve post meta to not read UI and give a useful date * ally: improve post controls * a11y: add labels to lightbox images on mobile * fix types
* [APP-692] Accessibility font-scaling fixes (#922)Paul Frazee2023-06-281-0/+1
| | | | | | | | | | | * Fix: enable font scaling in the composer text input * Fix: cancel button in search no longer wraps * Fix: report modals no longer clip off the bottom with scaled fonts * Fix scrolling on android * Allow wrapping in dropdown items until we can handle proper sizing
* Fix: hide the keyboard before showing the discard modal (#925)Paul Frazee2023-06-281-0/+4
|
* Revert change to the cancel button in the composer (#917)Paul Frazee2023-06-271-5/+2
|
* Merge branch 'skip-confirmation-for-empty-post' of ↵Paul Frazee2023-06-271-23/+28
|\ | | | | | | https://github.com/benharri-forks/social-app into benharri-forks-skip-confirmation-for-empty-post
| * fix cancel post behaviorBen Harris2023-06-261-18/+23
| | | | | | | | | | | | - prompt now appears for the cancel button - no prompt when post is empty - appease eslint
* | [APP-705] Metrics revamp pt2 (#896)Ansh2023-06-271-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * export track function from analytics.tsx * fix create account tracking * fix tracking sign in * add custom feed events * fix type errors * refactor create post event * add profile follow & unfollow events * refactor PostsFeedSliceModel into its own file * refactor PostThreadItemModel into its own file * reorganize code a lil bit * refactor post-thread-item to use post-feed-item model under the hood * add post events * add post reply tracking * track custom feed load more * track list subscribe and unsubscribe
* | Improvements to the alt text behaviors in the composer (#910)Paul Frazee2023-06-271-109/+135
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add an image preview in the alt modal * Composer: add info about alt text and a green checkmark when done * Shrink the alt visual indicator a bit so it doesnt obscure the image * Fix typo * Fix: avoid requiring multiple tabs to save alt text * update react-native-screens * Improve the alt text help tip * Remove redundant hints --------- Co-authored-by: Ansh Nanda <anshnanda10@gmail.com>
* | make discard btn more apparent in UI (#912)Ansh2023-06-261-6/+11
|/
* [APP-657] Add share list functionality (#863)Ansh2023-06-261-2/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * replace delete list button text with icon * fix mute list styling on desktop * add share button to nav bar on a list * fix styling when on profile * bug: add key to ImageHorzList * clean up code & refactor * fix styling for ListItems * create a reusable ListActions component for actions on a list * remove dead styles * add keys to ListActions * add helpers to set list embed * render list embeds * fix list sharing on web * make style prop optional in ListCard * update `@atproto/api` to `0.3.13`
* [APP-690] better handling of post languages language filtering (#893)Ansh2023-06-232-9/+73
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * add SelectLangBtn * memoized objects that are created to reduce re-creation on re-render * add langs when uploading post * only send the top 3 languages otherwise backend will throw error * mv ContentLanguagesSettings to folder * add post languages settings modal and state * fix typos * modify feed manip to also check langs label on post * Fix tests * Remove log * Update feed-manip.ts * Fix syntax errors * UI tuneups * Show the currently selected languages in the composer * fix linting * Use a bcp-47 matching function * Fix a duplicate language issue * Fix web * Dont include lang in prompt * Make select language btn an observer * Keep device languages on top of language selection UIs * Fix android build settings * Enforce a max of 3 languages in posts * Fix tests * Fix types --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com>
* Bump @types/react to ^18 and adjust types (#889)Logan Rosen2023-06-221-2/+2
|
* [APP-511] metrics overhaul: frontend work (#506)Ansh2023-06-153-3/+3
| | | | | | | | | | | | | | | | | | | | | * WIP * fix types and update imports * wip * tagged events that should be server side * remove server-side analytics * remove useless import * add additional profile header events * remove useless import * track follow/unfollow clicks * add missing types
* Fix a bunch of type errors and add a type-check to the github workflows (#837)Paul Frazee2023-06-021-1/+4
| | | | | | | | | | | | | | | * Add yarn type-check * Rename to yarn typecheck * Fix a collection of type errors * Add typecheck to automated tests * add `dist` to exluded folders tsconfig --------- Co-authored-by: Ansh Nanda <anshnanda10@gmail.com>
* Move MAX_GRAPHEME_LENGTH to constants.ts (#735)Ben Harris2023-05-302-8/+12
|
* Rework scaled dimensions and compression (#737)Ollie H2023-05-301-50/+48
| | | | | | | | | * Rework scaled dimensions and compression * Unbreak image / banner uploads --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com>
* Add feed sharingPaul Frazee2023-05-181-2/+20
|
* Style cleaning and initial text size audit (#618)Ollie H2023-05-151-3/+7
| | | | | * Style cleaning and initial text size audit * Put file back
* Make autocomplete pressable (#620)Ollie H2023-05-151-4/+8
|
* Only allow one close draft confirmation at a time (#611)Ollie H2023-05-111-2/+8
| | | | | * Only allow one close draft confirmation at a time * lint
* Update web image editor (#588)Ollie H2023-05-091-4/+4
| | | | | | | | | | | | | | | | | | | | | | | * Update web image editor * Delete type-assertions.ts * Re-add getKeys * Uncomment rotation code * Revert "Uncomment rotation code" This reverts commit 6269f3b928c2e5cacaf5d0ff5323fe975ee48eab. * Shuffle dependencies and update mobile resolution * Update ImageEditor modal layout for mobile * Avoid accidental closes of the EditImage modal --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com>
* Add avatar to mobile autocomplete and create grapheme hook (#602)Ollie H2023-05-093-66/+110
| | | | | * Add avatar to mobile autocomplete and create grapheme hook * Remove comment, update filename, cut out redundant logic
* Visual improvements to web autocomplete (#591)Ollie H2023-05-081-14/+108
| | | | | * Visual improvements to web autocomplete * Remove stray styling
* Fix hardbreak formattingrenahlee2023-05-051-0/+2
|
* Add keyboard shortcuts: new, escape, and hard break (#552)Ollie H2023-05-022-0/+26
| | | | | | | | | | | | | | | | | | | | | * Add keyboard shortcuts: new, escape, and hard break * Add preferences modal * Remove code accidentally re-added due to rebase * Fix incorrect copy and lint * Put stuff back so diffs are clearer * Re-add invite codes to settings * Address comments * Tune the copy --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com>
* Pre-web image changes refactor (#560)Ollie H2023-05-021-2/+5
| | | | | * Pre-web image changes refactor * Remove unneeded async behavior
* React Native accessibility (#539)Ollie H2023-05-019-175/+204
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * React Native accessibility * First round of changes * Latest update * Checkpoint * Wrap up * Lint * Remove unhelpful image hints * Fix navigation * Fix rebase and lint * Mitigate an known issue with the password entry in login * Fix composer dismiss * Remove focus on input elements for web * Remove i and npm * pls work * Remove stray declaration * Regenerate yarn.lock --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com>
* Implement blocks (#554)Paul Frazee2023-04-281-5/+1
| | | | | | | | | | | | | | | | | | | | | | | | | * Quick fix to prompt * Add blocked accounts screen * Add blocking tools to profile * Blur avis/banners of blocked users * Factor blocking state into moderation dsl * Filter post slices from the feed if any are hidden * Handle various block UIs * Filter in the client on blockedBy * Implement block list * Fix some copy * Bump deps * Fix lint
* Support Ctrl + Enter for non-Mac (#544)Ollie Hsieh2023-04-271-1/+1
|
* Add undo to web composer (#542)Ollie Hsieh2023-04-271-0/+2
|
* only allow selecting 4 images maxAnsh Nanda2023-04-251-1/+1
|
* Rework how recently-created posts are added to the feed (repeat posts issue) ↵Paul Frazee2023-04-241-2/+5
| | | | | | | | | (#527) * Rework new-post behavior to just add the user's created post to the top * Only add post to top when not a reply * Fix: run update in action
* Android & visual fixes: color themes, repost icon, navigation, back handler, ↵Paul Frazee2023-04-241-3/+3
| | | | | | | | | | | | | | | | | | | | | etc (#519) * Switch android to use slide left/right animations on navigation * Bump the repost icon down by a pixel * Tune theme colors for contrast and darker bg on darkmode * Move back handler to a point in the init flow that leads to more consistent capture of events * Fix image share flow on android * Fix lint * Add todo about sharing not available * Drop the android slide animation because it's too slow * Fix 'flashes of white' in dark mode android
* Add alt text support and rework image layout (#503)Ollie Hsieh2023-04-212-37/+88
| | | | | | | | | | | | | | | | | | | | | | | | | * Add alt text support and rework image layout * Add additional BottomSheet implementation to account for nested Composer modal * Use mobile gallery layout on mobile web * Missing key * Fix lint * Move altimage modal into the standard modal system * Fix overflow wrapping of images * Fixes to the alt-image modal * Remove unnecessary switch * Restore old imagelayoutgrid code --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com>
* Support CMD + Enter to publish postrenahlee2023-04-193-55/+73
|
* Split image cropping into secondary step (#473)Ollie Hsieh2023-04-1710-350/+326
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Split image cropping into secondary step * Use ImageModel and GalleryModel * Add fix for pasting image URLs * Move models to state folder * Fix things that broke after rebase * Latest -- has image display bug * Remove contentFit * Fix iOS display in gallery * Tuneup the api signatures and implement compress/resize on web * Fix await * Lint fix and remove unused function * Fix android image pathing * Fix external embed x button on android * Remove min-height from composer (no longer useful and was mispositioning the composer on android) * Fix e2e picker --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com>