Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add context menu to stories avatars #664

Merged
merged 3 commits into from
Dec 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

- Added a context menu for the stories in the Home Feed to open the Profile.
- Update the color palette.
- Fixed a bug where the app could become unresponsive.
- Fixed some performance issues for users who follow a large number of accounts.
Expand Down
1 change: 1 addition & 0 deletions Nos/Assets/Localization/Localized.swift
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ enum Localized: String, Localizable, CaseIterable {

case profileTitle = "Profile"
case profile = "profile"
case seeProfile = "See profile"
case follow = "Follow"
case followers = "Followers"
case follows = "Follows"
Expand Down
1 change: 1 addition & 0 deletions Nos/Assets/Localization/en.lproj/Generated.strings
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@
"Localized.version" = "Version";
"Localized.profileTitle" = "Profile";
"Localized.profile" = "profile";
"Localized.seeProfile" = "See profile";
"Localized.follow" = "Follow";
"Localized.followers" = "Followers";
"Localized.follows" = "Follows";
Expand Down
7 changes: 7 additions & 0 deletions Nos/Views/HomeFeedView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,13 @@ struct HomeFeedView: View {
}
} label: {
StoryAvatarView(author: author)
.contextMenu {
Button {
router.push(author)
} label: {
Localized.seeProfile.view
}
}
}
}
}
Expand Down