-
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-240: Tile Layers Panel #304
Conversation
* Update params with analytics_params * Use const now for url
c83faeb
to
ba9a503
Compare
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.
Looks good to me 👍
left some comments, but i think they are all ones we can ignore or consider later. just take a look at them.
const isAuthenticated = useSelector((state: RootState) => | ||
isTokenValid(state.auth.authToken) | ||
); | ||
const canSaveForm = isAuthenticated && !isPublicView; |
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.
no need to change but you could simplify to const canSaveForm = isAuthenticated
. only authed users can see a private map (!isPublicView
); handled here: https://github.com/TACC-Cloud/hazmapper/blob/main/react/src/AppRouter.tsx#L60-L65
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.
Is it correct to say that authed users cannot see a public view?
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.
authed users or unauthed users can see a public view (project-public/{uuid}
) while auth is required for the "private" route of project/{uuid}
.
Ugh, i see i miswrote my comment. 🫤 i meant to write
const canSaveForm = !isPublicView;
return ( | ||
<Layout {...props}> | ||
<Flex vertical className={styles.root}> | ||
<Header className={styles.header}>{panelTitle}</Header> |
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.
in Feb, should we look at making the header take up smaller space?
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.
What size were you thinking?
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 slightly smaller text and then less empty space. but just my thoughts; looks good as is 👍
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.
I'm seeing a bug where if you change the layers but don't click save, back out of the project map, and come back. It breaks the map.
I change the layers here, wanted them to reset to what they were, when to home page, and went back to the map. Now it won't load. After about 2 min, the map resets and the project loads again.
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 thanks for the quick fix
Overview:
<Layout>
from antdPR Status:
Related Jira tickets:
Testing Steps:
UI Photos:
Notes:
TODO: