Skip to content
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

Add Ladle stories #500

Merged
merged 19 commits into from
Dec 4, 2024
Merged

Add Ladle stories #500

merged 19 commits into from
Dec 4, 2024

Conversation

w3bdesign
Copy link
Owner

No description provided.

Adds storybook documentation for the RotatingLoader component to improve component
visibility and testing capabilities in the UI development workflow.
The error boundary component now supports a compact display mode for use in stories
and other confined spaces, providing a more condensed error message presentation.
Implement comprehensive test scenarios for the hamburger menu component,
including default state, X state, interactive toggle, and background variants
to ensure consistent behavior across different contexts.
This addition provides comprehensive storybook examples for the NavigationLink
component, showcasing various states and layouts for better development and testing
@w3bdesign w3bdesign self-assigned this Dec 4, 2024
Copy link

vercel bot commented Dec 4, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
dfweb-v4 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 4, 2024 4:32am

@codecov-commenter
Copy link

codecov-commenter commented Dec 4, 2024

Codecov Report

Attention: Patch coverage is 90.00000% with 2 lines in your changes missing coverage. Please review.

Project coverage is 99.38%. Comparing base (ca368bd) to head (e486ebe).
Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
...mponents/ErrorBoundary/ErrorFallback.component.tsx 66.66% 2 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##              main     #500      +/-   ##
===========================================
- Coverage   100.00%   99.38%   -0.62%     
===========================================
  Files           30       32       +2     
  Lines          313      324      +11     
  Branches        79       81       +2     
===========================================
+ Hits           313      322       +9     
- Misses           0        2       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Created comprehensive test cases for footer component including default, narrow,
and wide viewport scenarios to ensure responsive behavior and proper rendering
This commit removes an unnecessary import of the Story component from @ladle/react
which was not being used in the Footer stories file, keeping the codebase clean.
The ErrorFallbackWrapper component has been extracted to improve code organization
and reusability. This component now handles the presentation of error states with
compact mode support.
Streamlines ErrorBoundary story examples by removing unnecessary wrappers and
standardizing component styling. Also imports global CSS for consistent theming.
The stories for PageHeader component have been restructured to provide more
comprehensive examples including responsive layouts, icons, and various text lengths.
Import statements have been simplified and globals.css has been included.
This commit removes an unused import statement from the ErrorBoundary story file
to maintain code cleanliness. The Story type from @ladle/react was imported but
not used in the component.
Extract ErrorFallbackWrapper into separate component and improve error handling code
organization for better maintainability and type safety in ErrorBoundary component

BREAKING CHANGE: ErrorFallbackWrapper is now a separate component file
Update ErrorBoundary component to use proper React ErrorInfo type instead of
inline object type for better type safety and maintainability
Expanded test suite with comprehensive checks for orientation, border styles,
and tab panel attributes. Added type safety with TypeScript interface and
improved motion component mocking for better test reliability.
Streamline test cases by removing CV-specific mock data and focusing on core
tab functionality. Add error boundary testing and improve ARIA validation
coverage while reducing redundant assertions.
Updates the code formatting in Tabs test file to be more consistent and readable,
applying proper indentation for JSX components and fixing comma placement in array
objects.
Enhance readability and consistency by adding parentheses to arrow function
parameters and removing unreachable code in the ErrorBoundary stories file.
The PageHeader stories file has been reformatted to maintain consistent code
style throughout the codebase. This includes standardizing quotes, removing
unnecessary line breaks, and improving overall readability.
Extracted FallbackComponent to a separate const to improve code organization and
readability. This avoids nested component definitions and makes the error
handling logic more maintainable.
Improves code organization by moving the error fallback component into its own
file and simplifies the main ErrorBoundary component structure
Copy link

sonarqubecloud bot commented Dec 4, 2024

@w3bdesign w3bdesign merged commit 4cbb47e into main Dec 4, 2024
9 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants