-
Notifications
You must be signed in to change notification settings - Fork 2
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
task/wg-76-project-listing-query #265
Conversation
@@ -1,11 +1,7 @@ | |||
import React, { useState } from 'react'; | |||
import { Project, DesignSafeProject } from '../../types'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can drop these.
<th>Project</th> | ||
<th> | ||
<CreateMapModal isOpen={isModalOpen} toggle={toggleModal} /> | ||
<Button |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a linter preference in syntax formatting (prefers one line apparently).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are 3 linting errors that are tiny (drop line 2, tweak formatting on line 40 button), but otherwise all works for me locally. LGTM after the linting is cleaned up.
apiService: ApiService.DesignSafe, | ||
}); | ||
return query; | ||
}; | ||
|
||
export const mergeDesignSafeProject = ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Could useProjects be used like useDsProject within mergeDesignSafeProject to reduce complexity when using the hook in components?
- follow on suggestion: could this be renamed to something like useProjectsWithDesignSafeInformation 🤔
- there is an issue currently where ProjectListing component is rendering table even though data isn't completely loaded and processed (will move to slack to discuss).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the suggestion! That was exactly what I was going for but couldn't get right. Appreciate the feedback and have updated the PR.
requests into one hook
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
* Update config files * task/wg-76-project-listing-query (#265) * task/wg-76-project-listing-query * Address linting errors * - Combines DesignSafe and Hazmapper project get requests into one hook * - Linting * Add local version of QueryNavItem to illustrate issue * Use @tacc/core-components version 0.0.3-beta.0 * Fix prettier issues * Update package lock * Update package-lock.json again * hotfix: simplify imports in react app (#260) * Simplify imports in react app * Fix linting * Revert changes to core-wrappers * Add maping to jest * Fix linting * Fix pretty issues * Remove unused imports from mistake in conflict resolution * Update as core-components is now installed from package --------- Co-authored-by: sophia-massie <96220951+sophia-massie@users.noreply.github.com>
* feat: tup-700 replace core-components + /wrappers * fix: FieldWrapperFormik not found Problem was forgetting to build core-components before packing. * fix: FieldWrapper… fields crashed form Problem was… core-components not coded/tested for external usage. Fixes in TACC/tup-ui: TACC/tup-ui@cb73d54 TACC/tup-ui@836f372 * chore: save latest core-components hash * Feat/tup 700 core components node pkg use pkg fixes (#272) * Update config files * task/wg-76-project-listing-query (#265) * task/wg-76-project-listing-query * Address linting errors * - Combines DesignSafe and Hazmapper project get requests into one hook * - Linting * Add local version of QueryNavItem to illustrate issue * Use @tacc/core-components version 0.0.3-beta.0 * Fix prettier issues * Update package lock * Update package-lock.json again * hotfix: simplify imports in react app (#260) * Simplify imports in react app * Fix linting * Revert changes to core-wrappers * Add maping to jest * Fix linting * Fix pretty issues * Remove unused imports from mistake in conflict resolution * Update as core-components is now installed from package --------- Co-authored-by: sophia-massie <96220951+sophia-massie@users.noreply.github.com> * Bump package-lock.json * Remove local QueryNavItem --------- Co-authored-by: Nathan Franklin <nathan.franklin@gmail.com> Co-authored-by: sophia-massie <96220951+sophia-massie@users.noreply.github.com>
Overview:
PR Status:
Related Jira tickets:
Summary of Changes:
Updates project type and hook so that the merged response from DesignSafe and Hazmapper load before loading the project listing
Testing Steps:
if (isError)
orif {isLoading}
toif (!isError)
orif (isLoading)
to check the display of those states.UI Photos:
Notes:
TODO:
Edit and Trash buttons just open the map at this point. A delete and edit request have not been added yet.