Commit Graph

351 Commits

Author SHA1 Message Date
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 5d8e453da6
Notification Filtering (IOS-241) (#1319)
- Adds a new cell on the "Everything"-notification-screen to show
unwanted notifications
- Users can define what "unwanted" means to them using the new
"Filter"-button in the upper right corner of the Notification-screen
- Filtered notifications are sorted by account and users can
dismiss/accept if they want to get notifications of that user (it's some
standard table-views and delegates)

## Screenshots


![ios_241_1](https://github.com/user-attachments/assets/b2297a13-e220-4916-b3b9-24dfcef431de)


![ios_241_2](https://github.com/user-attachments/assets/5fd5b894-cd4e-40f9-abce-56ff17d41dfa)
2024-07-26 11:15:31 +02:00
Marcus Kida 07b0ddc14f
Improve empty state for lists (IOS-287) 2024-07-24 15:32:32 +02:00
Nathan Mattes b3bfa5101b Sprinkle in some, you guessed it: Localization (IOS-241) 2024-07-24 12:35:08 +02:00
Nathan Mattes ffc80268c5 Localization for Banner (IOS-241) 2024-07-24 12:35:08 +02:00
Nathan Mattes 9e8de739ec Localization (IOS-241) 2024-07-24 12:35:08 +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 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 4c832d0547
Implement Lists Menu (IOS-21) 2024-07-12 11:07:11 +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
Marcus Kida 84f445426a
Add Privacy & Safety Settings Item (IOS-168) 2024-06-12 10:55:37 +02:00
Marcus Kida f1aebc4220
Update Onboarding Privacy Copy (IOS-221) (#1295)
# Rationale

| Screenshot | Description |
|---|---|
| ![Simulator Screenshot - iPhone 15 - 2024-05-18 at 14 13
51](https://github.com/mastodon/mastodon-ios/assets/126418/0822433f-b362-4787-9f42-2f7c37f4ea55)
| This PR modifies the Onboarding Privacy Copy and allows it to render
Markdown. |
2024-05-22 09:26:12 +02:00
Nathan Mattes 8d3cb2beb3
Update Post Menu (IOS-229) (#1292)
* Add missing actions, hack way to inject options into menu (IOS-229)

* Implement new menu structure (IOS-229)

This doesn't work-work yet, as functionality isn't implemented yet. Also: Special options and traits.

* Add preferredElementSize to submenus (IOS-229)

* Copy Link (IOS-229)

* Open In Browser (IOS-229)

* Boost status from menu (IOS-229)

* Favorite status from menu (IOS-229)

* Fix following-status in menu and don't cache menu (IOS-229)

* Add some destruction, add localization and use "Boost" instead of "Reblog" (IOS-229)

* Use struct instead of tuple for those menu-parts (IOS-229)
2024-05-18 14:30:51 +02:00
Marcus Kida 41c34d4e82
Update onboarding privacy text to render Markdown 2024-05-16 17:13:55 +02:00
Nathan Mattes 1c1f67c4f9 Add missing localization (IOS-264) 2024-05-14 15:11:56 +02:00
Nathan Mattes 9507368fd1 Add localization (IOS-264) 2024-05-14 15:11:56 +02:00
Nathan Mattes a4b175ce9c Revert "Moderation Warning Notifications (IOS-264) (#1287)"
This reverts commit 794ffc002f.
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
Nathan Mattes 8d97b5a51e
"Welcome back" screen cleanup (IOS-226) (#1282)
* Update texts (IOS-226)

* Remove next-button (IOS-226)

* Tap on row to login (IOS-226)

* Make text use blurple and no disclosure indicator (IOS-226)

* Fix separator lines (IOS-226)

Well. Configurations don't work with custom UI-elements (or I'm just stupid), that's why I had to fall back to good ol UITableViewCell with UIKit-components
2024-05-03 20:53:20 +02:00
Nathan Mattes c2d0701062
Improve Multi-User Account Sheet (IOS-245) (#1273)
* Copynpaste cell to logout all accounts (IOS-245)

* Show cell (IOS-245)

* Logout of all accounts (IOS-245)

* Use iOS-formsheet to present account-list (IOS-245)

* Remove dead code (IOS-245)

* Don't animate account-switches (IOS-245)

* Remove panModal (IOS-245)

* UI-fixes (IOS-245)

* Add swipe-to-logout-action (IOS-245)

* Localize (IOS-245)

* Add a little bit of margin (IOS-245)

* Fix separator-insets (IOS-245)

* Don't crash on iPad when logging out of all accounts (IOS-245)
2024-04-30 09:22:27 +02:00
Nathan Mattes 8bb9bca4b9 Sprinkle in localization (IOS-234) 2024-04-10 14:03:13 +02:00
Nathan Mattes 26f3b5a7ce Sprinkle in some localization (IOS-235) 2024-04-04 12:19:44 +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 4322607552 Localize Domain Block (IOS-5) 2023-12-19 13:12:32 +01:00
Nathan Mattes 197e636c0c Fix typo 2023-11-14 12:42:18 +01:00
Nathan Mattes 3647ec0eb2 Fix JSON 2023-11-14 12:28:44 +01:00
Nathan Mattes 143e9ad683 Add missing piece of localization (IOS-20) 2023-10-10 14:00:32 +02:00
Nathan Mattes b8eea23108 Localization. Localization everywhere! (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 afd90d62e8 Add settings-entry for server-details (IOS-14, IOS-20) 2023-10-10 13:55:56 +02:00
Nathan Mattes 65f39f4b61 Sprinkle in some localization (IOS-14) 2023-09-27 15:12:43 +02:00
Nathan Mattes 67e3078df9 Sprinkle in some localizations on Notificaiton-Screen (IOS-14) 2023-09-27 15:12:43 +02:00
Nathan Mattes 5d58010907 Localize General-Setting-Screen (IOS-14) 2023-09-27 15:12:43 +02:00
Nathan Mattes 54a7fdee01 Fix app.json-JSON 🤦 (IOS-14) 2023-09-27 15:12:43 +02:00
Nathan Mattes 4107370957 Set title for about-screen (IOS-14) 2023-09-27 15:12:43 +02:00
Nathan Mattes 951f46353f Add localization to about-screen (IOS-14) 2023-09-27 15:12:43 +02:00
Nathan Mattes 0f495e67e4 Add localization to general-settings-screen (IOS-14) 2023-09-27 15:12:43 +02:00
Nathan Mattes 5ac8d02b0b Re-add keys
This whole localization workflow is super annyoing and fragile.
2023-09-20 23:55:21 +02:00
Nathan Mattes 4e42505dee Fix wording in app.json 2023-09-20 23:07:19 +02:00
Nathan Mattes 08e71fbcda Fix app.jsons (again) 2023-09-20 22:00:29 +02:00
Nathan Mattes 5370d00504 Fix app.json 2023-09-20 19:51:10 +02:00
Nathan Mattes 5a7ee4c9e6 Add missing keys to the right app.json 2023-09-20 19:39:09 +02:00
Nathan Mattes 0c5b3a64cf Adopt search to follow mastodon-logic (IOS-141)
as defined here: https://github.com/mastodon/mastodon/blob/main/app/javascript/mastodon/features/compose/components/search.jsx#L280-L310
2023-09-20 16:03:46 +02:00
Nathan Mattes 7abc536d01 Add localization to "No such user"-alert (IOS-141) 2023-09-17 14:40:23 +02:00
Nathan Mattes c51f021b12
Merge pull request #1078 from j-f1/discard
Improve heuristic for skipping the post discard confirmation modal
2023-07-02 16:25:02 +02:00
Nathan Mattes 4b5151bb39 Get servers and choose one randomly for signup (IOS-171)
Server list from backend has a weight which plays a role in which server gets selected.
mastodon.social is the fallback in case something goes wrong
2023-07-02 14:43:49 +02:00
Jed Fox c7455a20b5
Remove unused `DiscardPostContent` strings 2023-06-30 17:38:55 -04:00