Skip to content

Conversation

@ChronosSF
Copy link
Member

No description provided.

@ChronosSF ChronosSF requested a review from Copilot January 6, 2026 14:49
Copy link
Contributor

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 updates the random data generation service to use built-in avatar assets instead of external URLs, and implements gender-based avatar selection.

  • Split the single firstNames array into separate maleFirstNames and femaleFirstNames arrays
  • Added a randomFirstName() method that returns both a name and corresponding gender
  • Updated avatar URLs from external pravatar.cc service to local asset paths

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

age: this.randomInt(18, 90),
email,
avatar: `https://i.pravatar.cc/150?img=${this.randomInt(1, 70)}`,
avatar: `assets/images/${gender}/${this.randomInt(1, 70)}.jpg`,
Copy link

Copilot AI Jan 6, 2026

Choose a reason for hiding this comment

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

The avatar path generates random image numbers from 1 to 70, but there's no guarantee that all 70 images exist in the assets for both genders. This could result in broken image references. Consider defining the actual available image ranges for each gender or validating that the images exist.

Copilot uses AI. Check for mistakes.
@ChronosSF ChronosSF requested a review from Copilot January 13, 2026 16:05
Copy link
Contributor

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

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.


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

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.

2 participants