-
-
Notifications
You must be signed in to change notification settings - Fork 21
Important improvements #20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this 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 refactors the job data model to use optional end dates instead of the string literal "Now" for ongoing positions, and generalizes utility functions to be more reusable across different content types.
- Replaced string literal "Now" with optional
tofield for representing ongoing jobs - Refactored sorting functions to be generic and applicable to multiple content types
- Updated job content files and UI components to handle the new optional field pattern
Reviewed Changes
Copilot reviewed 9 out of 11 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| src/lib/utils.ts | Replaced domain-specific sorting functions with generic type-safe alternatives that handle date ranges and year sorting |
| src/pages/index.astro | Updated imports to use renamed generic sorting functions |
| src/content.config.ts | Changed job schema to use optional to field instead of union type with "Now" |
| src/content/jobs/*.mdx | Updated job entries to use optional to field or numeric year instead of "Now" string |
| src/components/ui/WorkExperience.astro | Added fallback to display "Present" when to field is undefined |
| src/lib/constants.ts | Fixed formatting issues (trailing commas, semicolons) and changed avatar image format |
| src/components/partials/Header.astro | Reformatted component for better code style consistency |
| src/assets/images/avatar.png | Added new PNG avatar image to replace JPEG |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
|
No description provided.