-
Notifications
You must be signed in to change notification settings - Fork 0
feat: add latest posts section and update navigation order for improv… #3
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -9,11 +9,13 @@ import { Head } from '@inertiajs/vue3'; | |||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||
| import ProductSection from '@modules/Billing/resources/js/components/ProductSection.vue'; | ||||||||||||||||||||||||||||
| import type { Product } from '@modules/Billing/resources/js/types'; | ||||||||||||||||||||||||||||
| import LatestPostsSection from '@modules/Blog/resources/js/components/LatestPostsSection.vue'; | ||||||||||||||||||||||||||||
| import HeroSection from './sections/HeroSection.vue'; | ||||||||||||||||||||||||||||
| import Testimonial from './sections/Testimonial.vue'; | ||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||
| defineProps<{ | ||||||||||||||||||||||||||||
| products?: Product[]; | ||||||||||||||||||||||||||||
| latestPosts?: Modules.Blog.Data.PostData[]; | ||||||||||||||||||||||||||||
|
Comment on lines
13
to
+18
|
||||||||||||||||||||||||||||
| import HeroSection from './sections/HeroSection.vue'; | |
| import Testimonial from './sections/Testimonial.vue'; | |
| defineProps<{ | |
| products?: Product[]; | |
| latestPosts?: Modules.Blog.Data.PostData[]; | |
| import type { PostData } from '@modules/Blog/resources/js/types'; | |
| import HeroSection from './sections/HeroSection.vue'; | |
| import Testimonial from './sections/Testimonial.vue'; | |
| defineProps<{ | |
| products?: Product[]; | |
| latestPosts?: PostData[]; |
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.
New behavior fetches and renders latest posts, but there are no assertions covering this path. Consider extending the existing Playwright test (or adding a new one) to verify that when the Blog module is enabled and posts exist, the latest posts section is rendered (and that it stays hidden when there are no posts / Blog is disabled).