Commit Graph

689 Commits

Author SHA1 Message Date
Shadowfacts e3be424f5a
Fix instance public timelines not loading 2020-01-05 19:45:12 -05:00
Shadowfacts 2bdcb9b7f8
Replace global shared MastodonController instance with (mostly)
dependency injection

The places still using the .shared property are cases where there is no
view controller from which to (easily) get the appropriate instance,
such as user activity and X-Callback-URL handling. These uses will need
to be revisited once there are multiple MastodonControllers.

See #16
2020-01-05 15:25:07 -05:00
Shadowfacts a18bcac8b8
Pachyderm: Change Client request methods to be static, like all other
models

Tusker: Add run method to MastodonController and no-longer expose API
client object
2020-01-05 14:00:39 -05:00
Shadowfacts ad09e36907
Show follow requsts in notifications w/ accept/reject buttons
Closes #64
2020-01-04 23:13:23 -05:00
Shadowfacts b70256c525
Remove old icons 2020-01-04 19:22:16 -05:00
Shadowfacts 3ecbb1895c
Replace GMImagePicker with custom asset picker based on SheetController
Fixes #23
Closes #50
2020-01-04 16:25:15 -05:00
Shadowfacts 49f58cf955
Initial UI testing setup 2019-12-30 16:00:14 -05:00
Shadowfacts ae6a0513e4
Add local saved hashtags
Closes #66
2019-12-19 21:20:29 -05:00
Shadowfacts afc2bfcf6b
Add list editing 2019-12-17 22:56:53 -05:00
Shadowfacts 036791bd39
Replace Search tab with Explore tab
- Search controller (functionally the same, presents results on top of
explore menu)
- Add bookmarks screen

See #63
2019-12-17 00:22:25 -05:00
Shadowfacts 05d79d5d03
Use same nav delegate more options for context menu share sheet 2019-12-14 13:36:05 -05:00
Shadowfacts eb6cfba9aa
Fix tablel view cells being re-selected on aborted nav swipe back 2019-12-14 11:59:31 -05:00
Shadowfacts d5232c0b03
Fix content warning label always showing in conversation main status
When the conversation was opened, the status state of the main status
would already be known, so the CW label wasn't getting updated or
hidden/shown.
2019-11-28 21:22:13 -05:00
Shadowfacts b47b08fa95
Store status collapse state in containing view controller
Also, copy the state between screens, so e.g. expanding a status in the
timeline and then opening that conversation already has that status
expanded.

This intentionally doesn't store the sensitive attachment visibility
state, since showing text when not necessary is less dangerous than for
images. (Possibly a preference for this in the future?)

Closes #55
2019-11-28 18:36:58 -05:00
Shadowfacts 24a1e7ceb9
Unify most of TimelineStatus and ConverastionMainStatus cell code
Closes #54
2019-11-19 12:08:11 -05:00
Shadowfacts 8fb3b211b6
Add button to conversation table view to collapse/expand all posts
This needs a refactor once StatusTableViewCell and
ConversationMainStatusTableViewCell are merged. See #54
2019-11-18 22:28:47 -05:00
Shadowfacts da6ff67a51
Add notification dismissal context menu actions
Closes #49

This is a workaround for UIKit's built-in suggested context menu actions
not working as expected, and should be replaced with the system thing if
it becomes possible.
2019-11-17 18:49:48 -05:00
Shadowfacts a92d9ddc6f
Automatically collapse long (> 500 chars) statuses
Closes #12
2019-11-17 18:36:19 -05:00
Shadowfacts eb8afdaab8
Change how pin icon is displayed on statuses 2019-11-17 15:28:58 -05:00
Shadowfacts 4cfe5e0fa5
Change action notification line limit to 3 2019-11-17 15:16:58 -05:00
Shadowfacts 975fb23292
Possibly fix crash when reblogger account is cached 2019-11-17 14:46:14 -05:00
Shadowfacts 85812d774d
Fix crash when trying to open context menu for attachment that hasn't yet loaded 2019-11-17 14:45:38 -05:00
Shadowfacts 81a5fce602
Add preference to always blur media 2019-11-17 12:52:42 -05:00
Shadowfacts 6ce96764f3
Use visual effect views for sensitive media hide button so the button is
visible regardless of the image color
2019-11-17 12:28:21 -05:00
Shadowfacts 42a0a8890c
Tweak profile header more button appearance 2019-11-17 11:33:49 -05:00
Shadowfacts 56d4a6690f
Fix crash when displaying posts with more than 4 attachments 2019-11-17 11:32:35 -05:00
Shadowfacts c91a7baaa6
Show pinned posts on profiles
Closes #53
2019-11-17 11:14:33 -05:00
Shadowfacts 1808aaa3e8
A bunch of VoiceOver/Voice Control stuff 2019-09-26 22:32:51 -04:00
Shadowfacts 6225b2a02f
Use aspect fit for instance thumbnail 2019-09-24 14:45:47 -04:00
Shadowfacts 268aca9d7e
Fix a couple warnings 2019-09-23 11:07:32 -04:00
Shadowfacts c84b042c33
Modify font descriptor traits when applying bold/italic formatting
instead of replacing font entirely.

