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

1278 Commits

Author SHA1 Message Date
shannon
d448815c9a Add localizations for attachment types
Contributes to #399 [BUG] Multiple interactions do not collapse into a single notification
2025-02-11 15:51:17 -05:00
shannon
5a00f7665d Allow Follow button to grow in width somewhat before wrapping its text. Remove ineffectual font setting. 2025-02-11 15:51:16 -05:00
shannon
c9bf9c221b Fallback to V1 ungrouped notifications if grouped notifications returns an error
Contributes to #399 [BUG] Multiple interactions do not collapse into a single notification
2025-02-10 13:29:13 -05:00
shannon
b961dcefa9 Never group notifications when viewing notifications from a single source account
Contributes to #399 [BUG] Multiple interactions do not collapse into a single notification
2025-02-07 10:48:17 -05:00
shannon
d21a859ac5 Add some navigation to grouped notifications
Tapping on header of notification with a single author will open profile screen.
Tapping on inline post preview will open thread view.

Contributes to #399 [BUG] Multiple interactions do not collapse into a single notification
2025-02-05 14:21:22 -05:00
shannon
6155899a00 Better display of post content in the new grouped notifications view
Contributes to #399 [BUG] Multiple interactions do not collapse into a single notification
2025-02-05 12:55:54 -05:00
shannon
40fe4ab29f Restore ability to repeatedly request notifications newer than the latest displayed
Fixes #1402 [REGRESSION] Notifications pull to refresh never updates contents
2025-02-04 13:25:28 -05:00
shannon
292b08c401 Finish building out the basics of the new grouped notifications layout
Contributes to #399 [BUG] Multiple interactions do not collapse into a single notification
2025-02-03 13:01:04 -05:00
shannon
4c0ea93d1f Restore poll view to notifications 2025-01-28 15:01:50 -05:00
shannon
233e8d4027 Some tweaks to the pick from photo library process.
Contributes to IOS-364
2025-01-28 11:02:03 -05:00
shannon
82f844d83a Do not default to replying to an unlisted post with a public post
Fixes #242 Replies' privacy scope should not be higher than original post
2025-01-27 16:36:36 -05:00
shannon
999e74be47 Correctly track follow and reblog status in the notification view.
This is a temporary fix, the datamodel will be changing with grouped notifications.
2025-01-27 16:36:36 -05:00
shannon
54861dcf6f Quick fix for missing instance configuration
For further work, see IOS-363

Fixes #1394 [BUG] Max. character limit server not honored
Fixes #1396 [REGRESSION] Cannot translate posts
2025-01-27 16:36:35 -05:00
shannon
6e10bca2fe Turn off default for testing new grouped notifications 2025-01-24 16:09:12 -05:00
shannon
bc918ffdfc Restore ability to load additional notifications beyond the first fetched batch 2025-01-24 16:09:12 -05:00
shannon
f552c3af91 Correct and simplify handling of user view button action
Also delete a bunch of unused code.

Fixes IOS-359
2025-01-24 10:30:55 -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-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
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
whattherestimefor
7f0c9897d1 Update NotificationTimelineViewModel.loadMore() for recent changes 2025-01-22 11:09:36 -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-15 06:34:09 -05:00
shannon
137cd4015a Update localized strings to add “No recent searches”
Fixes #1389
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-14 14:33:48 -05:00
shannon
6ec1d9a591 Initial display of grouped notifications
Contributes to IOS-253
Contributes to IOS-355
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-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-09 08:49:28 -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
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
f04699960f Add NotificationGroup struct 2024-12-19 15:21:30 -05:00
shannon
9a7b3215e0 Update localizations 2024-12-18 11:12:21 -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-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-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
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-17 08:44:08 -05:00
shannon
335e682dc2 Avoid a “publishing changes during view updates” warning. 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-16 09:53:07 -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
5ccf30c39e Add TODO note 2024-12-13 13:41:41 -05:00
shannon
613b7feee8 Avoid warning about accessing visibleCells during tableview updates 2024-12-13 13:39:53 -05:00
shannon
1a79ec064b Some error handling improvements for the post publishing process
Contributes to #1215 [BUG] New posts fail to publish
Contributes to  #1317 Every time I try to add images from my Akkoma , the app freezes
2024-12-13 13:32:35 -05:00
shannon
ffc6e0ebaf Clearer naming (“nanosPerUnit” instead of “second”) 2024-12-13 13:17:59 -05:00
shannon
fee51ace09 Fetch all accounts much less often 2024-12-11 16:39:40 -05:00