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

collection-cards #2059

Merged
merged 11 commits into from
Sep 19, 2024
Merged

collection-cards #2059

merged 11 commits into from
Sep 19, 2024

Conversation

halgari
Copy link
Collaborator

@halgari halgari commented Sep 18, 2024

Rough Draft of Collection Cards. The functionality is mostly here, but the styling needs some work. I'd done about all I can do as far as styling, and it's likely a waste of time to have me flounder on this much more.

  • There's a new page called Collections (WIP) that will eventually be rolled into the Library. For now it's easy enough to display it as a separate page so we don't have to feature flag it
  • GetOrAddCollectionMetadata now makes a single GQL call and loads and saves off both the collection image and the Users' avatar image.
  • As collections are recognized we show the most recent revision in the Collections page, along with all the metadata
  • GetOrAddCollectionMetadata is idempotent on data that has not changed, so we can update that later to re-query the data as needed.
  • 0/12 mod counts are not yet implemented

To Test:

  1. Manage a game
  2. Go to the loadout and open the Collections (WIP) page
  3. Go to NexusMods and download a small collection
  4. The collection should show up in the new page

Yes it looks like trash...but the structure of the UI components should be correct, and we can change the styling.

Screenshot 2024-09-18 174807

@halgari halgari requested a review from a team September 19, 2024 00:07
@halgari
Copy link
Collaborator Author

halgari commented Sep 19, 2024

Marking this ready to review. Not sure if people doing the styling will want to get that in before or after this gets merged.

@Pickysaurus
Copy link
Contributor

Clarification as it confused me. To access the new page, open a new tab in the workspace and select the WIP page from there. It does not appear in the left menu.

@Pickysaurus Pickysaurus added the Epic: Collections This is related to NexusMods Collections. label Sep 19, 2024
@Al12rs
Copy link
Contributor

Al12rs commented Sep 19, 2024

Marking this ready to review. Not sure if people doing the styling will want to get that in before or after this gets merged.

We can do styling in a future PR

@halgari halgari merged commit 05fa47a into main Sep 19, 2024
12 checks passed
@halgari halgari deleted the collection-cards branch September 19, 2024 13:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Epic: Collections This is related to NexusMods Collections.
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants