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-1458 pt 5] Card view for pledged projects overview #2130

Merged
merged 6 commits into from
Aug 27, 2024

Conversation

stevestreza-ksr
Copy link
Contributor

📲 What

This PR implements the card view for pledged projects, as well as the relevant subviews. It adds a view model to cover handling actions like tapping buttons and sending the creator a message. This builds on previous PRs to add the individual pieces.

Connecting to real data will come in a future PR.

🛠 How

The project card is built from the individual pieces added in previous PRs.

Each card view gets its own view model instance, which is a container that holds the relevant data and can forward messages from the card view to a caller via Combine.

Views were tested via snapshot testing of the card in various configurations listed in Figma. View model inputs and outputs have unit tests.

👀 See

Figma

♿️ Accessibility

  • Tap targets use minimum of 44x44 pts dimensions

Should support Dynamic Type and VoiceOver, but that hasn't been confirmed

🏎 Performance

Performance will be validated when these are integrated into the pledged project list.

✅ Acceptance criteria

Feature will be more thoroughly tested against real data in a future PR after integrating. For now, all tests should pass.

⏰ TODO

Future PRs will integrate into the app UI itself and more testing can happen at that time.

Copy link
Contributor

@ifosli ifosli left a comment

Choose a reason for hiding this comment

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

Overall I really like how clean this is. Just one thing that I think is worth thinking twice about that deviates from our typical patterns. (Also, I added me and Scott to the reviewers!)

@nativeksr
Copy link
Collaborator

nativeksr commented Aug 21, 2024

1 Warning
⚠️ Big PR

Generated by 🚫 Danger

@stevestreza-ksr stevestreza-ksr merged commit 76a7a9f into main Aug 27, 2024
5 checks passed
@stevestreza-ksr stevestreza-ksr deleted the stevestreza/ppo/card-view branch August 27, 2024 00:11
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