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

6982 Commits

Author SHA1 Message Date
shannon
f552c3af91 Correct and simplify handling of user view button action
Also delete a bunch of unused code.

Fixes IOS-359
2025.01-6982
2025-01-24 10:30:55 -05:00
shannon
6031af6a0d Open mastodon-schemed urls that match findable results the same way we do with universal links
Fixes #968 Support opening any Mastodon URL directly in the app
2025-01-24 10:15:08 -05:00
shannon
a7f82c430b Avoid showing duplicate poll options
This is an invalid state, but currently it is possible to create a valid poll (no identical options) and later edit it so that two or more options contain identical strings. Bug (#33707) has been filed for the mastodon repository.

Fixes #1332 [BUG] Mastodon app crashes when a poll with identical answers reaches the screen
2025.01-6980
2025-01-23 13:46:34 -05:00
shannon
f45ccacf1f Make sure to pause video play when not in use. 2025-01-23 10:49:24 -05:00
shannon
e9b58d3047 More careful handling of AVAudioSession
(May contribute to…)
Contributes to #1074  [BUG] When run on Mac, iOS app prevents sleep
2025-01-23 10:43:39 -05:00
shannon
eac3222e65 Remove import AVKit from files that do not need it 2025-01-23 10:07:00 -05:00
shannon
537f6cc5fd Alert user to any error in poll vote processing; always resolve activity indicator.
Contributes to  #1123 [BUG] App crashes when voting on a poll
2025-01-22 15:45:12 -05:00
shannon
e91d6e3bc5 Update notification view after approving or rejecting a follow request
Fixes #1342 [BUG] Follow requests no longer working
2025.01-6975
2025-01-22 15:14:58 -05:00
whattherestimefor
76283cfa01 Revert "Attempt to fix CI build error"
This reverts commit 44f9aae469472a1c05d16126548f4a7bb8efcd13.
2025.01-6974
2025-01-22 11:09:36 -05:00
whattherestimefor
7f0c9897d1 Update NotificationTimelineViewModel.loadMore() for recent changes 2025-01-22 11:09:36 -05:00
whattherestimefor
2603b01144 Add TODO comment 2025-01-22 11:09:36 -05:00
shannon
44f9aae469 Attempt to fix CI build error 2025-01-21 19:40:49 -05:00
shannon
7814812b5a first stages of a swiftui list for notifications
changes to keep building that will quickly become moot

Starting to implement SwiftUI version of notifications

project update forgotten

Switch out whole view controller when testing grouped notifications.

make old view work again

Bump deployment target to iOS 17

better view model. follow button loads correctly, showing followers list or account works.

mostly kind of working

rename

rename
2025-01-21 19:03:57 -05:00
Damir Yackupov
571d73644c
support for focus point in image (#1392)
* support for focus point in image

* small fix

* small refactor
2025.01-6969
2025-01-15 06:34:09 -05:00
shannon
137cd4015a Update localized strings to add “No recent searches”
Fixes #1389
2025.01-6968
2025-01-14 14:43:47 -05:00
Gokul
f9ad9a4931
If recent search history is empty show text like No recent searches (#1387)
Displayed no recent searches text if recent search is empty
2025.01-6967
2025-01-14 14:33:48 -05:00
shannon
6ec1d9a591 Initial display of grouped notifications
Contributes to IOS-253
Contributes to IOS-355
2025.01-6966
2025-01-14 11:23:42 -05:00
shannon
12d737c4e1 Use grouped notifications beta setting in UserDefaults 2025-01-14 11:13:10 -05:00
shannon
1ec772d8a1 Show ungrouped notifications as before, but using the new MastodonFeedItemIdentifiers
Contributes to IOS-253
Contributes to IOS-355
Contributes to IOS-357
2025.01-6964
2025-01-10 16:17:51 -05:00
shannon
100937187c Data model changes to enable grouped notifications
Work in progress. This will run but will not show any notifications.

Contributes to IOS-355
Contributes to IOS-253
2025.01-6963
2025-01-09 08:49:28 -05:00
shannon
4dd856f106 Add full settings menu for beta features
Fixes IOS-354
2025.01-6962
2025-01-07 15:08:10 -05:00
shannon
1e6ae1796e Fix vertical clipping of author name in status card
Remove Mastodon logo and update color and font of author name text, moving towards the planned new layout design.

Fixes IOS-353
2025-01-07 09:34:40 -05:00
shannon
2a2a002f2e Update version number 2025.01-6960 2025-01-06 15:42:06 -05:00
shannon
d12108411f Definitely remove duplicates before setting new records
Contributes to IOS-351
2025-01-06 15:36:44 -05:00
shannon
b45f752a10 Try avoiding animations while updating cell heights.
Contributes to IOS-352
2025-01-06 15:35:40 -05:00
shannon
1512f6e079 clarify private usage 2025-01-06 14:55:20 -05:00
shannon
b438d3db32 rename for clarity
Not all of these cases involve a MastodonStatus. Their actual use is as identifiers for the tableview datasources.
2025-01-06 14:45:29 -05:00
shannon
1ea485e349 rename for clarity 2025-01-06 14:19:30 -05:00
shannon
68cf3fa409 remove unnecessary import 2025-01-06 14:18:55 -05:00
shannon
e47d54d506 Rename for clarity 2025-01-06 10:24:14 -05:00
shannon
f04699960f Add NotificationGroup struct 2024-12-19 15:21:30 -05:00
shannon
9a7b3215e0 Update localizations 2024.12 2024.12-6951 2024-12-18 11:12:21 -05:00
shannon
60dadbbd92 Merge branch 'l10n_develop' into develop 2024-12-18 11:10:18 -05:00
shannon
804a5d0fda Control the height of the compose window a little better.
Avoids the known hang, which was caused by getting stuck in a loop setting the frame back and forth over and over. Looked like it was adding and then removing (and then adding, etc) the height of a single line of text. Possible the username was shifting back and forth between truncating and wrapping, but have not confirmed that.

Fixes #705 IOS client consistently hangs when writing new post at ~= 150 chars
2024.12-6946
2024-12-18 10:52:39 -05:00
shannon
7961514160 Make taps on the author view either activate the buttons or show the author, never open the post in thread view.
Fixes IOS-143
2024.12-6945
2024-12-17 15:10:29 -05:00
shannon
f28751872d Adjust HitTestExpandedButton to MinimumHitTargetButton, which enforces minimum hit target size of 44x44
Contributes to IOS-143
2024-12-17 15:08:13 -05:00
shannon
d84b5474c4 Only adjust scroll offset if new tableview contents does contain the expected anchoring index path. 2024-12-17 12:59:35 -05:00
shannon
99fad6fb23 Renaming for clarity 2024-12-17 12:55:28 -05:00
shannon
a5ca642a7f Correctly update tableview when height of cell changes, to avoid scrolling problems later. 2024-12-17 12:52:20 -05:00
shannon
34cf069c20 Fix crucial typo so that we filter the incoming records, not the existing ones. 2024.12-6940 2024-12-17 08:44:08 -05:00
shannon
335e682dc2 Avoid a “publishing changes during view updates” warning. 2024.12-6939 2024-12-16 15:40:55 -05:00
shannon
9de3ae09b9 Perform content validity checks on main queue.
Using global background queue was handing the character counting work to a different thread every time the text changed. Forcing it always onto the same background queue would be another option, but main seems to feel fast enough and is safer because of all the view-related things downstream.

Contributes to #705 IOS client consistently hangs when writing new post at ~= 150 chars
2024-12-16 15:37:14 -05:00
shannon
eb5433ec2b Do not allow setting FeedController’s records from outside the class.
Because we want to be certain that incoming records are always correctly filtered.

Fixes #1354 [BUG] Mastodon iOS App Ignores "Hide completely" Filter action Setting
2024-12-16 14:29:33 -05:00
shannon
d5e8300066 Restore blur to cover content warned GIFs
Also, do not create a player view until actually needed (lazy var caused one to be created during prepareForReuse(), just to be able to call removeFromSuperview() on it).

Fixes  #1377 [BUG] Content warning for gifs doesn't blur consistently
2024-12-16 11:43:24 -05:00
Gokul
e4214f78a5
Show profile view when tapped author name in home feed (#1380)
Show profile when tap AuthorName
2024.12-6935
2024-12-16 09:53:07 -05:00
shannon
54ee5603b5 Add indication of publishing progress to the publish button.
Contributes to  #846 Toot lost in poor network conditions
2024.12-6934
2024-12-13 16:41:52 -05:00
shannon
a992c3ae2b Better clean up after failure or automated cancelation of post
Contributes to  #846 Toot lost in poor network conditions
2024-12-13 15:38:05 -05:00
shannon
1b4852c9b0 Do not dismiss compose window until post success is confirmed
Contributes to  #846 Toot lost in poor network conditions
Contributes to  #1215 [BUG] New posts fail to publish
2024-12-13 15:36:34 -05:00
shannon
2a7c8154d0 Add explanatory comment 2024-12-13 13:42:07 -05:00
shannon
5ccf30c39e Add TODO note 2024-12-13 13:41:41 -05:00