Commit Graph

6478 Commits

Author SHA1 Message Date
Marcus Kida 27c6c58d96
Implement Lists and Hashtags Menu (and timeline) (IOS-102) (#1325)
# Implement Lists and Hashtags Viewing Capabilities

This PR adds **List** and **Hashtag** viewing capabilities.

| Menu | Lists | Hashtags |
|---|---|---|
|![Simulator Screenshot - iPhone 15 Pro Max - 2024-07-16 at 13 41
07](https://github.com/user-attachments/assets/7ff8dc5c-fe9f-433a-b947-b8ac602e453f)
|![Simulator Screenshot - iPhone 15 Pro Max - 2024-07-16 at 13 40
49](https://github.com/user-attachments/assets/18d7444f-c542-4bce-943a-911a328399c0)|
![Simulator Screenshot - iPhone 15 Pro Max - 2024-07-16 at 13 40
44](https://github.com/user-attachments/assets/8a2b5d04-f51c-4c68-a91d-3c9bd6208eee)|
2024-07-17 13:45:28 +02:00
Marcus Kida 8a5180b54a
Show empty message if no lists exist / hashtags are followed (IOS-102) 2024-07-17 13:18:37 +02:00
Marcus Kida 21ea90200e
Address PR Feedback (IOS-102) 2024-07-17 12:59:01 +02:00
Marcus Kida 019f483c0c
Remove unused code 2024-07-16 13:45:01 +02:00
Marcus Kida 0a887a4841
Implement "Followed Hashtags" (IOS-102) 2024-07-15 15:22:36 +02:00
Marcus Kida f03ef0dfc7
Hide "New Posts" Indicator on Timeline Context Change (IOS-21) 2024-07-15 12:56:49 +02:00
Marcus Kida 085ef54233
Comment out "Manage Lists" Menu Item (IOS-21) 2024-07-15 12:56:30 +02:00
Marcus Kida 9cb88bcff5
Implement viewing lists on home timeline (IOS-21) 2024-07-12 13:10:05 +02:00
Marcus Kida 4c832d0547
Implement Lists Menu (IOS-21) 2024-07-12 11:07:11 +02:00
Marcus Kida 7f96aa579f
Implement Lists API (IOS-21) 2024-07-11 15:24:46 +02:00
Nathan Mattes b3eaf0cd4c Bump version 2024-07-02 11:26:24 +02:00
Nathan Mattes 49af346780 Add authorization to custom emojis
This is (mostly) relevant for isolated instances but also these people have a right to custom emojis, right? :D
2024-07-02 11:04:57 +02:00
Eugen Rochko c72b7dbcc3
New Crowdin updates (#1318)
* New translations app.json (Vietnamese)

* New translations app.json (Vietnamese)

* New translations app.json (Romanian)

* New translations app.json (French)

* New translations app.json (Spanish)

* New translations app.json (Arabic)

* New translations app.json (Belarusian)

* New translations app.json (Catalan)

* New translations app.json (Czech)

* New translations app.json (Danish)

* New translations app.json (German)

* New translations app.json (Greek)

* New translations app.json (Basque)

* New translations app.json (Finnish)

* New translations app.json (Hebrew)

* New translations app.json (Hungarian)

* New translations app.json (Armenian)

* New translations app.json (Italian)

* New translations app.json (Japanese)

* New translations app.json (Korean)

* New translations app.json (Dutch)

* New translations app.json (Polish)

* New translations app.json (Portuguese)

* New translations app.json (Russian)

* New translations app.json (Slovenian)

* New translations app.json (Swedish)

* New translations app.json (Turkish)

* New translations app.json (Ukrainian)

* New translations app.json (Chinese Simplified)

* New translations app.json (Chinese Traditional)

* New translations app.json (English)

* New translations app.json (Galician)

* New translations app.json (Icelandic)

* New translations app.json (Portuguese, Brazilian)

* New translations app.json (Indonesian)

* New translations app.json (Spanish, Argentina)

* New translations app.json (Thai)

* New translations app.json (Latvian)

* New translations app.json (Hindi)

* New translations app.json (English, United States)

* New translations app.json (Burmese)

* New translations app.json (Welsh)

* New translations app.json (Sinhala)

* New translations app.json (Scottish Gaelic)

* New translations app.json (Aragonese)

* New translations app.json (Kurmanji (Kurdish))

* New translations app.json (Sorani (Kurdish))

* New translations app.json (Kabyle)

* New translations app.json (Chinese Traditional)

* New translations app.json (Galician)

* New translations app.json (Spanish, Argentina)

* Update strings

---------

Co-authored-by: Nathan Mattes <hallo@bullenscheisse.de>
2024-07-01 09:41:31 +02:00
Nathan Mattes 4fdb1dd4a3
Show author in Card (IOS-284) (#1321)
This PR updates the Preview Card. Apart from a minor background color
change, it introduces the new `StatusCardAuthorControl`, which is
visible if the author of an article has a Mastodon-account. If the user
taps on the account, the given profile will open.

This feature will be available in Mastodon >4.3 (See [this
PR](https://github.com/mastodon/mastodon/pull/30398), for example). HMI,
if you need more information on how to test this etc.

Please enjoy these screenshots with some fake data:


![1321](https://github.com/mastodon/mastodon-ios/assets/2580019/cc580c84-6700-4f15-b1b0-b845c21a445e)
2024-06-30 22:35:09 +02:00
Nathan Mattes b3854f140b Fix label for non-mastodon-authors (IOS-284)
Sorry, non-mastodon-authors
2024-06-30 20:06:36 +02:00
Nathan Mattes 663bff6cb2 Cleanup (IOS-284) 2024-06-30 19:53:15 +02:00
Nathan Mattes 6315abeb9e Use different labels for publisher and date (IOS-284)
so that in case of loooooooooooong publisher names the publisher name is shortened but the date is still visible
2024-06-30 19:47:59 +02:00
Nathan Mattes f56d7ebaa8 Throw in some localization (IOS-284) 2024-06-30 18:54:47 +02:00
Nathan Mattes d972578176 UI-Fixes (IOS-284) 2024-06-30 18:25:01 +02:00
Nathan Mattes 52ba086f94 Move the author-button into its own class (IOS-284)
and add avatar-image
2024-06-30 17:13:54 +02:00
Nathan Mattes c61d3d7cb2 Remove empty leftover folder 2024-06-30 15:16:21 +02:00
Nathan Mattes 2876bcced6 Coordinate to Profile if there's an account (IOS-284) 2024-06-30 12:41:39 +02:00
Nathan Mattes 495332e021 Use account as only existing criterium (IOS-284) 2024-06-30 12:23:33 +02:00
Nathan Mattes a3b4528862 Show (optional) published-date (IOS-284) 2024-06-29 19:00:36 +02:00
Nathan Mattes 96798f941c Re-enable menu (IOS-284) 2024-06-29 17:49:00 +02:00
Nathan Mattes 87d17022d4 Add a hacky way to differ between taps on profile and taps on content (IOS-284) 2024-06-29 17:38:57 +02:00
Nathan Mattes ed72022de2 Add label for publisher (IOS-284) 2024-06-29 14:05:48 +02:00
Nathan Mattes b9fa20f083 Adopt new authors-API-change and add publisher 2024-06-29 14:02:10 +02:00
Nathan Mattes 54986620e7 Show author and tinker description (IOS-284)
Also: Background Color, so minor UI-adjustments it is, I guess?
2024-06-26 23:17:48 +02:00
Nathan Mattes cf5bc5b424 Add existing prototype (IOS-284) 2024-06-26 18:50:45 +02:00
Nathan Mattes 3adae7b3c3 Add optional author-account (IOS-284) 2024-06-26 18:47:29 +02:00
Marcus Kida 1a8fbe7692
IOS-271: Fix translate functionality leads to empty status content (#1320)
This PR solves the following things:

1. Fixes the post body being set to an empty string in case translation
fails
2. Fetches `/api/v1/instance/translation_languages` (only if the
`/api/v2/instance` is available) and checks if the transaction between
the desired languages is possible
3. Refactors `Instance` usage to now use
`MastodonAuthentication.InstanceConfiguration` if feasible with low
effort
4. On the home timeline, the reblog status (the wrapper) is taken into
account for translation which leads to the translation failing
2024-06-26 15:48:18 +02:00
Marcus Kida 7342b92edd
Improve code style - part 2 (IOS-271) 2024-06-26 14:37:27 +02:00
Marcus Kida 199a6624e8
Improve code style (IOS-271) 2024-06-26 14:36:17 +02:00
Marcus Kida ad8d5e6e69
Fix reblog taken into account when translating status on home timeline (IOS-271) 2024-06-25 11:36:18 +02:00
Marcus Kida 972426fa50
Remove CoreData.Instance Entity Classes (IOS-271) 2024-06-25 11:36:04 +02:00
Marcus Kida 3db058800b
Refactor instance usage and use MastodonAuthentication.InstanceConfig (IOS-271) 2024-06-25 11:04:38 +02:00
Marcus Kida 6c43d49ce4
Fix file header (IOS-271) 2024-06-25 10:50:50 +02:00
Marcus Kida b47ce98ef2
Hide spinner in case translation fails (IOS-271) 2024-06-25 10:45:37 +02:00
Marcus Kida daaf1b330e
Implement translation language check (IOS-271) 2024-06-25 10:41:03 +02:00
Marcus Kida 7f8587913f
Implement TranslationLanguages fetching (IOS-271) 2024-06-21 12:09:49 +02:00
Marcus Kida d4132640c5
Throw error in case translation returns empty content (IOS-271) 2024-06-21 12:09:18 +02:00
Nathan Mattes ca68a6cdbb Bump version to 2024.7 2024-06-20 07:52:08 +02:00
Eugen Rochko a27c4d9255
New Crowdin updates (#1302)
* New translations app.json (German)

* New translations app.json (Chinese Traditional)

* New translations app.json (Spanish, Argentina)

* New translations app.json (Galician)

* New translations app.json (Thai)

* New translations app.json (Vietnamese)

* New translations app.json (Portuguese)

* New translations app.json (Belarusian)

* New translations app.json (Belarusian)

* New translations app.json (Belarusian)

* New translations app.json (Romanian)

* New translations app.json (French)

* New translations app.json (Spanish)

* New translations app.json (Arabic)

* New translations app.json (Catalan)

* New translations app.json (Czech)

* New translations app.json (Danish)

* New translations app.json (German)

* New translations app.json (Greek)

* New translations app.json (Basque)

* New translations app.json (Finnish)

* New translations app.json (Hebrew)

* New translations app.json (Hungarian)

* New translations app.json (Armenian)

* New translations app.json (Italian)

* New translations app.json (Japanese)

* New translations app.json (Korean)

* New translations app.json (Dutch)

* New translations app.json (Polish)

* New translations app.json (Portuguese)

* New translations app.json (Russian)

* New translations app.json (Slovenian)

* New translations app.json (Swedish)

* New translations app.json (Turkish)

* New translations app.json (Ukrainian)

* New translations app.json (Chinese Simplified)

* New translations app.json (Chinese Traditional)

* New translations app.json (English)

* New translations app.json (Vietnamese)

* New translations app.json (Galician)

* New translations app.json (Icelandic)

* New translations app.json (Portuguese, Brazilian)

* New translations app.json (Indonesian)

* New translations app.json (Spanish, Argentina)

* New translations app.json (Thai)

* New translations app.json (Latvian)

* New translations app.json (Hindi)

* New translations app.json (English, United States)

* New translations app.json (Burmese)

* New translations app.json (Welsh)

* New translations app.json (Sinhala)

* New translations app.json (Scottish Gaelic)

* New translations app.json (Aragonese)

* New translations app.json (Kurmanji (Kurdish))

* New translations app.json (Sorani (Kurdish))

* New translations app.json (Kabyle)

* New translations app.json (German)

* New translations app.json (Swedish)

* New translations app.json (Slovenian)

* New translations app.json (Icelandic)

* New translations app.json (Belarusian)

* New translations app.json (Icelandic)

* New translations app.json (Spanish, Argentina)

* New translations app.json (Belarusian)

* New translations app.json (Belarusian)

* New translations app.json (Galician)

* New translations app.json (Chinese Traditional)

* New translations app.json (Belarusian)

* New translations app.json (Italian)

* New translations app.json (Thai)

* New translations app.json (Thai)

* New translations app.json (Vietnamese)

* Update strings

---------

Co-authored-by: Nathan Mattes <hallo@bullenscheisse.de>
2024-06-19 22:55:05 +02:00
Marcus Kida 3b7d50d555
Bugfixes for "Load More" / Home Timeline Gap Loading (IOS-275) (#1316)
Fixes #1288 and incorrectly ordered posts when loading more.
2024-06-19 16:30:42 +02:00
Marcus Kida 63fc0488e4
Simplify code (IOS-275) 2024-06-19 13:57:56 +02:00
Marcus Kida a05fc48683
Update wording in code comment (IOS-275) 2024-06-19 13:56:41 +02:00
Marcus Kida d61b10a8e6
Fix potential excessive Load More at end of timeline (IOS-275) 2024-06-19 13:54:58 +02:00
Marcus Kida a23b5089d0
Fix duplicate LoC 2024-06-14 11:11:22 +02:00
Marcus Kida c131d76a47
Update Mastodon/Scene/HomeTimeline/HomeTimelineViewModel.swift
Co-authored-by: Nathan Mattes <hallo@bullenscheisse.de>
2024-06-14 11:08:38 +02:00