-
Notifications
You must be signed in to change notification settings - Fork 3
Ah.admin redesign #232
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
Ah.admin redesign #232
Conversation
| <Typography.Title level={3}>Admin Functions</Typography.Title> | ||
| <Flex gap={'40px 40px'} margin={'30px 0'}> | ||
| <ImageLinkCard href={Routes.ADD_SITES} image={Image1}> | ||
| {/* <LargeIcon component={FileAddOutlined React.ForwardRefExoticComponent<any></any>} /> */} |
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 this needed?
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.
🤦
| <Typography.Title level={4}>Add Sites</Typography.Title> | ||
| <UploadSitesForm /> | ||
| </DashboardContent> | ||
| <PageHeader |
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.
💯
chromium-52
left a comment
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!
|
This is defo just from my lack of understanding of the frontend, but why is there both an editsiteform and updatesiteform? I see that the request made upon Other than that, everything else is pretty clear to me. Great job on the redesign! |
Great questions! For the edit/update site forms, we have the "sites page" (you can access it at [base url]/site/[site id]), which is used to maintain site information. There's a difference between a site and a site entry - a site is the physical location of where a tree may go, so site-specific information includes address, latitude/longitude, etc. A site entry refers to what's actually at the site, namely the tree (if there is one) and information about it, such as species and status. If someone decides to replace the tree at a given site, we'd want to change the site entry information e.g. the species of the new tree, but since the site didn't change - it's still at the same place - we'd like to leave that be. The As for the request, we actually do use all of the information from the update site form - note the '...request,' where we define the Hopefully this all makes sense - let me know if have any more questions! |
That makes a lot more sense-- thanks for the thorough explanation. Just to be sure-- would it be correct to say that the |
chromium-52
left a comment
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.
👍 Quick comment but lgtm!
|
|
||
| const ICON_SIZE = 40; | ||
|
|
||
| interface AdminDashboardProps { |
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.
⛏️ this should be an unused interface that can be deleted (not sure why the linter didn't catch this tho)
Yep, I'd say that's a good way of thinking about it! |
Checklist
npm run checknpm run testWhy
Redesign the admin dashboard to consolidate admin features in one page
This PR
Screenshots
Dashboard:
Promote user modal:
Child account modal:
Verification Steps