fix: social media step spacing, preview size, and UI cleanup (NES-1530)#8962
fix: social media step spacing, preview size, and UI cleanup (NES-1530)#8962
Conversation
- Reduce Stack gap from 48px to 20px and remove vertical padding - Remove CardHeader (avatar, skeleton title) and CardActions (like/comment/share icons) - Replace card shadow with outlined variant using divider border color - Resize social preview card media to 215x147px - Hide helper/assisting text on TitleEdit and DescriptionEdit fields Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
✅ Files skipped from review due to trivial changes (1)
🚧 Files skipped from review as they are similar to previous changes (1)
WalkthroughAdded optional Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~22 minutes 🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 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 |
|
View your CI Pipeline Execution ↗ for commit a72bc5b
☁️ Nx Cloud last updated this comment at |
|
The latest updates on your projects.
|
There was a problem hiding this comment.
🧹 Nitpick comments (1)
apps/journeys-admin/src/components/TemplateCustomization/MultiStepForm/Screens/SocialScreen/SocialScreenSocialImage/SocialScreenSocialImage.tsx (1)
31-33: Rename props interface to match repository convention.Please rename the interface to
SocialScreenSocialImagePropsfor consistency with the TypeScript props naming rule.♻️ Proposed refactor
-interface SocialScreenSocialImage { +interface SocialScreenSocialImageProps { hideAdornments?: boolean } export function SocialScreenSocialImage({ hideAdornments = false -}: SocialScreenSocialImage): ReactElement { +}: SocialScreenSocialImageProps): ReactElement {As per coding guidelines, "Props interfaces must follow naming convention {ComponentName}Props".
Also applies to: 53-55
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@apps/journeys-admin/src/components/TemplateCustomization/MultiStepForm/Screens/SocialScreen/SocialScreenSocialImage/SocialScreenSocialImage.tsx` around lines 31 - 33, The props interface currently named SocialScreenSocialImage should be renamed to SocialScreenSocialImageProps to follow the {ComponentName}Props convention; update the interface declaration (SocialScreenSocialImage → SocialScreenSocialImageProps) and replace all usages/references of SocialScreenSocialImage in this file (including the component signature and any FC or prop-type annotations around SocialScreenSocialImage) with SocialScreenSocialImageProps so the component and its props type remain consistent.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Nitpick comments:
In
`@apps/journeys-admin/src/components/TemplateCustomization/MultiStepForm/Screens/SocialScreen/SocialScreenSocialImage/SocialScreenSocialImage.tsx`:
- Around line 31-33: The props interface currently named SocialScreenSocialImage
should be renamed to SocialScreenSocialImageProps to follow the
{ComponentName}Props convention; update the interface declaration
(SocialScreenSocialImage → SocialScreenSocialImageProps) and replace all
usages/references of SocialScreenSocialImage in this file (including the
component signature and any FC or prop-type annotations around
SocialScreenSocialImage) with SocialScreenSocialImageProps so the component and
its props type remain consistent.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro
Run ID: b3df4e05-ad35-47aa-8d07-060e9ea7449f
📒 Files selected for processing (4)
apps/journeys-admin/src/components/Editor/Slider/Settings/SocialDetails/DescriptionEdit/DescriptionEdit.tsxapps/journeys-admin/src/components/Editor/Slider/Settings/SocialDetails/TitleEdit/TitleEdit.tsxapps/journeys-admin/src/components/TemplateCustomization/MultiStepForm/Screens/SocialScreen/SocialScreen.tsxapps/journeys-admin/src/components/TemplateCustomization/MultiStepForm/Screens/SocialScreen/SocialScreenSocialImage/SocialScreenSocialImage.tsx
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In
`@apps/journeys-admin/src/components/Editor/Slider/Settings/SocialDetails/TitleEdit/TitleEdit.tsx`:
- Around line 88-92: The helper text currently short-circuits on hideHelperText
and therefore suppresses validation errors; update the helper text logic in
TitleEdit (where hideHelperText and errors.seoTitle are used) so validation
messages always display: return errors.seoTitle when present, otherwise show the
default guidance only when hideHelperText is false (i.e., helperText =
errors.seoTitle ?? (hideHelperText ? undefined : t('Recommended length: 5
words'))), preserving the existing type cast for errors.seoTitle.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro
Run ID: dc0ef5b9-cb64-4366-8926-ca75ad1383d2
📒 Files selected for processing (2)
apps/journeys-admin/src/components/Editor/Slider/Settings/SocialDetails/DescriptionEdit/DescriptionEdit.tsxapps/journeys-admin/src/components/Editor/Slider/Settings/SocialDetails/TitleEdit/TitleEdit.tsx
🚧 Files skipped from review as they are similar to previous changes (1)
- apps/journeys-admin/src/components/Editor/Slider/Settings/SocialDetails/DescriptionEdit/DescriptionEdit.tsx
…0) (#8962) Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Summary
Fixes NES-1530
Test plan
🤖 Generated with Claude Code
Summary by CodeRabbit
Style
Refactor