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

[MBL-1386][MBL-1388] Show survey in activity #2058

Merged
merged 5 commits into from
May 14, 2024
Merged

Conversation

ifosli
Copy link
Contributor

@ifosli ifosli commented May 13, 2024

📲 What

Show unanswered survey cards in activity and delete related code that would show facebook cards.

👀 See

Jira ticket for showing survey

Jira ticket for hiding facebook

Before 🐛 After 🦋
image image

Note: Neither of these facebook cards showed before and they're still not going to show. The only change in this pr is that they're actually deleted.

Logged in connect to friends Logged out connect to facebook
Screenshot 2024-05-13 at 12 04 51 PM Screenshot 2024-05-13 at 12 04 15 PM

✅ Acceptance criteria

  • Unanswered surveys card(s) show whenever a user has unanswered surveys available

@ifosli ifosli self-assigned this May 13, 2024
@ifosli ifosli requested review from a team and scottkicks and removed request for a team May 13, 2024 21:19
@nativeksr
Copy link
Collaborator

1 Warning
⚠️ Big PR

Generated by 🚫 Danger

Copy link
Contributor

@scottkicks scottkicks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Just a question about whether we can remove FindFrendsFacebookConnectCell and FindFriendsHeaderCell completely. I don't think they're used anywhere else. Messing with the Activity Storyboard might be out of scope for this PR.

internal func facebookConnect(source: FriendsSource, visible: Bool) {
self.set(
values: visible ? [source] : [],
cellClass: FindFriendsFacebookConnectCell.self,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we remove the FindFrendsFacebookConnectCell altogether? Or is it being used somewhere else?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removing the cell might mean that the Activity storyboard needs to be updated, which could get wonky....cause storyboards

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, this one is being used elsewhere. It's likely code that we're not actually using, but I'd need to dig through discover and settings to confirm, so that seems out of scope for this pr.

internal func findFriends(source: FriendsSource, visible: Bool) {
self.set(
values: visible ? [source] : [],
cellClass: FindFriendsHeaderCell.self,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same question here. Can FindFriendsHeaderCell be removed?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good call. Deleted!

Comment on lines +351 to +354
self.unansweredSurveyResponse.assertValues(
[[surveyResponse], [surveyResponse]],
"Survey emits whenever view appears"
)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice assert!

@ifosli ifosli merged commit 740b6e9 into main May 14, 2024
5 checks passed
@ifosli ifosli deleted the showSurveyInActivity branch May 14, 2024 18:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants