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

Fix document data feature UI and cohort/concept set loading #458

Merged
merged 1 commit into from
Jun 28, 2023

Conversation

tjennison-work
Copy link
Collaborator

  • Editing a document data feature show an empty message instead of an oversized action bar. It would be better disallow editing of data features with no UI but there's no way for the outer app to check that. Future data feature designs chould take into account, or alternatively we could add an editable flag to the API.
  • Exiting and returning to a cohort or concept set from the export page could result in an error or endless spinner if no other action was taken that invalidated the SWR cache (e.g. switching apps). Instead of setting state as a side effect of fetching use a useEffect hook so state is always updated at least once, even if nothing is fetched.

* Editing a document data feature show an empty message instead of an
  oversized action bar. It would be better disallow editing of data
  features with no UI but there's no way for the outer app to check
  that. Future data feature designs chould take into account, or
  alternatively we could add an editable flag to the API.
* Exiting and returning to a cohort or concept set from the export page
  could result in an error or endless spinner if no other action was
  taken that invalidated the SWR cache (e.g. switching apps). Instead of
  setting state as a side effect of fetching use a useEffect hook so
  state is always updated at least once, even if nothing is fetched.
@tjennison-work tjennison-work merged commit e267d2c into main Jun 28, 2023
7 checks passed
@tjennison-work tjennison-work deleted the tj-cs branch June 28, 2023 14:27
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.

2 participants