feat: add last commit date to projects #64
Merged
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.
This PR closes #57
This pull request includes changes to the
PublicProjectCard
component and theproject/api.ts
service. The most important changes involve updating the UI to display the last commit date and modifying the database client used in the API service.Updates to
PublicProjectCard
component:src/components/PublicProjectCard.tsx
: Imported theHistory
icon fromlucide-react
to display the last commit date.src/components/PublicProjectCard.tsx
: Adjusted theCardTitle
layout to usejustify-between
for better alignment of elements.src/components/PublicProjectCard.tsx
: Added a conditional rendering block to display the last commit date in a formatted manner using theHistory
icon.Modifications in API service:
src/services/project/api.ts
: Changed the client fromcreateAdminClient
tocreateClient
in thegetUserPublicProjects
function to use a different database client. (Couldn't fetch the data without this change)