Skip to content
This repository was archived by the owner on Jul 6, 2026. It is now read-only.

Improved Explain with AI button #2528

Closed
SEEDART007 wants to merge 1 commit into
PolicyEngine:masterfrom
SEEDART007:improved-ai-button
Closed

Improved Explain with AI button #2528
SEEDART007 wants to merge 1 commit into
PolicyEngine:masterfrom
SEEDART007:improved-ai-button

Conversation

@SEEDART007

@SEEDART007 SEEDART007 commented May 14, 2025

Copy link
Copy Markdown

#2301 Improved Explain with AI button

Screen.Recording.2025-05-14.113904.mp4

Copilot AI review requested due to automatic review settings May 14, 2025 06:17
@vercel

vercel Bot commented May 14, 2025

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
policyengine-app ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 14, 2025 6:19am

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull Request Overview

This PR aims to improve the Explain with AI button appearance by updating the icon used in the NetIncomeBreakdown component.

  • Replaces the InfoCircleOutlined icon with a plain "✨" emoji.

cursor: "pointer", // Pointer cursor to indicate it's interactable
}}
/>

Copilot AI May 14, 2025

Copy link

Choose a reason for hiding this comment

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

Replacing a styled icon component with a plain emoji may impact accessibility and visual consistency. Consider either retaining the styled icon or wrapping the emoji with appropriate accessibility attributes such as an aria-label.

Suggested change
<InfoCircleOutlined
style={{
fontSize: 16,
color: style.colors.DARK_GRAY,
}}
aria-label="Information icon"
/>

Copilot uses AI. Check for mistakes.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

issue, blocking: I agree with the AI here. Encoding an emoji directly into a webpage is not really best practice. I also find this icon to take away from our brand identity. Opportunities for discovery and exploration certainly typify us, but I find this icon to be more "whimsical," which I think takes away from the seriousness we try to employ around our work.

@SEEDART007 could you look through https://ant.design/components/icon and see if anything would be better suited here? Or propose an alternative design? Feel free to just share a visual.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

let's also use the icon only once

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

issue, blocking: I agree with the AI here. Encoding an emoji directly into a webpage is not really best practice. I also find this icon to take away from our brand identity. Opportunities for discovery and exploration certainly typify us, but I find this icon to be more "whimsical," which I think takes away from the seriousness we try to employ around our work.

@SEEDART007 could you look through https://ant.design/components/icon and see if anything would be better suited here? Or propose an alternative design? Feel free to just share a visual.

Screenshot_20250517-013553_Chrome.jpg

This is pretty good...what do you think??

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is that from ant? We want one without text

@SEEDART007 SEEDART007 May 17, 2025

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

image

image
image
Ant design doesn't have anything based on ai much. this is flaticon which is better. can you choose and tell me which one should I use and also tell me why the lint test is failing??? @MaxGhenis @anth-volk

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Confirmed, ant lacks an AI icon like sparkles.

@anth-volk - per our recent CC meeting, let's drop the AI iconography here and just having it be a standard i tooltip with an "Explain" button. We can add ✨ Generated with AI inside the modal instead.

@SEEDART007 SEEDART007 changed the title Improved Explain with AI button #2301 Improved Explain with AI button May 14, 2025
@SEEDART007

Copy link
Copy Markdown
Author

@MaxGhenis hey can you check it out!!is everything fine in it?

@MaxGhenis MaxGhenis requested a review from anth-volk May 14, 2025 10:12

@anth-volk anth-volk left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Please see above

@github-project-automation github-project-automation Bot moved this from Todo to PR: Review Requested in policyengine-app May 16, 2025
@anth-volk

anth-volk commented May 17, 2025 via email

Copy link
Copy Markdown
Collaborator

@SEEDART007

Copy link
Copy Markdown
Author

Sounds good. In that case @SEEDART007 could you revert to original styling and make the i button more intuitive, per the original issue?

On Sat, May 17, 2025, 11:17 Max Ghenis @.> wrote: @.* commented on this pull request. ------------------------------ In src/pages/household/output/NetIncomeBreakdown.jsx <#2528 (comment)> : > @@ -319,14 +319,7 @@ function VariableArithmetic(props) { }} className="info-icon-wrapper" > - <InfoCircleOutlined - style={{ - fontSize: 14, - marginLeft: 10, - color: style.colors.DARK_GRAY, - cursor: "pointer", // Pointer cursor to indicate it's interactable - }} - /> + ✨ Confirmed, ant lacks an AI icon like sparkles. @anth-volk https://github.com/anth-volk - per our recent CC meeting, let's drop the AI iconography here and just having it be a standard i tooltip with an "Explain" button. We can add ✨ Generated with AI inside the modal instead. — Reply to this email directly, view it on GitHub <#2528 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADSK7W4MYJKBLCYBK7PIV2T265HIZAVCNFSM6AAAAAB5CM7RYWVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZDQNBYGMYTIOJUGA . You are receiving this because you were mentioned.Message ID: @.***>

u mean to use the old star icon.? but tell me why the lint test is failing? @anth-volk

@anth-volk

anth-volk commented May 17, 2025 via email

Copy link
Copy Markdown
Collaborator

@anth-volk

Copy link
Copy Markdown
Collaborator

Closing in favor of #2546.

@anth-volk anth-volk closed this Jun 19, 2025
@github-project-automation github-project-automation Bot moved this from PR: Review Requested to Closed in policyengine-app Jun 19, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

Status: Closed

Development

Successfully merging this pull request may close these issues.

4 participants