Skip to content
Open
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 hillstack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"@mui/material": "^7.3.6",
"@mui/x-charts": "^8.23.0",
"@mui/x-data-grid": "^8.22.1",
"@mui/x-tree-view": "^8.27.2",
"@prisma/adapter-pg": "^7.1.0",
"@prisma/client": "^7.1.0",
"@tanstack/react-query": "^5.69.0",
Expand Down
107 changes: 90 additions & 17 deletions hillstack/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion hillstack/src/app/_home/dashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ import SellIcon from '@mui/icons-material/Sell';
import { Card, Grid, Toolbar } from '@mui/material';
import Box from '@mui/material/Box';
import type React from 'react';
import { InterestFeed } from '~/app/_home/widgets/interestFeed';
import { LegislationCalendar } from '~/app/_home/widgets/legislationCalendar';
import { LegislationFollowed } from '~/app/_home/widgets/legislationFollowed';
import { LegislationTags } from '~/app/_home/widgets/legislationTags';
import { LegislatorFollowed } from '~/app/_home/widgets/legislatorFollowed';
import { InterestFeed } from '~/app/_home/widgets/interestFeed';

function DashboardWidget({
title,
Expand Down
18 changes: 11 additions & 7 deletions hillstack/src/app/_home/widgets/interestFeed.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
'use client';

import { Box, Button, List, ListItem, ListItemButton, Typography } from '@mui/material';
import {
Box,
Button,
List,
ListItem,
ListItemButton,
Typography,
} from '@mui/material';
import Link from 'next/link';
import { useSession } from 'next-auth/react';
import type { RouterOutputs } from '~/trpc/react';
Expand Down Expand Up @@ -71,8 +78,8 @@ export function InterestFeed() {
textAlign='center'
variant='body2'
>
No bills found yet. Set up your interests to track
relevant legislation.
No bills found yet. Set up your interests to track relevant
legislation.
</Typography>
<Button
component={Link}
Expand All @@ -97,10 +104,7 @@ export function InterestFeed() {
{data.slice(0, 8).map((bill: InterestBill) => {
const summary = matchedSummary(bill);
return (
<ListItem
disablePadding
key={bill.legislation_id}
>
<ListItem disablePadding key={bill.legislation_id}>
<ListItemButton>
<Link
href={`/congress/bills/${bill.legislation_id}`}
Expand Down
4 changes: 1 addition & 3 deletions hillstack/src/app/congress/bills/[billId]/interestBadge.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,7 @@ export function InterestBadge({ legislationId }: { legislationId: number }) {
return (
<li key={ident}>
<Typography variant='caption'>
{heading
? `${slug} — ${heading}`
: slug}
{heading ? `${slug} — ${heading}` : slug}
</Typography>
</li>
);
Expand Down
2 changes: 1 addition & 1 deletion hillstack/src/app/congress/bills/[billId]/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export default async function BillLayout({
</Box>

<InterestBadge legislationId={Number(billId)} />
<BillTabs />
<BillTabs />
<Paper
elevation={0}
sx={{
Expand Down
6 changes: 5 additions & 1 deletion hillstack/src/app/congress/bills/[billId]/overview/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,11 @@ export default async function BillOverviewPage({
>
{data?.legislation_version?.map((version) => (
<TimelineNode
date={version.effective_date ?? version.created_at ?? new Date()}
date={
version.effective_date ??
version.created_at ??
new Date()
}
icon={ReadMoreIcon}
key={version.legislation_version}
title={
Expand Down
Loading