-
Notifications
You must be signed in to change notification settings - Fork 0
chore: upgrade pages-components to 1.1.16 #898
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
WalkthroughThis PR consolidates formatting and cleanup changes across the visual-editor package. It bumps THIRD-PARTY-NOTICES version strings for multiple dependencies, removes TypeScript error suppression comments from component style properties, and reformats interface extends clauses and conditional expressions for consistency. No behavioral or control-flow modifications are present; all changes are purely stylistic or documentation-related. Possibly related PRs
Suggested reviewers
Pre-merge checks and finishing touches❌ Failed checks (1 inconclusive)
✅ Passed checks (1 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
colton-demetriou
left a comment
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.
are these errors real
Hmm we shouldn't merge w/ these errors |
6983c66
|
Warning: Component files have been updated but no migrations have been added. See https://github.com/yext/visual-editor/blob/main/packages/visual-editor/src/components/migrations/README.md for more information. |
commit: |
6161df6
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.
Actionable comments posted: 0
🧹 Nitpick comments (1)
packages/visual-editor/src/components/pageSections/EventSection/EventCard.tsx (1)
453-460: Consider guardingdateTimeSlotPropsbefore accessing.datato avoid a possible crash
showDateTimecurrently evaluatesresolveYextEntityField(..., dateTimeSlotProps.data.date, ...)even whendateTimeSlotPropsmight beundefined(e.g., an emptyDateTimeSlotarray), which would throw at runtime if that situation occurs. Even if config invariants make this “impossible”, a small guard would make the code more defensive.You can keep the existing behavior while making it safer by short‑circuiting on
dateTimeSlotProps:- const showDateTime = Boolean( - dateTimeSlotProps?.parentData?.date?.trim() || - resolveYextEntityField( - params.metadata.streamDocument, - dateTimeSlotProps.data.date, - i18nComponentsInstance.language || "en" - )?.trim() - ); + const showDateTime = Boolean( + dateTimeSlotProps && + (dateTimeSlotProps.parentData?.date?.trim() || + resolveYextEntityField( + params.metadata.streamDocument, + dateTimeSlotProps.data.date, + i18nComponentsInstance.language || "en" + )?.trim()) + );This keeps the same truthiness semantics when the slot exists, but avoids touching
.datawhen it doesn’t.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (12)
packages/visual-editor/THIRD-PARTY-NOTICES(11 hunks)packages/visual-editor/src/components/atoms/body.tsx(1 hunks)packages/visual-editor/src/components/atoms/button.tsx(1 hunks)packages/visual-editor/src/components/atoms/heading.tsx(1 hunks)packages/visual-editor/src/components/atoms/hoursTable.tsx(1 hunks)packages/visual-editor/src/components/atoms/pageSection.tsx(1 hunks)packages/visual-editor/src/components/configs/directoryConfig.tsx(1 hunks)packages/visual-editor/src/components/configs/locatorConfig.tsx(1 hunks)packages/visual-editor/src/components/configs/mainConfig.tsx(1 hunks)packages/visual-editor/src/components/pageSections/EventSection/EventCard.tsx(1 hunks)packages/visual-editor/src/components/pageSections/TeamSection/TeamCard.tsx(1 hunks)packages/visual-editor/src/components/pageSections/TestimonialSection/TestimonialCard.tsx(1 hunks)
✅ Files skipped from review due to trivial changes (8)
- packages/visual-editor/src/components/configs/locatorConfig.tsx
- packages/visual-editor/src/components/atoms/heading.tsx
- packages/visual-editor/src/components/atoms/body.tsx
- packages/visual-editor/src/components/pageSections/TeamSection/TeamCard.tsx
- packages/visual-editor/src/components/configs/mainConfig.tsx
- packages/visual-editor/src/components/atoms/hoursTable.tsx
- packages/visual-editor/src/components/pageSections/TestimonialSection/TestimonialCard.tsx
- packages/visual-editor/src/components/atoms/pageSection.tsx
🚧 Files skipped from review as they are similar to previous changes (2)
- packages/visual-editor/src/components/atoms/button.tsx
- packages/visual-editor/THIRD-PARTY-NOTICES
🧰 Additional context used
🧬 Code graph analysis (1)
packages/visual-editor/src/components/configs/directoryConfig.tsx (1)
packages/visual-editor/src/components/categories/DirectoryCategory.tsx (1)
DirectoryCategoryProps(3-5)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (4)
- GitHub Check: call_unit_test / unit_tests (20.x)
- GitHub Check: call_unit_test / unit_tests (18.x)
- GitHub Check: create-dev-release
- GitHub Check: semgrep/ci
🔇 Additional comments (3)
packages/visual-editor/src/components/pageSections/EventSection/EventCard.tsx (2)
433-452: Conditional render for description/title remains behaviorally identicalThis block still does
slotProps && (parentData ? parentDataValue : resolvedEntityField), so the short‑circuiting and fallback behavior are unchanged; only whitespace/line‑breaks moved. No action needed here.
461-470: CTA conditional render formatting is a no‑op changeThe CTA visibility logic is still
ctaSlotProps && (parentData ? parentData.cta.label : resolveComponentData(...).label). Only indentation/line‑breaking changed, so behavior is preserved.packages/visual-editor/src/components/configs/directoryConfig.tsx (1)
24-29: Multi‑lineextendsformatting only; no behavior changeSplitting the
DirectoryConfigPropsextendslist across multiple lines doesn’t affect typing or the resulting config; it just improves readability and matches the style used elsewhere.
|
Looks like main is already on 1.1.16 |
No description provided.