8000 [MBL-2264] [3 of 3] Show a partial project view when opening a similar project by stevestreza-ksr · Pull Request #2378 · kickstarter/ios-oss · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[MBL-2264] [3 of 3] Show a partial project view when opening a similar project #2378

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

Merged

Conversation

stevestreza-ksr
Copy link
Contributor

This is 3 of 3 PRs for refactoring the project page to support an intermediate loading state from a partial project.

This merges into the second PR's branch (which will resolve back to main once it all merges); this should not merge until then.

📲 What

This PR adds partial loading support to the Project Page with an initial project. When it loads with an initial project, the first cell loads with it.

🤔 Why

Right now, opening a card from Similar Projects shows a completely blank screen. This UX would be better if we could at least show the main card for the project while the rest of the data loads.

🛠 How

Building on the last two PRs, the Project Page view is updated with so that the Either<Project, Param> type is updated with a project page-specific Param type (which includes an optional initial configuration). These use the new protocol types from the last PR.

Once this new param is loaded into the project page, if an initial configuration is included, that cell is loaded into the table and shown.

Additionally, the nav bar is updated to show the Overview tab while the remainder of the tabs load.

👀 See

Vision doc for multiple model types

Before 🐛 After 🦋
project-page-1 project-page-2

✅ Acceptance criteria

  • Tests should pass
  • Project page should work as-is
  • Opening a similar project should open the project page with a nice view

@stevestreza-ksr stevestreza-ksr force-pushed the stevestreza/project-page-refactor/project-pamphlet-impl branch from 1aad9da to 66b7e9f Compare April 9, 2025 23:08
@nativeksr
Copy link
Collaborator
1 Warning
⚠️ Big PR

Generated by 🚫 Danger

Copy link
Contributor
@amy-at-kickstarter amy-at-kickstarter left a comment

Choose a reason for hiding this comment

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

LGTM, with one potentially blocking note on tests.

Super excited to use this for Search, too!

@stevestreza-ksr stevestreza-ksr force-pushed the stevestreza/project-page-refactor/project-pamphlet-graphql branch from f0858f8 to ad001a9 Compare April 12, 2025 00:39
@stevestreza-ksr stevestreza-ksr force-pushed the stevestreza/project-page-refactor/project-pamphlet-impl branch from 898cfa3 to 77da385 Compare April 12, 2025 01:13
Base automatically changed from stevestreza/project-page-refactor/project-pamphlet-graphql to main April 14, 2025 18:33
@stevestreza-ksr stevestreza-ksr force-pushed the stevestreza/project-page-refactor/project-pamphlet-impl branch 2 times, most recently from 264c3b0 to 8d712b0 Compare April 16, 2025 21:14
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.

🎉 Appreciate the thoroughness and time that you spend on this!

@stevestreza-ksr stevestreza-ksr force-pushed the stevestreza/project-page-refactor/project-pamphlet-impl branch from 1a828e5 to 8a3b3ec Compare April 22, 2025 03:26
@stevestreza-ksr stevestreza-ksr merged commit 4d7ad44 into main Apr 22, 2025
5 checks passed
@stevestreza-ksr stevestreza-ksr deleted the stevestreza/project-page-refactor/project-pamphlet-impl branch April 22, 2025 18:34
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.

4 participants
0