2
2
mirror of https://github.com/mastodon/mastodon-ios synced 2025-04-11 22:58:02 +02:00

175 Commits

Author SHA1 Message Date
shannon
357282ee53 Remove beta setting for grouped notifications
Contributes to #399 [BUG] Multiple interactions do not collapse into a single notification
2025-03-11 11:12:17 -04:00
Vincent Tourraine
40f909be85
Apply different cell styles for navigations/actions in About screen (#1400) 2025-02-24 08:56:57 -05:00
shannon
44ac523f33 Implement quiet public as a default post visibility option
Update code to handle the additional .unlisted post visibility option. And make sure to fetch full account info, which includes any custom privacy settings.

Fixes  #1395 [BUG] Implement Quit Public post privacy like the Android app
2025-02-12 10:55:59 -05:00
shannon
87522825f5 Correct default visibility settings
Contributes to  #1395 [BUG] Implement Quit Public post privacy like the Android app
2025-02-12 10:45:47 -05:00
shannon
52b955f5da Additional info for beta feature testing 2025-01-28 11:36:19 -05:00
shannon
12d737c4e1 Use grouped notifications beta setting in UserDefaults 2025-01-14 11:13:10 -05:00
shannon
4dd856f106 Add full settings menu for beta features
Fixes IOS-354
2025-01-07 15:08:10 -05:00
shannon
65bf555d98 Refactor: Remove NeedsDependency
The AppContext is already a singleton. SceneCoordinators are unique to UIWindowScenes, so fetch them that way.

Fixes iOS-324
2024-12-03 13:21:05 -05:00
shannon
7a742a1294 Correctly identify source of donation campaign request.
Allows displaying a default campaign in Settings even if there is no active banner campaign running.
2024-12-02 11:50:31 -05:00
shannon
a055d8ab1c Update localizations 2024-11-29 14:53:03 -05:00
shannon
8926e5a5f2 Refactor: Simplify login flow
Give full responsibility for API calls to the AuthenticationViewModel.
Give (nearly) full responsibility for UI flow of the signup/log in experience to the WelcomeViewController.

Transition more APIService functions to async await.
Remove unnecessary AppContext vars.
Update helpful text on Log In screen.

Contributes to iOS-321
2024-11-22 13:01:47 -05:00
shannon
54d04aed4e Continue to make MastodonAuthenticationBox the standard form of passing user information
Further simplify the AuthenticationViewModel and the public interface of AuthenticationServiceProvider.

Publish currentActiveUser from AuthenticationServiceProvider instead of assuming all callers know to take the first in the list as the active one.

contributes to iOS-319
2024-11-19 12:09:55 -05:00
shannon
138230e936 Fix build error 2024-11-15 14:55:15 -05:00
shannon
d7f473c892 MainActor for the new PersistenceManager 2024-11-15 14:45:37 -05:00
shannon
35f1280904 Make view models @MainActor 2024-11-15 14:15:01 -05:00
shannon
c4442fe8a9 Fix crash on launch due to infinite loop
And more honestly about singletons.
2024-11-15 12:25:58 -05:00
shannon
04108fd0e4 Remove AuthContext
MastodonAuthenticationBox, which already wraps the MastodonAuthentication, is now used directly.
2024-11-14 09:49:19 -05:00
shannon
e8ab6753d2 Add MainActor to AboutInstanceViewControllerDelegate 2024-11-12 13:00:28 -05:00
whattherestimefor
9d774cb541
Add ability to donate to Mastodon from the app (#1353)
This change only affects users logged in to mastodon.social or mastodon.online. A banner may be periodically displayed at the bottom of the homescreen encouraging donations and menu options are now available in Settings to make new donations or manage existing ones.

Amounts will not necessarily be returned from the server in order. The first amount returned is taken as the default and the amounts are sorted before display.

---------

Co-authored-by: Marcus Kida <marcus.kida@bearologics.com>
2024-11-06 19:37:52 -05:00
Nathan Mattes
363a521e68 UI/UX-improvements (IOS-241) 2024-07-24 12:35:07 +02:00
Nathan Mattes
0b749816dd Show subtitle (IOS-241) 2024-07-24 12:35:07 +02:00
Marcus Kida
d14a9407ba
Remove unused code (IOS-168) 2024-06-12 13:32:06 +02:00
Marcus Kida
3b72d37758
Apply PR feedback (IOS-168) 2024-06-12 11:25:46 +02:00
Marcus Kida
43227416b8
Fix Account + Source API usage (IOS-168) 2024-06-12 10:55:39 +02:00
Marcus Kida
6701586287
Reformat code (IOS-168) 2024-06-12 10:55:38 +02:00
Marcus Kida
4b89d6eef0
Rename interaction blocking property (IOS-168) 2024-06-12 10:55:38 +02:00
Marcus Kida
d77e8d1eac
Implement loading and saving of privacy & safety preferences (IOS-168) 2024-06-12 10:55:38 +02:00
Marcus Kida
79d8d8d508
Implement loading spinner when fetching current settings (IOS-168) 2024-06-12 10:55:38 +02:00
Marcus Kida
5b50e24b80
Implement PrivacySafetySettings preset logic (IOS-168) 2024-06-12 10:55:38 +02:00
Marcus Kida
cea13cb3de
Begin implementing PrivacySafetyViewController (IOS-168) 2024-06-12 10:55:38 +02:00
Marcus Kida
84f445426a
Add Privacy & Safety Settings Item (IOS-168) 2024-06-12 10:55:37 +02:00
Nathan Mattes
be962f15d0 Add authorization to instance-calls (IOS-264)
This will improve using the app with `LIMITED_FEDERATION_INSTANCES`
2024-05-14 15:11:56 +02:00
Nathan Mattes
a4b175ce9c Revert "Moderation Warning Notifications (IOS-264) (#1287)"
This reverts commit 794ffc002f384bb95b91d4369ddf5de93d3aba8c.
2024-05-14 15:11:23 +02:00
Nathan Mattes
794ffc002f
Moderation Warning Notifications (IOS-264) (#1287)
* Add moderation-warning-notification-type (IOS-264)

* Add entity for new AccountWarning (IOS-264)

Details see https://github.com/mastodon/mastodon/pull/30065 for now, as there's no documentation (yet)

* re-add file header (IOS-264)

* Add authorization to instance-calls (IOS-264)

This will improve using the app with `LIMITED_FEDERATION_INSTANCES`

* Add basic cell for account-warnings (IOS-264)

* Show some content for a warning (IOS-264)

* Open strike in browser (IOS-264)

* Add localization (IOS-264)

* Add missing localization (IOS-264)

* Cleanup (IOS-264)
2024-05-14 15:07:05 +02:00
Marcus Kida
484d72fbdd
Adjust Server Rules Screen (IOS-220) (#1251)
* Adjust Server Rules Screen (IOS-220)

* Update Server Rules (IOS-220)

* Use new server rules UI in Server Details (IOS-220)

* Improve disclaimer usage (IOS-220)

* Fix background in server details (IOS-220)
2024-03-19 09:55:42 +01:00
Marcus Kida
2e7054cb68
Implement "Default Post Language" and "Ask Before"-Alerts (#1240)
* Implement Settings->General->"Ask Before" and add "Ask Before Posting Without Alt Text" IOS-166

* Implement Alt Missing Alert for Status Edits (IOS-166)

* Fix status edit composes duplicate message

* Show (or don't) the "Really delete post?" Alert based on the User's preference (IOS-166)

* Implement alert for boost/unboost (IOS-166)

* Begin implementing "Default Post Language"-Setting (IOS-166)

* Show "Unfollow @user?" Alert (IOS-166)

* Merge conflict fixes for IOS-166

* Implement default post language setting (IOS-166)

* Fix follow button state not updated correctly (IOS-166)

* Add PR feedback (IOS-166)

* Improve default language cell style (IOS-166)

* Fix language filter broken (IOS-166)
2024-02-28 10:52:04 +01:00
Nathan Mattes
e70a67caf0 Move task and async/await to call-site (IOS-192) 2024-01-09 17:45:01 +01:00
Nathan Mattes
6aea178609 Add relationship to ProfileViewModel (IOS-192) 2023-12-31 12:57:56 +01:00
Nathan Mattes
2be8d5b8df WIP: Comment out and replace user with status (IOS-192) 2023-12-31 12:56:59 +01:00
Nathan Mattes
388d130aa4 Remove duplicate code (IOS-20)
Height is determined dynamically
2023-10-11 09:12:30 +02:00
Nathan Mattes
143e9ad683 Add missing piece of localization (IOS-20) 2023-10-10 14:00:32 +02:00
Nathan Mattes
2087c24cec Minor UI-fixes (IOS-20)
- Improve Image Download and add a placeholderimage
- Fix dark mode colors
- calculate header/footer-size based on the width of the table view (TIL!)
- Remove some old assets
2023-10-10 13:55:57 +02:00
Nathan Mattes
a0baf93b0a Improve visual appearance for segmented control (IOS-20) 2023-10-10 13:55:57 +02:00
Nathan Mattes
b8eea23108 Localization. Localization everywhere! (IOS-20) 2023-10-10 13:55:57 +02:00
Nathan Mattes
41c0a61de2 Add section-header "ADMINSTRATOR" (IOS-20) 2023-10-10 13:55:57 +02:00
Nathan Mattes
6397a8329b Add a footerview that shows legal information (IOS-20)
This is kind of WIP as not the whole text is shown for unknown reasons
2023-10-10 13:55:57 +02:00
Nathan Mattes
cdf0aa98e6 Show thumbnail (IOS-20) 2023-10-10 13:55:57 +02:00
Nathan Mattes
0e0855982f Add localization (IOS-20) 2023-10-10 13:55:57 +02:00
Nathan Mattes
622df06d4a Load admin-account (IOS-20) 2023-10-10 13:55:57 +02:00
Nathan Mattes
cebbe04741 Show admin-account and contact (IOS-20) 2023-10-10 13:55:57 +02:00