Skip to content

Conversation

@AnushkaNilangekar
Copy link
Collaborator

@AnushkaNilangekar AnushkaNilangekar commented Oct 10, 2025

Fixes #142

Description

Added a new AI & ML info page that explains PolicyEngine’s AI work, shows resource cards and a timeline, includes a how-it-works two-column section with an image, and embeds a demo video. The page reuses existing components and image assets.

Changes

  • Added Learn-ai-ml.page.tsx (new page component).
  • Imports images: @/assets/ai-analysis.png and @/assets/us-household-ai.png (can move into different folder if needed!)
  • Uses existing components: PageHeader, CalloutWithImage, CardsWithHeader, TitleCardWithHeader, and TwoColumnView.
  • Adds an embedded YouTube iframe for the demo.

Note:

The button for the "Making Policy Accessible With AI" component is not linked to a page yet. Happy to make changes as needed!

@AnushkaNilangekar AnushkaNilangekar linked an issue Oct 10, 2025 that may be closed by this pull request
@vercel
Copy link

vercel bot commented Oct 10, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
policyengine-app-v2 Ready Ready Preview Comment Nov 11, 2025 9:09pm

@anth-volk
Copy link
Collaborator

Please add "Fixes #" to the issue description and remove "Feat/142" from the PR name

Copy link
Collaborator

@SakshiKekre SakshiKekre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @AnushkaNilangekar, thanks for your work on this! With the route added, I was able to see how the page looks in the deployment, so thanks for that!

The page looks pretty good and is mostly ready to go. Only problem is with the alignment of the AI/ML Resources, Our AI Journey and the Watch our AI Demo components on the page.
These appear to be either sticking to the left edge of the page or stretched out to both edges. I wonder if wrapping the contents in a container would fix the issue.
Also, there have been some major updates to the codebase over the past couple of weeks. Could you please rebase on the latest changes from main and update the PR if needed (probably the only change would be using the static layout in the router)?

@AnushkaNilangekar AnushkaNilangekar changed the title Feat/142 migrate ai ml page to app v2 Migrate Learn:AI/ML page Nov 10, 2025
@AnushkaNilangekar
Copy link
Collaborator Author

Hi @SakshiKekre, thanks for all the comments! I've rebased with main and made updates to the layout. There are still a few inconsistencies across components, like spacing, page-specific colors, and header typography, that could use some standardization based on what we discussed earlier. I'm happy to update this page and/or adjust shared components if that helps keep things consistent.
If the page looks good otherwise, I can also add the “Learn” button under the HomeHeader navigation to link this page there.

Copy link
Collaborator

@anth-volk anth-volk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this @AnushkaNilangekar. I've left some comments. In a couple places, I asked why you're modifying shared components, but am now realizing we do actually need to modify a couple of them.

direction={{ base: 'column', md: 'row' }}
align={{ base: 'stretch', md: 'center' }}
gap={{ base: 'md', md: 'xl' }}
<Box
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

question: Is this a change you're making now, or did you incorporate changes from a rebase and they're being improperly displayed as part of your PR?

second question: If you are making this change, why? This would modify all pages using this component.

</Grid>
</Paper>
<Paper bg={getBackgroundColor()} radius={spacing.radius.lg} style={{ minHeight: '400px' }}>
<Title
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

question: Here, too, this impacts others' pages; what's the reasoning behind it?

gap: spacing['3xl'],
}}
>
<CalloutWithImage
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

issue: Shoot, CalloutWithImage actually does have something we'd want to change app-wide. As part of this PR, could you modify the button to look the same as (but have larger font size than) the button we have in the calculator pages to create a new report? It has rounded edges, unlike this one, and is a darker green.

</Paper>
<Paper bg={getBackgroundColor()} radius={spacing.radius.lg} style={{ minHeight: '400px' }}>
<Title
order={2}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

issue: Having just said that, please increase the size of this title

</>
);

const rightColumnContent = (
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

issue: Please round the edges on the image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Migrate AI & ML page to app v2

4 participants