Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
79 commits
Select commit Hold shift + click to select a range
472fc13
PLAT-536 #comment add logout #time 15m
brooketopcoder Mar 4, 2022
2ca5f17
PLAt-536 #comment fix link hover #time 5m
brooketopcoder Mar 7, 2022
80d4bbe
PLAT-536 #comment fix logo size #time 15m
brooketopcoder Mar 8, 2022
c981053
PLAT-764 #comment convert svgs to components and
brooketopcoder Mar 8, 2022
43c3b70
PLAT-764 #comment remove styling from SVGs;
brooketopcoder Mar 8, 2022
29b1ee5
PLAT-764 #comment refactor narrow tool selectors
brooketopcoder Mar 8, 2022
d14ae22
PLAT-764 #comment rename svgs folder #time 5m
brooketopcoder Mar 8, 2022
0aa2bbe
PLAT-764 #comment clean up styles and svgs; #time 30m
brooketopcoder Mar 8, 2022
25087d1
PLAT-764 #comment clean-up #time 5m
brooketopcoder Mar 8, 2022
a19de5c
PALT-764 #comment clean-up #time 5m
brooketopcoder Mar 8, 2022
5485f05
PLAT-764 #comment clean-up #time 5m
brooketopcoder Mar 8, 2022
dd5275e
PLAT-764 #comment clean-up #time 5m
brooketopcoder Mar 9, 2022
ecf205e
PLAT-764 #comment clean-upo #time 5m
brooketopcoder Mar 9, 2022
ce7209a
Merge branch 'master' into PLAT-754_tools-config
brooketopcoder Mar 9, 2022
6e902ec
PLAT-754 #comment convert url configs to constants;
brooketopcoder Mar 9, 2022
83d24b8
PLAT-754 #comment create and use route
brooketopcoder Mar 10, 2022
efd8e51
PLAT-745 #comment add child routes;
brooketopcoder Mar 10, 2022
f257056
PLAT-754 #comment configure sections in content
brooketopcoder Mar 10, 2022
38ceed9
PLAT-754 #comment replace route config
brooketopcoder Mar 10, 2022
0047be9
PLAT-754 #comment hide sections for tools
brooketopcoder Mar 10, 2022
9c467d3
PLAT-754 #comment fix styling for expanded
brooketopcoder Mar 10, 2022
6b00439
PLAT-754 #comment route provider cleanup #time 1h
brooketopcoder Mar 10, 2022
bdf45cf
PLAT-754 #comment tools narrow clean-up; #time 30m
brooketopcoder Mar 10, 2022
4420617
PLAT-764 #comment clean-up #time 5m
brooketopcoder Mar 10, 2022
a7df686
PLAT-7584 #comment clean-up #time 10m
brooketopcoder Mar 10, 2022
9478eff
POLAT-754 #comment clean-up #time 5m
brooketopcoder Mar 10, 2022
37928c7
PLAT-754 #comment clean-up #time 5m
brooketopcoder Mar 10, 2022
784461e
PLAT-754 #comment clean-up #time 5m
brooketopcoder Mar 10, 2022
9d161e8
Merge branch 'master' into PLAT-754_tools-config
brooketopcoder Mar 10, 2022
8011b5c
PLAT-754 #comment update readme #time 10m
brooketopcoder Mar 10, 2022
3070fc5
Merge branch 'master' into PLAT-754_tools-config
brooketopcoder Mar 10, 2022
9da630d
Merge branch 'master' into PLAT-754_tools-config
brooketopcoder Mar 10, 2022
fbf5296
PLAT-754 #comment fix build issues #time 10m
brooketopcoder Mar 10, 2022
74f84ba
PLAT-754 #comment clean-up #time 5m
brooketopcoder Mar 10, 2022
e5f1fc0
Merge branch 'master' into PLAT-754_tools-config
brooketopcoder Mar 11, 2022
ddad763
PLAT-754 #comment remove commented out tests #time 5m
brooketopcoder Mar 11, 2022
0687f21
PLAT-802 #comment create profile util;
brooketopcoder Mar 11, 2022
9d38a6c
PLAT-825 #comment fix profile styling;
brooketopcoder Mar 14, 2022
20411b1
Merge branch 'PLAT-802_profile-util' into PLAT-825_form-text-fields
brooketopcoder Mar 14, 2022
6373d82
PLAT-825 #comment consolidate font styles; #time 1h
brooketopcoder Mar 14, 2022
3beac2d
PLAT-828 #comment create button component;
brooketopcoder Mar 14, 2022
9d0dc29
PLAT-825 Form Text Fields & Profile - PLAT-802_profile-util (#46)
brooketopcoder Mar 15, 2022
63b1c87
PLAT-828 #comment use axios for xhr;
brooketopcoder Mar 15, 2022
353f0d4
PLAT-828 #comment rename all services to
brooketopcoder Mar 15, 2022
2738b0e
PLAT-828 #comment add update password functions
brooketopcoder Mar 15, 2022
40f51dd
Merge branch 'PLAT-802_profile-util' into PLAT-828_profile-api
brooketopcoder Mar 15, 2022
a5288a7
PLAT-828 #comment clean-up #time 5m
brooketopcoder Mar 15, 2022
da90fd6
PLAT-828 #comment clean-up #time 10m
brooketopcoder Mar 16, 2022
322f729
PLAT-828 #comment use v3 api for pw change
brooketopcoder Mar 16, 2022
3d1e645
PLAT-828 profile api to PLAT-802_profile-util (#50)
brooketopcoder Mar 16, 2022
29b6408
Merge branch 'PLAT-802_profile-util' into PLAT-826_validation
brooketopcoder Mar 16, 2022
cd5d848
PLAT-826 #comment reset pw fields upon submission
brooketopcoder Mar 16, 2022
07a211a
PLAT-826 #comment permit buttons
brooketopcoder Mar 16, 2022
dce60af
PLAT-826 #comment support for fields
brooketopcoder Mar 16, 2022
4e36e0a
PLAT-826 #comment clean-up #time 10m
brooketopcoder Mar 16, 2022
71a7cec
PLAT-826 #comment clean-up #time 5m
brooketopcoder Mar 16, 2022
7282b63
PLAT-826 #comment fix eslint rules #time 25m
brooketopcoder Mar 16, 2022
1814110
PLAT-895 #comment convert tool tool to work intake
brooketopcoder Mar 17, 2022
1ca1bec
PROD-265 #comment Merge branch 'PROD-265_work-intake' into PROD-500_c…
brooketopcoder Mar 23, 2022
fb5a995
PROD-500 #comment clean-up #time 10m
brooketopcoder Mar 23, 2022
8be91d5
PROD-500 #comment rename profileContext
brooketopcoder Mar 24, 2022
84f068f
PROD-500 #comment clean up error handling; #time 10m
brooketopcoder Mar 24, 2022
9dc2fcb
PROD-500 #comment create work intake form;
brooketopcoder Mar 24, 2022
4bd77ec
PROD-500 #comment rename routecontext #time 5m
brooketopcoder Mar 24, 2022
105c887
PROD-500 #comment clean-up #time 10m
brooketopcoder Mar 24, 2022
7722e6f
PROD-500 #comment remove ordering;
brooketopcoder Mar 24, 2022
ceb93fc
PROD-1024 #comment fix form element naming #tme 5m
brooketopcoder Mar 24, 2022
743119d
PROD-500 create intake - PROD-265_work-intake (#64)
brooketopcoder Mar 24, 2022
2428532
PROD-500 #comment textarea #time 30m
brooketopcoder Mar 24, 2022
36e2403
Merge branch 'PROD-265_work-intake' into PROD-1024_textarea
brooketopcoder Mar 24, 2022
a3f0bbb
PROD-1024 #comment clean up after merge #time 15m
brooketopcoder Mar 24, 2022
8d56e48
PROD-1024 #comment fix lint issues #time 5m
brooketopcoder Mar 24, 2022
74eb470
Merge pull request #65 from topcoder-platform/PROD-1024_textarea
testflyjets Mar 24, 2022
2fc55a9
PROD-501 #comment url validation #time 2h
brooketopcoder Mar 25, 2022
ff79a91
PROD-501 #comment clean-up async #time 15m
brooketopcoder Mar 25, 2022
38025f8
Merge pull request #66 from topcoder-platform/PROD-501_link
testflyjets Mar 25, 2022
0d6f636
PROD-501 #comment form clean-up #time 15m
brooketopcoder Mar 25, 2022
9010f7d
Merge pull request #67 from topcoder-platform/PROD-501_link-check
testflyjets Mar 25, 2022
4da04d1
PROD-265 Simpilfied Work Intake UI
brooketopcoder Mar 28, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ import { toast, ToastContainer } from 'react-toastify'
import { EnvironmentConfig } from './config'
import { Header } from './header'
import { analyticsInitialize, logInitialize, ProfileProvider } from './lib'
import { RouteContext, RouteContextData } from './lib/route-provider'
import { routeContext, RouteContextData } from './lib/route-provider'

analyticsInitialize(EnvironmentConfig)
logInitialize(EnvironmentConfig)

const App: FC<{}> = () => {

const { allRoutes }: RouteContextData = useContext(RouteContext)
const { allRoutes }: RouteContextData = useContext(routeContext)

const routeElements: Array<ReactElement> = allRoutes
.map(route => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import classNames from 'classnames'
import { Dispatch, FC, SetStateAction, useContext, useState } from 'react'

import { IconOutline, RouteContext, RouteContextData } from '../../../lib'
import { IconOutline, routeContext, RouteContextData } from '../../../lib'

import { ToolSelectorNarrow } from './tool-selector-narrow'
import styles from './ToolSelectorsNarrow.module.scss'

const ToolSelectorsNarrow: FC<{}> = () => {

const { toolsRoutes }: RouteContextData = useContext(RouteContext)
const { toolsRoutes }: RouteContextData = useContext(routeContext)
const [isOpen, setIsOpen]: [boolean, Dispatch<SetStateAction<boolean>>] = useState<boolean>(false)

const closed: JSX.Element = <IconOutline.MenuIcon />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { FC, useContext } from 'react'

import { RouteContext, RouteContextData } from '../../../lib'
import { routeContext, RouteContextData } from '../../../lib'

import { ToolSelectorWide } from './tool-selector-wide'
import styles from './ToolSelectorsWide.module.scss'

const ToolSelectorsWide: FC<{}> = () => {

const { toolsRoutes }: RouteContextData = useContext(RouteContext)
const { toolsRoutes }: RouteContextData = useContext(routeContext)

const selectors: Array<JSX.Element> = toolsRoutes
.map(route => <ToolSelectorWide key={route.title} route={route} />)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const ToolSelectorWide: FC<ToolSelectorWideProps> = (props: ToolSelectorWideProp
<Link
className='large-tab'
tabIndex={-1}
to={route}
to={route}
>
{title}
</Link>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { FC, useContext } from 'react'

import { ProfileContext, ProfileContextData } from '../../../../lib'
import { profileContext, ProfileContextData } from '../../../../lib'
import '../../../../lib/styles/index.scss'

import { ProfileLoggedIn } from './profile-logged-in'
Expand All @@ -12,7 +12,7 @@ const ProfileSelector: FC<{}> = () => {
const {
initialized,
profile,
}: ProfileContextData = useContext(ProfileContext)
}: ProfileContextData = useContext(profileContext)

// if we're not initialized, don't render anything
if (!initialized) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
import { Dispatch, FC, SetStateAction, useContext, useState } from 'react'

import { Avatar, IconOutline, logInfo , ProfileContext, ProfileContextData } from '../../../../../lib'
import {
Avatar,
IconOutline,
logInfo,
profileContext,
ProfileContextData,
} from '../../../../../lib'

import { ProfilePanel } from './profile-panel'
import styles from './ProfileLoggedIn.module.scss'

const ProfileLoggedIn: FC<{}> = () => {

const { profile }: ProfileContextData = useContext(ProfileContext)
const { profile }: ProfileContextData = useContext(profileContext)
const [profilePanelOpen, setProfilePanelOpen]: [boolean, Dispatch<SetStateAction<boolean>>] = useState<boolean>(false)

if (!profile) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ import { Link } from 'react-router-dom'

import {
authUrlLogout,
ProfileContext,
profileContext,
ProfileContextData,
RouteContext,
routeContext,
RouteContextData,
} from '../../../../../../lib'

Expand All @@ -17,8 +17,8 @@ interface ProfilePanelProps {

const ProfilePanel: FC<ProfilePanelProps> = (props: ProfilePanelProps) => {

const { profile }: ProfileContextData = useContext(ProfileContext)
const { getPath }: RouteContextData = useContext(RouteContext)
const { profile }: ProfileContextData = useContext(profileContext)
const { getPath }: RouteContextData = useContext(routeContext)

if (!profile) {
// this should never happen
Expand Down
12 changes: 8 additions & 4 deletions src/lib/button/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,20 @@ import { Link } from 'react-router-dom'

import styles from './Button.module.scss'

interface ButtonProps {
readonly buttonStyle?: 'primary' | 'secondary' | 'tertiary' | 'text'
export type ButtonSize = 'sm' | 'md' | 'lg' | 'xl'
export type ButtonStyle = 'primary' | 'secondary' | 'tertiary' | 'text'
export type ButtonType = 'button' | 'submit'

export interface ButtonProps {
readonly buttonStyle?: ButtonStyle
readonly className?: string
readonly disable?: boolean
readonly label: string
readonly onClick?: (event?: any) => void
readonly route?: string
readonly size?: 'sm' | 'md' | 'lg' | 'xl'
readonly size?: ButtonSize
readonly tabIndex: number
readonly type?: 'button' | 'submit'
readonly type?: ButtonType
readonly url?: string
}

Expand Down
6 changes: 6 additions & 0 deletions src/lib/button/Buttons.test.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import '@testing-library/jest-dom'

describe('<Button />', () => {

test('it should render the content', () => { })
})
11 changes: 10 additions & 1 deletion src/lib/button/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,10 @@
export { default as Button } from './Button'
export { default as Button } from './Button'
export
// tslint:disable-next-line: no-unused-expression
type { ButtonSize } from './Button'
export
// tslint:disable-next-line: no-unused-expression
type { ButtonStyle } from './Button'
export
// tslint:disable-next-line: no-unused-expression
type { ButtonType } from './Button'
1 change: 0 additions & 1 deletion src/lib/form-elements/form-field-wrapper/index.ts

This file was deleted.

This file was deleted.

15 changes: 0 additions & 15 deletions src/lib/form-elements/form-functions/form-input.model.ts

This file was deleted.

131 changes: 0 additions & 131 deletions src/lib/form-elements/form-functions/form.functions.tsx

This file was deleted.

11 changes: 0 additions & 11 deletions src/lib/form-elements/form-functions/index.ts

This file was deleted.

3 changes: 0 additions & 3 deletions src/lib/form-elements/index.ts

This file was deleted.

6 changes: 0 additions & 6 deletions src/lib/form-elements/text-input/Text-Input.test.tsx

This file was deleted.

45 changes: 0 additions & 45 deletions src/lib/form-elements/text-input/Text-Input.tsx

This file was deleted.

1 change: 0 additions & 1 deletion src/lib/form-elements/text-input/index.ts

This file was deleted.

Loading