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

Update/swizzle doc card #3

Merged
merged 14 commits into from
Apr 6, 2023
Merged

Update/swizzle doc card #3

merged 14 commits into from
Apr 6, 2023

Conversation

Woozl
Copy link
Member

@Woozl Woozl commented Mar 29, 2023

This fetches the node and edge count from each service. Right now this does the fetch on the client side, every time the user loads the page. Ideally, I'd like to fetch only once at build time, or maybe once per app load. The node counts shouldn't change frequently enough to warrant querying the API every time the page is loaded.

image

DocCard component is swizzled to look at each label to see if it matches a data source. If so, the node/edge text is written, otherwise, the card uses the normal text (number of items in category). The default text is also used if there is an error fetching the data

@Woozl Woozl merged commit b13a650 into staging Apr 6, 2023
@Woozl Woozl deleted the update/swizzle-doc-card branch April 6, 2023 20:06
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.

1 participant