Skip to content

Commit

Permalink
routing: add link to ballot count report builder to reports screen
Browse files Browse the repository at this point in the history
  • Loading branch information
adghayes committed Oct 3, 2023
1 parent b1ce1f2 commit 46f1472
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions apps/admin/frontend/src/components/election_manager.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ import { checkPin } from '../api';
import { canViewAndPrintBallots } from '../utils/can_view_and_print_ballots';
import { WriteInsAdjudicationScreen } from '../screens/write_ins_adjudication_screen';
import { TallyReportBuilder } from '../screens/tally_report_builder';
import { BallotCountReportBuilder } from '../screens/ballot_count_report_builder';

export function ElectionManager(): JSX.Element {
const { electionDefinition, configuredAt, auth, hasCardReaderAttached } =
Expand Down Expand Up @@ -206,6 +207,9 @@ export function ElectionManager(): JSX.Element {
<Route exact path={routerPaths.tallyAllPrecinctsReport}>
<AllPrecinctsTallyReportScreen />
</Route>
<Route exact path={routerPaths.ballotCountReportBuilder}>
<BallotCountReportBuilder />
</Route>
<Route
exact
path={routerPaths.tallyVotingMethodReport({
Expand Down
1 change: 1 addition & 0 deletions apps/admin/frontend/src/router_paths.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ export const routerPaths = {
tallyBatchReport: ({ batchId }: BatchReportScreenProps): string =>
`/reports/tally-reports/batches/${batchId}`,
tallyReportBuilder: `/reports/tally-reports/builder`,
ballotCountReportBuilder: `/reports/ballot-count-reports/builder`,
tallyWriteInReport: '/reports/tally-reports/writein',
logicAndAccuracy: '/logic-and-accuracy',
testDecks: '/logic-and-accuracy/test-decks',
Expand Down
3 changes: 3 additions & 0 deletions apps/admin/frontend/src/screens/reports_screen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,9 @@ export function ReportsScreen(): JSX.Element {
<P>
<LinkButton to={routerPaths.tallyReportBuilder}>
Tally Report Builder
</LinkButton>{' '}
<LinkButton to={routerPaths.ballotCountReportBuilder}>
Ballot Count Report Builder
</LinkButton>
</P>
{tallyResultsInfo}
Expand Down

0 comments on commit 46f1472

Please sign in to comment.