-
Notifications
You must be signed in to change notification settings - Fork 21
PROD-2643 PROD-2619 PROD-2620 PROD-2760 PROD-2644 Fix the issues in self-service -> dev #371
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
…he previously visited page, not the Start Work page
…ther work type's draft, the bug hunt drafts cannot be opened
|
I updated the PR name to match our preferred convention. For future ref, I added more info to the README: https://github.com/topcoder-platform/platform-ui#pull-requests |
brooketopcoder
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.
Excellent work @asadath1395 !
All my comments are super nit-picky. Let me know if you have any questions, etc.
| @import '../styles/includes'; | ||
|
|
||
| .iconWrapper { | ||
| height: 48px; |
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.
let's either use use the icon size mixins for the wrapper or the $space-mxx var
@mixin icon-mxx;
or
height: $space-mxx;
width: $space-mxx;
| width: 48px; | ||
| margin: 0 $space-lg $space-lg $space-lg; | ||
| background: $tc-grad12; | ||
| border-radius: 24px; |
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.
let's use the space var here too
| BugHuntFormConfig.buttons.primaryGroup[1].onClick = () => { setAction('submit') } | ||
| if (BugHuntFormConfig.buttons.secondaryGroup) { | ||
| BugHuntFormConfig.buttons.secondaryGroup[0].onClick = () => { navigate(-1) } | ||
| BugHuntFormConfig.buttons.secondaryGroup[0].onClick = () => { navigate('/self-service/wizard') } |
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.
All routes should be defined in work.routes.tsx
| @@ -0,0 +1,17 @@ | |||
| import classNames from 'classnames' | |||
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.
Let's move this directory to be nested in the svgs directory and rename the component file IconWrapper.tsx.
| import { FC } from 'react' | ||
|
|
||
| import { IconOutline, textFormatMoneyLocaleString, Tooltip } from '../../../lib' | ||
| import IconWrapper from '../../../lib/icon-wrapper' |
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.
We need to add a barrel file to the icon-wrapper directory and export the component from the parent /lib directory:
src-ts/lib/svgs/icon-wrapper/index.ts
export { default as IconWrapper } from './icon-wrapper'
src-ts/lib/svgs/index.ts
export * from './icon-wrapper'
src-ts/tools/work/work-service-price/WorkServicePrice.tsx
import { IconOutline, IconWrapper, textFormatMoneyLocaleString, Tooltip } from '../../../lib'
| import { FC, SVGProps } from 'react' | ||
|
|
||
| import { IconOutline } from '../../../../lib' | ||
| import IconWrapper from '../../../../lib/icon-wrapper' |
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.
See prior comment about exporting/importing from the /lib/index.ts
src-ts/tools/work/work-table/work-table-title-renderer/WorkTableTitleRenderer.tsx
Show resolved
Hide resolved
| WorkTypeCategoryDataIcon, | ||
| WorkTypeCategoryDesignIcon, | ||
| WorkTypeCategoryUnknownIcon, | ||
| Work, |
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.
Weird--not sure why it changed the tabbing from 4 spaces to 2 spaces here, but 4 was correct.
| Icon = ( | ||
| <IconWrapper | ||
| className={styles['qa-icon']} | ||
| icon={<IconOutline.BadgeCheckIcon width={48} height={48} />} |
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.
The Icon wrapper already assigns a height/width to the svg element using a css mixin, which is the preferred method, so there is no need to specify them here.
src/IntakeForm.jsx
Outdated
| import { INTAKE_FORM_ROUTES as DATA_ADVISORY_INTAKE_FORM_ROUTES } from "./constants/products/DataAdvisory"; | ||
| import { INTAKE_FORM_ROUTES as WEBSITE_DESIGN_INTAKE_FORM_ROUTES } from "./constants/products/WebsiteDesign"; | ||
| import { INTAKE_FORM_ROUTES as WEBSITE_DESIGN_LEGACY_INTAKE_FORM_ROUTES } from "./constants/products/WebsiteDesignLegacy"; | ||
| import { BUG_HUNT_ROUTE } from "./constants/products/BugHunt"; |
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.
Anything to do w/routes should be defined in src-ts/tools/work/work.routes.tsx.
…ontact support form
|
@brooketopcoder Appreciate you for taking the time to review this PR. I will resolve all PR comments. Fyi i have added one more bug fix to this PR as its all part of the challenge. Please review |
|
@brooketopcoder I have addressed all the comments. Please re-review. Thanks |
brooketopcoder
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.
@asadath1395 Thanks for addressing all my comments. I have 1 more question...
Fixes the following issues