-
Notifications
You must be signed in to change notification settings - Fork 0
[Core] Quality of Life Updates #140
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
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
ahweigl
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.
Great stuff!
couple of optional suggestions you could include in this PR:
- make ticket and link here for proj management purposes to track what was done here on the board?
- update readme (idk if it needs anything but Im gonna take a guess no one's looked at it since sept)
- slight pushback on brad's file layout suggestion, I would maybe argue that actions files should go in their respective directories rather than an
/actionsfolder in/app, likesrc/app/(web)/crm/positions/actions.ts, unless you foresee having a lot of actions files that would warrant the folder - why is
/api/positionsingular (position vs positionS)- naming should be consistent imo - might be worth renaming
/api/position/[id]/candidatesto reflect it being candidate pools so it's clearer to distinguish from/api/candidates - abstract
<div> Loading... </div>into a reusable loading state component for across the app? - maybe check if
globals.cssneeds any cleanup
otherwise LGTM 😁
src/lib/components/core/Sidebar.tsx
Outdated
| className="h-7 w-7 overflow-hidden rounded group-data-[collapsible=icon]:mx-auto group-data-[collapsible=icon]:h-5 group-data-[collapsible=icon]:w-5" | ||
| style={ | ||
| !auth.activeOrganization?.logo | ||
| ? { background: '#858C9C' } |
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.
nit: inline color definitions scary, should use a constant defined in globals.css or smth
| alt="Winston Logo" | ||
| width={28} | ||
| height={28} | ||
| className="h-full w-full object-cover object-center brightness-0 invert" |
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.
ooo didnt know this was the way to invert svg colors, neat
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.
nice!!
| throw new InternalServerException(`Judge0 API error: ${jsonResponse.error}`); | ||
| constructor() { | ||
| this.headers = { | ||
| // eslint-disable-next-line @typescript-eslint/no-non-null-assertion |
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.
oop is the non null assertion needed here?
| @@ -1,9 +1,9 @@ | |||
| 'use client'; | |||
|
|
|||
| import Image from 'next/image'; | |||
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.
Are we removing the navbar? It would free up some vertical screen space and I don't think we really utilize the space it takes up and don't foresee future use cases for the space - lmk what you think
[Core] - Repo QoL Updates
Changes
AppSidebar.tsxandSidebar.tsx(crm)part of our routing and using that as the middleware route/ui/coreand/modalfolders where:uiis for strictly shad componentscoreis for app specific componentsmodalis for modal componentsChecklist
Please go through all items before requesting reviewers:
Closes #142, #141