Skip to content

Conversation

@vedhapprakashni
Copy link

Description

Fixes console warnings about missing keys in React lists and removes duplicate footer element from the Home page. This resolves issue number 7.

Type of Change

Bug fix (non breaking change which fixes an issue)
Code refactoring (no functional changes)

How Has This Been Tested

Ran the dev server and verified console warnings are resolved. Checked that all list components render correctly with proper keys. Verified the Home page displays correctly with single footer.

File Changes made in this PR:

ChatRoom.tsx: Changed message list key from array index to unique identifier using msg.id or a combination of timestamp and userId. This prevents React key warnings when messages are added or removed from the list.

CheckInModal.tsx: Changed confetti animation key from plain index to prefixed string format using confetti followed by the index number. This ensures unique keys for the animated elements.

Home.tsx: Removed duplicate footer element. The page was rendering both an inline footer section and a separate Footer component, causing duplicate content to appear at the bottom of the page.

Learning Outcomes

Learned about React key best practices. Using array indices as keys can cause issues with component state and reconciliation when items are reordered, added, or removed. Unique identifiers should be used whenever possible to help React efficiently update the DOM.

@github-actions github-actions bot added frontend Client-side features and views ui/ux labels Feb 6, 2026
@ayushHardeniya ayushHardeniya added apertre3.0 Apertre 3.0 open source program medium features involving multiple files or logic. labels Feb 7, 2026
Copy link
Member

@ayushHardeniya ayushHardeniya left a comment

Choose a reason for hiding this comment

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

hey! thanks for the pr but this is way too much for a simple cleanup issue. you basically built an entire feature we didnt ask for yet. closing this for now, pls stick to the issue description next time! also feels a bit like an AI dump which we dont really allow for feature work.

you can create another PR, but strictly fixing the desired task, and it'd be better if you support OSS and not using those LLM dumps here!

thanks again!

@vedhapprakashni
Copy link
Author

@ayushHardeniya I'm sorry i just realized i just realized i wrongly added commits of another feature (Habit dashboard and check-in flow) in this branch

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

Labels

apertre3.0 Apertre 3.0 open source program frontend Client-side features and views medium features involving multiple files or logic. ui/ux

Projects

None yet

Development

Successfully merging this pull request may close these issues.

When you run npm run dev, there are some console warnings about missing keys or unused variables.

2 participants