about summary refs log tree commit diff
path: root/src/view/com/composer/select-language
Commit message (Collapse)AuthorAgeFilesLines
* clean up language before suggesting (#9006)Samuel Newman2025-09-091-1/+11
|
* Restore quick language select (#8981)Samuel Newman2025-09-052-72/+139
| | | | | | | | | | | | | * restore quick language select * rm showCancel * rm margin from thread button * alf composer icons * stop hiding keyboard * use trans
* Language select final tweaks (#8914)Samuel Newman2025-08-272-133/+382
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * [APP-1303] Redesign/refactor post language select (#8884) * Nightly source-language update * Nightly source-language update * [APP-1303] Redesign/refactor post language select * update: stylesheets.create to use the latest structure * update styles to modern structure * update: dialog breakpoints on web and delete depricated language modals * remove unused post languages settings dialog * restructure Post languages dialog * place the Dialog.Close inside the Dialog.ScrollableInner * add: language search * update search and language variables for clarity * fix: memoize language state lists * chore: add comments * update proper colors to the background * add back older error boundary * add: tweaks to the mobile and web responsiveness * add tweaks to center the container * update labels * update button and border * added translation updates * Update: text input to reuse search input * remove unused file * update: web breakpoints * run eslint and prettier --------- Co-authored-by: Elijah Seed-Arita <elijaharita@gmail.com> Co-authored-by: Anastasiya Uraleva <anastasiya@Anastasiyas-MacBook-Pro.local> Co-authored-by: Anastasiya Uraleva <anastasiya@Mac.localdomain> * rm old file * sort out styles, add FlatListFooter component * rm cancel button in favor of search input X * get dialog height working on iOS * delete `DropdownButton` * hide scroll indicators on android * ios scroll indicator insets * get footer sorta working on android * change button color on press * rm empty file --------- Co-authored-by: Anastasiya Uraleva <anastasiyauraleva@gmail.com> Co-authored-by: Elijah Seed-Arita <elijaharita@gmail.com> Co-authored-by: Anastasiya Uraleva <anastasiya@Anastasiyas-MacBook-Pro.local> Co-authored-by: Anastasiya Uraleva <anastasiya@Mac.localdomain>
* feat: use OP's language as recommendation when replying (#8832)Elijah Seed-Arita2025-08-151-3/+16
| | | | | * feat: use OP's language as recommendation when replying * fix: address nits
* Improve select language prompt (#8391)Samuel Newman2025-05-201-42/+29
|
* Localize lang selectors according to the app language (#6207)Stanislas Signoud2024-12-312-31/+44
| | | | | * Localize lang selectors according to the app language * Explicitly ignore RangeError when translating locale names
* Leverage jsx transform to remove unnecessary react imports and update eslint ↵Paul Coroneos2024-11-192-2/+2
| | | | | | | | | 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
* Thread composer UI (#6050)dan2024-11-011-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-292-14/+15
| | | | | * Mark import sort/order/style rules as error * npm run lint -- --fix
* put dropdown in fullscreenoverlay on iOS (#4284)Samuel Newman2024-05-301-13/+14
|
* Add missing macroSamuel Newman2024-03-181-1/+1
| | | Co-authored-by: Gildásio Filho <gildasiogx@gmail.com>
* change usage of t to msgSamuel Newman2024-03-181-4/+4
|
* Reduce the odds of false positives in the language suggester (close #2598) ↵Paul Frazee2024-01-301-9/+23
| | | | (#2700)
* Suggest post language correction (#2486)Paul Frazee2024-01-121-0/+101
| | | | | | | | | | | | | | | | | * feat: suggested language * fix: wording correction * Factor out SuggestedLanguage into a separate component * Tighten the language-suggestion confidence to avoid false positives * Tweak the copy and UI * Add function fallbacks for safari --------- Co-authored-by: Mary <pineapplecreamcheese@skiff.com>
* Remove deprecated models and mobx usage (react-query refactor) (#1934)Paul Frazee2023-11-161-3/+2
| | | | | | | | | | | | | | | | | | | | | * 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
* Internationalization & localization (#1822)Ansh2023-11-091-3/+6
| | | | | | | | | | | | | | | | | | | | | | | | | * 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-081-3/+3
| | | | | * Pull language methods into api context * Rename for consistency
* Add modal state provider, replace usage except methods (#1833)Eric Bailey2023-11-081-4/+4
| | | | | | | | | | | | | * Add modal state provider, replace usage except methods * Replace easy spots * Fix sticky spots * Replace final usages * Memorize context objects * Add more warnings
* Move language preferences to new persistence + context (#1837)Paul Frazee2023-11-081-8/+16
|
* Improve handling of unselecting languanges in composer language menu (#1093)Eric Bailey2023-08-231-19/+29
| | | | | | | | | | | | | | | | | | | | | | | * 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-735] Post language improvements (#982)Paul Frazee2023-07-061-13/+65
| | | | | | | | | | | | | | | | | * 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
* [APP-690] better handling of post languages language filtering (#893)Ansh2023-06-231-0/+56
* 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>