-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add shadcn init with config * implement topnav component with tailwind * add button component * move Ht* components to a 'legacyUi' directory * update primary color * add dropdown menu * add Dropdown menu component, implement in top navigation bar, fix private route redirect user to desired URL on successful authentication * add sheet component * add separator UI component * add sheet UI component and modify compose and IDE configs, vitest UI now inlcudes the coverage report (since we're not using it anywhere else) * convert sidebar sheet to use tailwind and our internal component library * rename HaztrakSite directory to Site directory * add RcraProfile unit tests * add About feature spec file * add spec file for RegisterHero * ignore config files in vitest coverage * add router props to renderWithProvider mock * add unit test for Private Route * add unit tests for useAuth hook * WasteLineTable unit tests * WasteRowActions test file * initial manifest details test suite * ManifestList test suite * add initial profile test suite * siteDetails unit tests
- Loading branch information
1 parent
85ec774
commit dbb6697
Showing
133 changed files
with
2,767 additions
and
505 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
client/app/components/Charts/GeneratorStatusAreaChart/GeneratorStatusAreaChart.spec.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { render } from '@testing-library/react'; | ||
import { GeneratorStatusAreaChart } from './GeneratorStatusAreaChart'; | ||
import { describe, it } from 'vitest'; | ||
|
||
// This is a awful, dummy test we're using to run out dummy charts | ||
describe('GeneratorStatusAreaChart', () => { | ||
it('renders without crashing', () => { | ||
render(<GeneratorStatusAreaChart />); | ||
}); | ||
}); |
10 changes: 10 additions & 0 deletions
10
client/app/components/Charts/ManifestCountBarChart/ManifestCountBarChart.spec.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { render } from '@testing-library/react'; | ||
import { ManifestCountBarChart } from './ManifestCountBarChart'; | ||
import { describe, it } from 'vitest'; | ||
|
||
// This is a awful, dummy test we're using to run out dummy charts | ||
describe('ManifestCountBarChart', () => { | ||
it('renders without crashing', () => { | ||
render(<ManifestCountBarChart />); | ||
}); | ||
}); |
10 changes: 10 additions & 0 deletions
10
client/app/components/Charts/ManifestStatusPieChart/ManifestStatusPieChart.spec.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { ManifestStatusPieChart } from '~/components/Charts'; | ||
import { describe, it } from 'vitest'; | ||
import { renderWithProviders } from '~/mocks'; | ||
|
||
// This is a awful, dummy test we're using to run out dummy charts | ||
describe('ManifestStatusPieChart', () => { | ||
it('renders the pie without crashing', async () => { | ||
renderWithProviders(<ManifestStatusPieChart />); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,24 @@ | ||
import { NavItem } from '~/components/Layout/Nav/NavItem'; | ||
import { RoutesSection } from '~/components/Layout/Sidebar/SidebarRoutes'; | ||
import React from 'react'; | ||
import { Separator } from '~/components/ui/Separator/Separator'; | ||
|
||
interface SidebarSectionProps { | ||
section: RoutesSection; | ||
} | ||
|
||
export function NavSection({ section }: SidebarSectionProps) { | ||
return ( | ||
<> | ||
<hr className="my-0" /> | ||
<p className="text-secondary mt-1 mb-1">{section.name}</p> | ||
<div className="tw-mt-8"> | ||
<Separator /> | ||
<p className="tw-text-primary">{section.name}</p> | ||
{section.routes.map((route) => { | ||
return ( | ||
<div key={route.id}> | ||
<NavItem route={route} /> | ||
</div> | ||
); | ||
})} | ||
</> | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.