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
7 changes: 7 additions & 0 deletions apps/expo/eslint.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,11 @@ export default defineConfig(
},
baseConfig,
reactConfig,
{
// node:test's it()/describe() return promises by design.
files: ["**/*.test.ts", "**/*.test.tsx"],
rules: {
"@typescript-eslint/no-floating-promises": "off",
},
},
);
4 changes: 3 additions & 1 deletion apps/expo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"lint": "eslint --flag unstable_native_nodejs_ts_config",
"typecheck": "tsc --noEmit",
"build:ios": "expo prebuild --platform ios --clean",
"build:android": "expo prebuild --platform android --clean"
"build:android": "expo prebuild --platform android --clean",
"test": "tsx --test \"src/**/*.test.ts\""
},
"dependencies": {
"@acme/ui": "workspace:*",
Expand Down Expand Up @@ -81,6 +82,7 @@
"eslint": "catalog:",
"prettier": "catalog:",
"tailwindcss": "catalog:",
"tsx": "^4.21.0",
"typescript": "~6.0.3"
},
"overrides": {
Expand Down
4 changes: 4 additions & 0 deletions apps/expo/src/app/(tabs)/elections.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import type { Contest } from "@acme/api";
import { AddressAutocomplete } from "~/components/AddressAutocomplete";
import { ElectionHero } from "~/components/ElectionHero";
import { ElectionResultsSection } from "~/components/ElectionResultsSection";
import { LocalDecisionsPreview } from "~/components/LocalDecisionsPreview";
import { RepsSection } from "~/components/RepsSection";
import { Text } from "~/components/Themed";
import { Card, Icon, Kicker, Segmented, TabScreen } from "~/components/ui";
Expand Down Expand Up @@ -287,6 +288,9 @@ export default function ElectionsScreen() {
</View>
)}

{/* local government decisions — what city hall is doing right now */}
<LocalDecisionsPreview />

{/* election hero — what election is happening, what it means */}
{selected && <ElectionHero election={selected} />}

Expand Down
Loading