25 Commits

Author SHA1 Message Date
Jed Fox
0a9689c67f
Add support for selecting the post language (#907)
* Basic fake language picker support

* Recognize languages from post text

* Exclude suggested languages from recents

* Load recent languages from Settings object

* Send the language to the API

* Persist the used language to settings

* Always show the currently selected language in the list

* Fix crash

* Add support for picking arbitrary lanuages

* Fix display of 3 letter language codes

* Improve label to include endonym too

* Limit to 3 recent languages

* Reduce lower bound for displaying language suggestions

* Fix saving recent language when publishing

* Fix tint color of language picker button

* Add a badge to prompt users to change language

* Dismiss the badge even if you pick the same language

* Read language names in the language if possible

* Use a compressed font for 3-letter codes

Also use `minimumScaleFactor` to shrink troublesome codes to fit

Co-Authored-By: samhenrigold <49251320+samhenrigold@users.noreply.github.com>

* Remove .vscode/launch.json

* Add message to fatalError()

Co-authored-by: samhenrigold <49251320+samhenrigold@users.noreply.github.com>
2023-01-24 01:50:10 +01:00
Jed Fox
3661b5ce90
Refactor compose intialization
- split ComposeContentViewModel.Kind into Destination (top level/reply) and an initial content string
- replies get the mentions prepended to the initial content string
2022-12-03 13:25:07 -05:00
CMK
f784df912d fix: no downscaling for raw image from camera issue 2022-11-22 15:59:29 +08:00
Marcus Kida
12bfff8b00
Merge pull request #579 from woxtu/patch
Fix typos
2022-11-21 17:31:05 +01:00
CMK
be255ff53b fix: compose content could not post media only issue 2022-11-17 20:41:55 +08:00
CMK
220fd6ae02 feat: improve the i18n workflow 2022-11-15 01:44:28 +08:00
CMK
591acb4c2c feat: restore keyboard shortcut for compose scene 2022-11-14 19:43:32 +08:00
CMK
af0dc45d1b feat: update i18n string 2022-11-14 19:27:09 +08:00
CMK
25f4a6b082 feat: restore post compose limit 2022-11-14 19:14:46 +08:00
woxtu
a36a303532 Fix typos 2022-11-14 02:53:59 +09:00
CMK
26c6b8f2ee chore: code clean up 2022-11-13 22:40:36 +08:00
CMK
b47f8ead37 fix: compile issue 2022-11-13 22:40:26 +08:00
CMK
929a27d572 feat: [WIP] restore publish button and compose pre-insert content 2022-11-13 22:08:26 +08:00
CMK
88307057c0 feat: restore emoji picker for post compose 2022-11-13 19:42:50 +08:00
CMK
e7ef0f79c7 feat: restore auto-complete for compose scene content input 2022-11-13 16:04:29 +08:00
CMK
f7d0186bf3 feat: add compress progress display. Set video compress config to 720p at 60 fps 2022-11-11 21:28:19 +08:00
CMK
088e6f05ec feat: upload media in queue 2022-11-11 18:10:13 +08:00
CMK
d6b90f40bd feat: add simple progress remain time estimate 2022-11-10 18:36:36 +08:00
CMK
a7d5e23406 feat: [WIP] restore compose status publish function with background task support 2022-10-31 20:41:19 +08:00
CMK
3100c59a3b feat: restore content warning input with black-yellow strip edges 2022-10-28 19:06:18 +08:00
CMK
b12825a96a feat: restore compose poll expire option 2022-10-26 18:58:25 +08:00
CMK
44a8b818e4 feat: [WIP] restore compose poll view 2022-10-21 19:12:44 +08:00
CMK
4367e8eaba feat: [WP] restore the content compose via SwiftUI and support expandable reply view for compose scene 2022-10-11 18:31:40 +08:00
CMK
02e3ad9a16 chore: [WIP] restore the replyTo entry for compose 2022-10-10 19:14:52 +08:00
CMK
64f3d2fe3a chore: [WIP] move core logic into package 2022-09-30 19:28:09 +08:00