Fixes #51
2019-09-22 19:30:15 -04:00
Shadowfacts 4b70b9d8b6
Fix attached media in compose view being displayed incorrectly 2019-09-22 19:02:19 -04:00
Shadowfacts df8e0dedd4
Add instance selector 2019-09-15 15:01:35 -04:00
Shadowfacts fc2aea04c3
Add hashtags to search 2019-09-14 21:24:43 -04:00
Shadowfacts 84a07fc718
Add preference to disable showing favorite/reblog counts 2019-09-14 15:00:52 -04:00
Shadowfacts eb58a46ab7
Change how favorite/reblog counts are displayed 2019-09-14 14:55:09 -04:00
Shadowfacts 6e4f89df4a
Add support for video attachments
#7
2019-09-10 12:25:50 -04:00
Shadowfacts befcc18e4d
Collapse statuses with content warnings
Closes #11
2019-09-09 18:40:23 -04:00
Shadowfacts 2edb65d302
Show favorite, reblog, and full timestamp in conversation main status 2019-09-07 17:10:58 -04:00
Shadowfacts 818c0afec6
Cleanup draft attachment loading and handle missing attachments
#4
2019-09-06 18:50:18 -04:00
Shadowfacts 49380692f3
Add context menu for follow notifications 2019-09-06 17:59:57 -04:00
Shadowfacts 8723921cec
Add context menu for status action notifications 2019-09-06 17:56:45 -04:00
Shadowfacts 817ebcb7eb
Add context menu for account cell 2019-09-06 17:50:27 -04:00
Shadowfacts d9abf3ec09
Show list of accounts based on grouped notifications 2019-09-05 23:16:45 -04:00
Shadowfacts 76bc6a665c
Show list of accounts for grouped follow notifications 2019-09-05 22:30:58 -04:00
Shadowfacts a8ae559c9d
Add timestamp to follow notifications 2019-09-05 19:53:08 -04:00
Shadowfacts a363308147
Follow notification grouping
Closes #28
2019-09-05 19:35:19 -04:00
Shadowfacts 1618313742
Fav/reblog notification grouping
#28
2019-09-05 17:45:45 -04:00
Shadowfacts 1bc598691f
Fix a slew of bugs related to reblogs
Fixes #37
Fixes #38
Fixes #39
2019-09-05 14:24:13 -04:00
Shadowfacts 6a09c7e1e8
Tweak profile headers to better support long display names 2019-09-05 11:34:41 -04:00
Shadowfacts 84cfa923ca
Use Notification for updating view appearance on preferences change 2019-08-02 18:05:47 -06:00
Shadowfacts 199f95c465
Update cells when statuses/accounts change from other sources 2019-08-02 17:40:32 -06:00
Shadowfacts 44cfd44651
Fix faving/reblogging statuses by tapping buttons 2019-08-01 18:03:49 -06:00
Shadowfacts 917771a79a
Shrink display name font size in profile to accomodate long names
Fixes #30
2019-07-29 12:11:20 -04:00
Shadowfacts 509e013380
Add support for posts with more than four attachments 2019-07-27 22:45:11 -04:00
Shadowfacts c29ebbb6a0
Start adding sensitive media hiding 2019-07-27 22:01:08 -04:00
Shadowfacts e287142e4c
Fix attachments overlapping avatar when status doesn't have any content
Closes #25
2019-06-26 09:13:58 -04:00
Shadowfacts 1da5af9b37
Compose screen: Fix long display names overlapping character count 2019-06-25 09:19:29 -04:00
Shadowfacts cd5b593199
Show gallery from conversation main status cell 2019-06-16 22:40:07 -04:00
Shadowfacts 85ed53b990
Fix multi-attachment layout issues 2019-06-16 22:39:46 -04:00
Shadowfacts 55fc032f36
Extract attachment layout to it's own view
Use AutoLayout + stack views instead of manual frames, fixes attachments
sometimes not using the whole width
2019-06-16 19:02:18 -04:00
Shadowfacts e6c6293c10
Add multi-image gallery
Closes #18
2019-06-14 17:23:40 -07:00
Shadowfacts 940ba6d6cb
Fix swipe actions on iOS 13 2019-06-13 19:31:36 -07:00
Shadowfacts bf48603deb
Temporarily disable LargeImageViewController animation 2019-06-12 22:44:23 -07:00
Shadowfacts 9d4782c63c
Add SF Symbols icons 2019-06-11 10:21:22 -07:00
Shadowfacts 6ecad62b94
More dark mode fixes 2019-06-04 17:58:35 -04:00
Shadowfacts a89fb56a60
Add support for iOS 13 previewing and actions 2019-06-04 17:04:37 -04:00
Shadowfacts b3b9d566b7
iOS 13 Dark Mode Support 2019-06-04 13:31:05 -04:00
Shadowfacts 66bb1050a5
Add support for additional formatting
Italics, bold, strikethrough, monospace, and (un)ordered lists
2019-04-04 21:45:48 -04:00
Shadowfacts d94a0050b7
Show fields in profiles
Closes #19
2019-04-01 19:34:50 -04:00
Shadowfacts 9c0624b79e
Clean up warnings 2019-04-01 17:58:44 -04:00
Shadowfacts 07ce3d41a8
Remove old tab customization code 2019-02-10 10:32:13 -05:00
Shadowfacts 37f6a0b4c8
Add custom emojis
Closes #6
2019-02-09 21:15:15 -05:00
Shadowfacts 71bfd1513a
Fix links not getting cleared on cell reuse 2019-02-07 21:26:16 -05:00
Shadowfacts ef6047fcb1
Replace TTTAttributedLabel with custom LinkLabel 2019-02-03 11:39:27 -05:00
Shadowfacts 55ed2f5d26
Get rid of AppRouter 2019-01-19 14:31:31 -05:00
Shadowfacts b8430be00c
Initial rewrite/redesign of compose screen
Still pending:
- Posting videos
- Image resizing
- Attachment drawer thing
2019-01-14 21:59:42 -05:00
Shadowfacts 5b3a3d9729
Fix UIKit methods being invoked off main thread 2019-01-14 16:58:23 -05:00
Shadowfacts 07a79657a7
Fix crash on attachment-only statuses posted from pleromafe 2019-01-13 19:46:32 -05:00
Shadowfacts 656cc1d3ef
Fix tapping mentions not working in reblogs 2018-11-24 16:32:21 -05:00
Shadowfacts f684591888
Use Gifu for GIF playback 2018-11-09 15:48:08 -05:00
Shadowfacts ff91cca843
Fix long display names crushing timestamp label 2018-11-02 21:39:23 -04:00
Shadowfacts 29964a4cee
Add peek/pop to profile headers 2018-10-30 22:24:49 -04:00
Shadowfacts aaddae1ecb
Fix bugs with reblogged statuses
Including: Attachments not showing up, 3d touch peek/pop not working,
favorite/reblog not working
2018-10-30 22:07:54 -04:00
Shadowfacts 7e8f22c471
Refactor view controller creation/navigation into AppRouter 2018-10-20 22:07:04 -04:00
Shadowfacts 35de20fe40
Cleanup 2018-10-20 15:38:17 -04:00
Shadowfacts 6fbd826371
Add link long press actions 2018-10-11 22:04:32 -04:00
Shadowfacts 0b6459a806
Add 3d touch peek/pop navigation 2018-10-11 21:52:41 -04:00
Shadowfacts 57b4e67cc2
Allow tabs to be enabled/disabled and reordered 2018-10-06 11:03:55 -04:00
Shadowfacts b796f288c8
Merge branch 'image-caching' 2018-10-03 08:53:17 -04:00
Shadowfacts 82e351465e
Cache image attachments 2018-10-03 08:53:05 -04:00
Shadowfacts fd611d1f04
Cache profile header images 2018-10-03 08:45:13 -04:00
Shadowfacts 982e42ca2f
Refactor AvatarCache to ImageCache
Use Cache library (https://github.com/hyperoslo/Cache) for caching
2018-10-03 08:45:03 -04:00
Shadowfacts ed6c371967
Don't show relationship label for the user's own account 2018-10-02 20:04:41 -04:00
Shadowfacts 225c7e30fc
Remove MastodonController.shared 2018-10-02 19:31:00 -04:00
Shadowfacts 589af9782d
Fix timestamps not being displayed for conversation main status 2018-10-02 08:37:04 -04:00
Shadowfacts 3d39087980
Replace ActiveLabel-based implementation with TTTAttributedLabel 2018-10-01 19:50:03 -04:00
Shadowfacts a4eb862e3a
Use light text for usernames and timestamps 2018-09-30 21:15:18 -04:00
Shadowfacts 139a214d2f
Move StatusTableViewCellDelegate methods to TuskerNavigationDelegate 2018-09-30 19:29:52 -04:00
Shadowfacts 728a5a4ff1
Add preferences UI for silent XCB actions 2018-09-30 19:05:06 -04:00
Shadowfacts 81a67ee76b
Minor UI tweaks 2018-09-30 19:05:06 -04:00
Shadowfacts d345cd5372
Add following/unfollowing accounts 2018-09-24 08:49:39 -04:00
Shadowfacts a10b990073
Cache accounts 2018-09-18 12:59:07 -04:00
Shadowfacts a6d23d12eb
Add shared status cache 2018-09-17 21:57:46 -04:00
Shadowfacts 266ebddd43
Merge branch 'pachyderm-immutable' 2018-09-17 19:37:58 -04:00
Shadowfacts bf09b80a5a
Change Pachyderm models to be immutable 2018-09-17 19:33:44 -04:00
Shadowfacts 6ec0ae5489
Refactor swipe actions into TableViewSwipeActionProvider 2018-09-15 13:11:58 -04:00
Shadowfacts 6f424666d8
Add post progress view 2018-09-12 09:19:51 -04:00
Shadowfacts e75b03f28d
Add more button to status 2018-09-11 18:17:48 -04:00
Shadowfacts 1119a861d8
Replace MastodonKit with Pachyderm 2018-09-11 10:52:21 -04:00
Shadowfacts d4a451fadb
Favorites and reblogs 2018-09-08 21:35:40 -04:00
Shadowfacts 186e2d7520
Add reply icon 2018-09-06 20:42:41 -04:00
Shadowfacts bd1f8fa20a
Reorganize sources 2018-09-03 17:10:26 -04:00
Shadowfacts db54922040
Add notifications screen 2018-09-03 16:54:03 -04:00
Shadowfacts aa194543d2
Add ability to expand profile avatar & header images 2018-09-02 18:22:29 -04:00
Shadowfacts 761b320ca6
Fix timestamp label sometimes not being right-aligned 2018-09-02 18:01:37 -04:00
Shadowfacts 1f52054107
Show images in conversation main status view 2018-09-02 17:51:36 -04:00
Shadowfacts e523d69e33
Large image view 2018-09-02 16:59:20 -04:00
Shadowfacts 834b6cfc42
Show timestampts on statuses 2018-08-31 13:46:33 -04:00
Shadowfacts 3170b83b82
Add image descriptions 2018-08-31 12:39:39 -04:00
Shadowfacts fc69b9684b
Initial implementation Compose UI 2018-08-30 22:30:19 -04:00
Shadowfacts 481f493a9c
Fix posts with multiple <p> tags being handled incorrectly 2018-08-29 21:51:04 -04:00
Shadowfacts 7fda5ae9fe
Add option to strip custom emoji from display names 2018-08-28 21:18:58 -04:00
Shadowfacts 310ebe588e
Add reblog label 2018-08-28 20:11:31 -04:00
Shadowfacts 9d70018508
Add avatar style preference 2018-08-28 19:49:31 -04:00
Shadowfacts c319ae5ce9
Add more options to profile view 2018-08-28 18:04:45 -04:00
Shadowfacts 0f1a13d2a7
Conversation view 2018-08-28 14:29:06 -04:00
Shadowfacts 05c895db88
Profile pages 2018-08-27 21:27:34 -04:00
Shadowfacts b655c20e3d
Move StatusTableViewCell to separate nib 2018-08-27 16:32:59 -04:00
Shadowfacts 02fcea8675
Add opening URLs in SFSafariViewController 2018-08-27 15:23:59 -04:00
Shadowfacts 03c87105d3
Add StatusContentLabel entity detection 2018-08-27 12:40:22 -04:00
Shadowfacts 6af5bae335
More StatusContentLabel cleanup 2018-08-26 15:19:54 -04:00
Shadowfacts 078e73b161
StatusContentLabel: remove unnecessary height correction 2018-08-26 15:07:03 -04:00
Shadowfacts 62bc57e169
Fix link detection 2018-08-26 14:49:22 -04:00
Shadowfacts f28e73442b
Fix link ranges being stored incorrectly 2018-08-21 21:43:43 -04:00
Shadowfacts 4adc501073
Initial avatars implementation 2018-08-21 19:23:27 -04:00
Shadowfacts a6f8565ab3
Fix crash on invalid URL 2018-08-18 16:07:34 -04:00
Shadowfacts 354b3469a8
Initial pass at message content rendering 2018-08-17 23:09:59 -04:00
Shadowfacts 24d30d36b7
Start home timeline 2018-08-16 22:39:16 -04:00