Commit Graph

127 Commits

Author SHA1 Message Date
Nathan Mattes 62cc9105a9
Fix Profile Editing (#1245)
* Fix image-editing (#1244)

Probably introduced in 76304e5 and we just missed that :)

* Removed unused property (#1244)

* Don't allow tapping on followers/followees when editing my profile

* Remove obsolete code

relationship-update on viewDidAppear is not needed anylonger as we use update user/relationship using notifications like in the good ol days

* Make relationship optional and use switch-pattern-matching for button-configuration

* Don't change relationship when relationship is updating

* [WIP] don't toggle, but just set booleans.
2024-03-18 16:27:12 +01:00
Nathan Mattes 86e968fabd Don't reload content all the time (IOS-192) 2024-02-20 15:26:05 +01:00
Nathan Mattes 49af28eeba Use constant (IOS-192) 2024-02-19 12:06:10 +01:00
Nathan Mattes 68e29d2aea Remove shadow 2024-02-14 16:52:05 +01:00
Nathan Mattes 96fddaef27 192-profile-about
# Conflicts:
#	Mastodon/Protocol/Provider/DataSourceFacade+Status.swift
#	Mastodon/Scene/Profile/Header/View/ProfileHeaderView+ViewModel.swift
#	Mastodon/Scene/Profile/ProfileViewController.swift
#	MastodonSDK/Sources/MastodonUI/ViewModel/RelationshipViewModel.swift
2024-01-02 12:15:15 +01:00
Nathan Mattes 8e7e16870c Fix some warnings (IOS-192)
As relationship-information isn't optional anymore, there' no need for ?? everywhere (I just missed some)
2023-12-31 12:59:39 +01:00
Nathan Mattes 0f6f6adfba Update header after edit (IOS-192) 2023-12-31 12:59:39 +01:00
Nathan Mattes 11235f3f75 Re-enable pending-check (IOS-192) 2023-12-31 12:59:39 +01:00
Nathan Mattes c0e08c4482 Fix warnings (IOS-192) 2023-12-31 12:59:39 +01:00
Nathan Mattes 59fe79fe49 Fix bug in follows-you-label (IOS-192)
🤦 RTFM (and add some docs)
2023-12-31 12:57:56 +01:00
Nathan Mattes 9e49775201 Make image clickable again (IOS-192) 2023-12-31 12:57:56 +01:00
Nathan Mattes 76304e59e5 Configure Profile-button based on relationship and accounts (IOS-192)
Also `me` is not optional anymore as we need it
2023-12-31 12:57:56 +01:00
Nathan Mattes 393722a31d Reenable followers/followees (IOS-192) 2023-12-31 12:57:56 +01:00
Nathan Mattes f9492e07a3 Kill some forced unwrapping and hide bio when blocked/blocking (IOS-192)
First rule of optionals: Don't use forced unwrapping!
2023-12-31 12:57:56 +01:00
Nathan Mattes b7bb271b40 Re-enable blur-effect for pictures (IOS-192) 2023-12-31 12:57:56 +01:00
Nathan Mattes 0729fa41f2 Re-enable "Follows you"-indicator (IOS-192) 2023-12-31 12:57:56 +01:00
Nathan Mattes d3c7ba2c7c Show header-meta-information about account (IOS-192) 2023-12-31 12:56:59 +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 8b02ba29dd UI/UX improvements and fixes (IOS-5)
- Blur images and hide bio/timeline
- Show correct texts (localization is about to come)
2023-12-19 12:14:58 +01:00
Nathan Mattes 59755b6d70 Adjust fonts, icon and colors for updated verified-design (IOS-130) 2023-11-09 11:25:57 +01:00
Nathan Mattes af9cce34eb Receive some actions on main-queue 2023-10-11 16:33:04 +02:00
Nathan Mattes e473084038
Simplify Theme (#1121) 2023-09-27 15:08:12 +02:00
Nathan Mattes fbde2a5833 More cleanup 2023-09-22 15:27:46 +02:00
Nathan Mattes 8804432b60
Fix Brand Color (IOS-160) (#1054) 2023-06-02 09:52:12 +02:00
Jed Fox 4aff4c65c5
Fix loading of follower/following count on profile pages (#1053) 2023-05-30 08:32:10 +02:00
Nathan Mattes 2b59def31e Don't set title for profile-screen when modal (IOS-157)
aka when account-suggestion-screen
2023-05-25 14:42:00 +02:00
J c3c94f15a9
Call apiService in viewDidAppear (#825) 2023-05-25 14:18:51 +02:00
Jed Fox df25feb7fd
Left-align the username in the profile header 2023-01-10 17:57:09 -05:00
Marcus Kida 74ea67181c
chore(profile): Add image to copy username action 2023-01-05 13:32:32 +01:00
Marcus Kida c56f1abd67
chore(profile): Allow profile header username to grow in height 2023-01-05 11:47:43 +01:00
Marcus Kida 2866721ca3
feat(profile): Implement tap to copy username 2023-01-04 16:38:18 +01:00
Peter Minarik fd964c7b3a
fix: set Avatar border color based on theme 2022-12-25 16:57:14 +01:00
Peter Minarik c1f19d1f27
chore: DRY setting up colors from theme 2022-12-25 16:56:46 +01:00
Jed Fox e4848d21e5
Improve handling of transparent avatars + avatar press state (#802)
* Fix Podfile.lock checksum

* Fix layout of avatarButton inside of border

* Set a background for the avatar button in profile headers
2022-12-21 21:41:18 +01:00
Jed Fox 47024bfb4d
Differentiate between “My followers” and other accounts followers in i18n 2022-12-13 10:07:37 -05:00
Stefan Painhapp d27d7456c9 Merge branch 'develop' into refactorPinToParent 2022-11-18 02:20:58 +09:00
Stefan Painhapp e56104c756 Revert paddingView.pinToParent 2022-11-18 02:07:33 +09:00
Stefan Painhapp abe25f2156 Refactor pin to (parent) layout constraints as extension of UIView 2022-11-18 01:45:27 +09:00
Jed Fox f4018935f9
Re-add missing debug line 2022-11-17 07:25:16 -05:00
Jed Fox 4af5d3910a
Wire up the header image to be actually displayed 2022-11-16 23:05:48 -05:00
Jed Fox 23a0943b12
Constrain size 2022-11-16 22:52:44 -05:00
Jed Fox 5d91bcf8b5
Basic banner editing support 2022-11-16 22:49:49 -05:00
CMK 060aec6bcb Merge branch 'release-1.4.6' into feature/package-refactor
# Conflicts:
#	.arkana.yml
#	AppShared/Info.plist
#	Documentation/Setup.md
#	Gemfile
#	Gemfile.lock
#	Mastodon.xcodeproj/project.pbxproj
#	Mastodon.xcodeproj/xcuserdata/mainasuk.xcuserdatad/xcschemes/xcschememanagement.plist
#	Mastodon.xcworkspace/xcshareddata/swiftpm/Package.resolved
#	MastodonSDK/Package.swift
#	MastodonSDK/Sources/MastodonCore/AppSecret.swift
#	MastodonSDK/Sources/MastodonCore/Service/Notification/NotificationService.swift
#	Podfile
#	Podfile.lock
2022-11-01 14:14:00 +08:00
CMK bb5c999bea chore: [WIP] inject AuthContext into ViewModel 2022-10-09 20:07:57 +08:00
CMK fa27a28a60 chore: move core logic into package 2022-10-08 13:43:06 +08:00
CMK 8835531a0e feat: add i18n words for profile "Follows You" indicator 2022-07-15 04:20:57 +08:00
CMK 742c02ce6a fix: profile header background cannot dynamic adapt UI appearance issue 2022-07-15 03:30:33 +08:00
CMK 34b3cad365 Merge branch 'release-1.4.4' into feature-purple-tint
# Conflicts:
#	AppShared/Info.plist
#	Mastodon.xcodeproj/project.pbxproj
#	Mastodon.xcodeproj/xcuserdata/mainasuk.xcuserdatad/xcschemes/xcschememanagement.plist
#	Mastodon/Info.plist
#	MastodonIntent/Info.plist
#	MastodonTests/Info.plist
#	MastodonUITests/Info.plist
#	NotificationService/Info.plist
#	ShareActionExtension/Info.plist
2022-06-14 14:28:35 +08:00
CMK 1ccb4aeb13 feat: add follows you indicator. resolve #397 2022-06-09 16:41:54 +08:00
CMK 0ffb3e75f9 Merge branch 'release-1.4.3' into feature-purple-tint
# Conflicts:
#	AppShared/Info.plist
#	Mastodon.xcodeproj/project.pbxproj
#	Mastodon.xcodeproj/xcuserdata/mainasuk.xcuserdatad/xcschemes/xcschememanagement.plist
#	Mastodon/Info.plist
#	MastodonIntent/Info.plist
#	MastodonTests/Info.plist
#	MastodonUITests/Info.plist
#	NotificationService/Info.plist
#	ShareActionExtension/Info.plist
2022-06-05 16:51:24 +08:00