Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 1 addition & 0 deletions changelog.d/aca-calc-tools-menu.added.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add the ACA calculator (`/us/aca-calc`) to the US Tools menu, first after the PolicyEngine app, matching policyengine.org's list.
1 change: 1 addition & 0 deletions src/layout/PolicyEngineTools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ export const policyEngineTools: Readonly<
Partial<Record<string, readonly PolicyEngineTool[]>>
> = Object.freeze({
us: freezeTools([
{ slug: 'aca-calc', label: 'ACA calculator' },
{ slug: 'cliffwatch', label: 'CliffWatch' },
{ slug: 'coverage-compass', label: 'Coverage Compass' },
{ slug: 'givecalc', label: 'GiveCalc' },
Expand Down
3 changes: 2 additions & 1 deletion tests/layout/PolicyEngineSiteConfig.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ const origins = fc
);

const US_TOOLS = [
['ACA calculator', 'aca-calc'],
['CliffWatch', 'cliffwatch'],
['Coverage Compass', 'coverage-compass'],
['GiveCalc', 'givecalc'],
Expand Down Expand Up @@ -191,7 +192,7 @@ describe('PolicyEngine Tools menu', () => {
external: true,
});
expect(tools?.children?.[1].href).toBe(
'https://staging.policyengine.org/us/cliffwatch',
'https://staging.policyengine.org/us/aca-calc',
);
});

Expand Down
1 change: 1 addition & 0 deletions tests/layout/PolicyEngineToolsNav.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ function mobileGroupRows(menu: HTMLElement, label: string) {

const US_ROWS = [
['PolicyEngine app', 'https://app.policyengine.org/us'],
['ACA calculator', 'https://policyengine.org/us/aca-calc'],
['CliffWatch', 'https://policyengine.org/us/cliffwatch'],
['Coverage Compass', 'https://policyengine.org/us/coverage-compass'],
['GiveCalc', 'https://policyengine.org/us/givecalc'],
Expand Down