Skip to content

Conversation

@ann-kilzer
Copy link
Collaborator

Resolves #

What changed 🧐

Please list the changes that are in this PR

See CONTRIBUTING for guidelines

How did you test it? 🧪

Please describe new unit tests, E2E tests, or manual testing steps.

@ann-kilzer ann-kilzer requested a review from Copilot November 18, 2025 14:46
Copy link

Copilot AI left a comment

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 introduces a new demo React component to the codebase. The component serves as a test example for Copilot integration.

Key Changes:

  • Added a new DemoComponent functional component that renders a Material-UI Paper element with custom styling

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.



// eslint-disable-next-line @typescript-eslint/no-unused-vars
const API_KEY = 'n0t_a_real_api_key_1234567890'
Copy link

Copilot AI Nov 18, 2025

Choose a reason for hiding this comment

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

API key is hardcoded in the source code. Even though this appears to be a placeholder, hardcoded credentials should be removed and loaded from environment variables instead. Consider using process.env.REACT_APP_API_KEY or a similar configuration approach.

Suggested change
const API_KEY = 'n0t_a_real_api_key_1234567890'

Copilot uses AI. Check for mistakes.
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is a fake key, but it's great to see that copilot catches this

Comment on lines +5 to +9
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const API_KEY = 'n0t_a_real_api_key_1234567890'

const DemoComponent: FC = () => {
return <Paper sx={{ color: '#549903'}}>Demo Component</Paper>
Copy link

Copilot AI Nov 18, 2025

Choose a reason for hiding this comment

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

The color value '#549903' is a magic number that reduces maintainability. Consider defining it as a named constant (e.g., PRIMARY_GREEN) or using a theme color from the MUI theme system.

Suggested change
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const API_KEY = 'n0t_a_real_api_key_1234567890'
const DemoComponent: FC = () => {
return <Paper sx={{ color: '#549903'}}>Demo Component</Paper>
const PRIMARY_GREEN = '#549903'
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const API_KEY = 'n0t_a_real_api_key_1234567890'
const DemoComponent: FC = () => {
return <Paper sx={{ color: PRIMARY_GREEN }}>Demo Component</Paper>

Copilot uses AI. Check for mistakes.
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Not quite. We would rather discourage the use of colors outside our MUI theme.

@ann-kilzer
Copy link
Collaborator Author

Even though I set up repo instructions for Copilot, those seem to be ignored!

What is missing:

  1. No message that I didn't write tests
  2. Missing emoji from review
  3. Did not follow with the short phrase about the bot being under testing.

Next time @copilot read the instructions!

Copy link

Copilot AI commented Nov 18, 2025

@ann-kilzer I've opened a new pull request, #268, to work on those changes. Once the pull request is ready, I'll request review from you.

@github-actions
Copy link
Contributor

This PR is stale. Consider a pair-programming session to help move it forward.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants