Closed HasithDeAlwis closed 1 month ago
This pull request implements an "About Me" section for a website. It includes new components for displaying text and SVG images, API integration for fetching data, and animations using GSAP. The changes span across multiple applications including the website, Payload CMS, and Storybook.
journey
title User journey for the About Me section
section Visit About Me Page
User: Go to the website
User: Navigate to the About Me section
section View About Me Content
User: See animated header
User: View subheader and description
User: Observe SVG images
section Interact with Content
User: Scroll through the section
User: Hover over images for animation effects
section Data Fetching
System: Fetch About Me data from API
System: Display fetched data on the page
classDiagram
class AboutMe {
+AboutMeTextType text
+AboutMeAssetType[] images
}
class AboutMeText {
+string subheader
+string description
}
class AboutMeSvgs {
+AboutMeAssetType[] images
}
class AboutMeAssetType {
+string svgURL
+string svgAlt
+int order
+int id
}
class AboutMeTextType {
+string aboutMeSubheader
+string aboutMeDescription
+int id
}
AboutMe --> AboutMeText
AboutMe --> AboutMeSvgs
AboutMeSvgs --> AboutMeAssetType
AboutMeText --> AboutMeTextType
Change | Details | Files |
---|---|---|
Implemented 'About Me' section components |
|
apps/website/src/components/about-me/about-me.svelte apps/website/src/components/about-me/about-me-text.svelte apps/website/src/components/about-me/about-me-svgs.svelte |
Added Payload CMS collections for 'About Me' content |
|
apps/payload/src/collections/about-me/about-me-text.ts apps/payload/src/collections/about-me/about-me-assets.ts apps/payload/src/payload.config.ts |
Implemented API integration for 'About Me' data |
|
apps/website/src/api/about-me-api.ts apps/website/src/models/about-me.ts apps/website/src/pages/index.astro |
Added Storybook stories for 'About Me' components |
|
apps/storybook/stories/about-me/about-me.stories.svelte apps/storybook/stories/about-me/about-me-text.stories.svelte apps/storybook/stories/about-me/about-me-svgs.stories.svelte |
Updated project configuration and dependencies |
|
pnpm-lock.yaml apps/website/tsconfig.json apps/storybook/.storybook/main.ts apps/storybook/.storybook/preview-head.html |
Issue | Objective | Addressed | Explanation |
---|---|---|---|
#29 | Create stories for the About Me Section | β | |
#29 | Use Payload to load in about me section info | β |
Name | Link |
---|---|
Latest commit | 728130ec4b0d9927a6d43420421b3ba6cc07fd25 |
Latest deploy log | https://app.netlify.com/sites/hasith/deploys/670b15f0df13a30008936f1d |
Deploy Preview | https://deploy-preview-30--hasith.netlify.app |
Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.
ISSUE
Create a about-me section closes #29
Solution
Improvements for Future
Overall not too bad, had some major blockers with Payload CMS and the dependencies were impossible to manage. I had to bite the bullet and create a separate repo for my payload-cms, it's ok, but in the future I need Nx or Turborepo to manage dependencies effectively.
Will close this issue now and deal with production bugs later, need to maintain velocity to finish this project
Summary by Sourcery
Create an 'About Me' section on the website with animated components using GSAP. Set up Storybook for component visualization and end-to-end tests for the new section. Update build dependencies and refactor configurations to support new features. Remove the Payload app to address dependency management challenges.
New Features:
Enhancements:
Build:
CI:
Tests:
Chores: