feat: add language colour, bars and avatar to card#3
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
This PR adds new visual features to the GitHub repository card component including language color indicators, repository owner avatars, and an optional languages bar showing the distribution of programming languages used in the repository.
Changes:
- Added
linguist-colors-listdependency for language color display - Introduced
GithubCardDummycomponent for testing and static data display - Enhanced card UI with avatar, language colors, topics tags, and optional languages distribution bar
- Refactored component structure with new
GithubCardBaseinternal component - Added example screenshot to README
Reviewed changes
Copilot reviewed 6 out of 10 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| package.json | Version bump to 0.2.0 and added linguist-colors-list dependency |
| package-lock.json | Updated lockfile with linguist-colors-list package entry |
| bun.lock | Added linguist-colors-list to root bun lockfile (version mismatch issue) |
| tests/astro/package.json | Added linguist-colors-list dependency for test environment |
| tests/astro/bun.lock | Updated test lockfile with linguist-colors-list |
| src/index.ts | Exported new GithubCardDummy component and GithubRepoData type |
| src/GithubCard.tsx | Major refactor: added GithubCardBase, GithubCardDummy, language colors, avatar, languages bar, and improved styling |
| tests/astro/src/pages/index.astro | Updated test page with dummy card examples and showLanguagesBar prop testing |
| README.md | Added example screenshot and reformatted props table |
| .github/assets/example.png | Added example screenshot image |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.