Conversation
2ec188f to
c341bd6
Compare
components/icons/down-caret.icon.tsx
Outdated
| > | ||
| <path | ||
| d="M4.07001 0.18775C4.27018 -0.0624531 4.65072 -0.0624533 4.85088 0.18775L8.81057 5.13736C9.07248 5.46474 8.83939 5.94971 8.42014 5.94971H0.500762C0.0815088 5.94971 -0.151578 5.46474 0.110327 5.13736L4.07001 0.18775Z" | ||
| fill="#2D3748" |
There was a problem hiding this comment.
Let's have this component accept a colour arg, so that we can easily change colours when using this icon in the future
There was a problem hiding this comment.
i think this colour you have in here specifically is not in constants/recruitmentPlatformPalette.ts yet, would you mind adding it in the appropriate place?
| size="sm" | ||
| disabled={isButtonDisabled} | ||
| onClick={() => setStage?.(nextStage)} | ||
| className="shrink-0 whitespace-nowrap !px-4 !py-2 !rounded-[20px] hover:!bg-blue hover:!border-blue hover:!text-white disabled:!opacity-60" |
There was a problem hiding this comment.
I don't think the hover states for the buttons are working... woudl you mind looking into that?
There was a problem hiding this comment.
could you make this in to a react element and put it in icons? same comments as above, it would be great if we could have the element accept a colour arg that we can directly control in the pages
There was a problem hiding this comment.
Do you mind removing the modal? I think Sparsh's PR for a general modal we can use for conflict report, we will be using that instead.
| <Link href={backToHomeHref} passHref> | ||
| <a | ||
| className="font-source no-underline inline-flex justify-center items-center gap-2 w-fit cursor-pointer shrink-0 hover:opacity-90 rounded-full" | ||
| style={{ |
There was a problem hiding this comment.
It seems like we can do some of these styles via tailwind?
| </svg> | ||
| ); | ||
|
|
||
| export const ReviewScoreInput: React.FC<Props> = ({ |
There was a problem hiding this comment.
Let's not type our components as React.FC, no longer standard practice. Just type the props instead :)
| <div className="flex flex-col gap-10 w-full"> | ||
| {questions.map((question, idx) => ( | ||
| <div | ||
| key={idx} |
There was a problem hiding this comment.
Key as an index is considered bad practice, consider seeing if there's a way to change this.
| } | ||
|
|
||
| export const ReviewRubric = ({ scoringCriteria }: Props) => { | ||
| export const ReviewRubric: React.FC<Props> = ({ scoringCriteria }) => { |
There was a problem hiding this comment.
Revert this change to what it was before.
| </div> | ||
| <div className="flex flex-col gap-6 w-full"> | ||
| {scoringCriteria.map((criteria, idx) => ( | ||
| <div key={idx} className="flex flex-col gap-2"> |
There was a problem hiding this comment.
Consider seeing if you can change the key from idx so something else
| alignSelf: "stretch", | ||
| color: "rgba(37, 37, 37, 0.80)", | ||
| fontFeatureSettings: "'liga' off, 'clig' off", | ||
| fontSize: "16px", |
There was a problem hiding this comment.
See if there's a tailwind way to do these styles
| colour?: string; | ||
| } | ||
|
|
||
| /** Down caret - mirrored up caret */ |
There was a problem hiding this comment.
I think this is obvious from the name
| const UpCaret = () => ( | ||
| <svg |
There was a problem hiding this comment.
Why we making the UpCaret again if we have a file with an UpCaret already? Lmk if I'm missing something
| ); | ||
|
|
||
| /** Down caret - mirrored up caret */ | ||
| const DownCaret = () => ( |
| onChange={handleInputChange} | ||
| className="h-full flex-1 min-w-0 border-0 focus:outline-none placeholder:text-[#2D3748] [appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none" | ||
| style={{ | ||
| alignSelf: "stretch", |
There was a problem hiding this comment.
Can we make these tailwind impossible? If not lmk here
| style={{ | ||
| background: "#FFFFFF", | ||
| color: "#252525", | ||
| borderBottom: "1px solid #C4C4C4", |
There was a problem hiding this comment.
Yeah we shouldn't be inlining styles if we can tailwind it instead
| <div className="flex flex-col gap-10 w-full"> | ||
| {questions.map((question, idx) => ( | ||
| <div | ||
| key={`${question}-${idx}`} |
| className="font-poppins" | ||
| style={{ | ||
| color: theme.palette.text.primary, | ||
| fontSize: "16px", |
| style={{ alignItems: "flex-start" }} | ||
| className="rounded-r px-4 py-3 w-full font-source" | ||
| style={{ | ||
| borderLeft: `4px solid ${theme.palette.semantics.border.light}`, |
| style={{ | ||
| color: theme.palette.text.primary, | ||
| fontSize: "16px", | ||
| fontWeight: 400, |
There was a problem hiding this comment.
I think we can import this from somewhere or tailwind it. I think cursor/claude code has a codebase grep
Notion ticket link
Revamp Review Scoring/Rubric Page Layout
Implementation description
Steps to test
What should reviewers focus on?
Checklist