Modern Timeline Component for React
| Files | Last commit | Last update |
|---|---|---|
Update dependencies in package.json and bun.lock to latest versions, including @tailwindcss/postcss, knip, tailwindcss, and react. Add new dependabot configuration file for automated dependency management. | 10 months ago | |
chore: enhance TypeScript configuration and Storybook setup - Added a new path alias for 'src/*' in tsconfig.json to simplify imports. - Updated Storybook configuration to include tsconfig-paths for better path resolution. - Introduced a new cssesc-wrapper.js file to streamline CSS escaping functionality. | 11 months ago | |
Search and UX Improvements (#528) ## Updates & Enhancements We've been busy improving the timeline component! Here are some of the highlights from recent development efforts: * **Search Functionality Added:** You can now easily find specific content within the timeline items using the new search bar in the toolbar. Navigate between results with dedicated "previous" and "next" buttons. * **Improved Styling & Appearance:** The timeline has a more polished and consistent look. We've refined the styling of cards, navigation elements, and list items for better readability and visual appeal. * **Enhanced Accessibility:** We've made significant strides in making the timeline more accessible. This includes better screen reader support, improved keyboard navigation, clearer focus indicators, and enhanced ARIA attributes. * **Better Media Handling:** The component now includes improved support for displaying various media types (images, videos, and YouTube videos) within timeline cards, with dedicated components for a smoother experience. * **Added Animations:** Subtle ripple and pulse animations have been added to timeline points to provide visual feedback and enhance interactivity. * **Smoother Slideshow:** The slideshow functionality has been optimized using `requestAnimationFrame` for smoother transitions and better performance. * **Under-the-Hood Improvements:** We've extensively refactored the codebase for better organization, maintainability, performance, and type safety. This includes streamlining logic, optimizing event handling, and cleaning up code. * **Bug Fixes:** Addressed visual issues such as color contrast in dark mode and preventing content overflow in cards. These updates aim to provide a more functional, aesthetically pleasing, accessible, and performant timeline experience. | 1 year ago | |
Cleanup + Minor enhancements to the Timeline card + minor doc updates (#598) * Enhance theme colors and styles across components - Introduced a new electric color palette in index.css for consistent theming. - Updated default theme colors in common themes to utilize the new electric palette. - Modified demo components to reflect the new theme colors, enhancing visual consistency. - Adjusted various component styles to incorporate electric colors for better accessibility and aesthetics. * Remove obsolete configuration files and build logs - Deleted .restyled.yaml to eliminate unused styling configurations. - Removed build-storybook.log as it contained outdated build logs, streamlining the project structure. * Remove stats.html file to streamline project structure and eliminate unused resources. * Refactor timeline components for improved styling and layout - Enhanced TimelineItemTitle to utilize CSS variables for background and text colors, improving theming flexibility. - Updated VerticalItem to streamline title visibility logic and layout calculations. - Introduced computed styles for card content and wrapper classes to enhance responsiveness and maintainability. - Adjusted demo components to reflect new title color settings for better visual consistency across themes. * Enhance theme colors and styles across components - Introduced a new electric color palette in index.css for consistent theming. - Updated default theme colors in common themes to utilize the new electric palette. - Modified demo components to reflect the new theme colors, enhancing visual consistency. - Adjusted various component styles to incorporate electric colors for better accessibility and aesthetics. * Remove obsolete configuration files and build logs - Deleted .restyled.yaml to eliminate unused styling configurations. - Removed build-storybook.log as it contained outdated build logs, streamlining the project structure. * Remove stats.html file to streamline project structure and eliminate unused resources. * Refactor timeline components for improved styling and layout - Enhanced TimelineItemTitle to utilize CSS variables for background and text colors, improving theming flexibility. - Updated VerticalItem to streamline title visibility logic and layout calculations. - Introduced computed styles for card content and wrapper classes to enhance responsiveness and maintainability. - Adjusted demo components to reflect new title color settings for better visual consistency across themes. * Enhance timeline item title styles with color variable - Added a new CSS variable for timeline title text color to improve theming flexibility. - Updated global styles to ensure the text color is consistently applied across timeline item titles. * Refactor timeline item title styles to improve theming support - Removed global style overrides for timeline item titles to streamline CSS. - Updated TimelineItemTitle component to utilize theme colors for text, enhancing flexibility. - Adjusted demo components to consistently apply the new title color theme across various layouts. * fix formatting * Update primary theme color to '#0079e6' across documentation and components for consistency * updated test cases for the timeline card content * removed obsolete storybook * Update dependencies in package.json and bun.lock * Refactor Vite configuration for improved type generation and source map handling - Updated Vite build configuration to conditionally enable type generation and source maps based on environment variables. - Enhanced plugin setup for better production handling and added support for additional dependencies in the site configuration. - Streamlined output settings and improved code organization for clarity. | 10 months ago | |
Cleanup + Minor enhancements to the Timeline card + minor doc updates (#598) * Enhance theme colors and styles across components - Introduced a new electric color palette in index.css for consistent theming. - Updated default theme colors in common themes to utilize the new electric palette. - Modified demo components to reflect the new theme colors, enhancing visual consistency. - Adjusted various component styles to incorporate electric colors for better accessibility and aesthetics. * Remove obsolete configuration files and build logs - Deleted .restyled.yaml to eliminate unused styling configurations. - Removed build-storybook.log as it contained outdated build logs, streamlining the project structure. * Remove stats.html file to streamline project structure and eliminate unused resources. * Refactor timeline components for improved styling and layout - Enhanced TimelineItemTitle to utilize CSS variables for background and text colors, improving theming flexibility. - Updated VerticalItem to streamline title visibility logic and layout calculations. - Introduced computed styles for card content and wrapper classes to enhance responsiveness and maintainability. - Adjusted demo components to reflect new title color settings for better visual consistency across themes. * Enhance theme colors and styles across components - Introduced a new electric color palette in index.css for consistent theming. - Updated default theme colors in common themes to utilize the new electric palette. - Modified demo components to reflect the new theme colors, enhancing visual consistency. - Adjusted various component styles to incorporate electric colors for better accessibility and aesthetics. * Remove obsolete configuration files and build logs - Deleted .restyled.yaml to eliminate unused styling configurations. - Removed build-storybook.log as it contained outdated build logs, streamlining the project structure. * Remove stats.html file to streamline project structure and eliminate unused resources. * Refactor timeline components for improved styling and layout - Enhanced TimelineItemTitle to utilize CSS variables for background and text colors, improving theming flexibility. - Updated VerticalItem to streamline title visibility logic and layout calculations. - Introduced computed styles for card content and wrapper classes to enhance responsiveness and maintainability. - Adjusted demo components to reflect new title color settings for better visual consistency across themes. * Enhance timeline item title styles with color variable - Added a new CSS variable for timeline title text color to improve theming flexibility. - Updated global styles to ensure the text color is consistently applied across timeline item titles. * Refactor timeline item title styles to improve theming support - Removed global style overrides for timeline item titles to streamline CSS. - Updated TimelineItemTitle component to utilize theme colors for text, enhancing flexibility. - Adjusted demo components to consistently apply the new title color theme across various layouts. * fix formatting * Update primary theme color to '#0079e6' across documentation and components for consistency * updated test cases for the timeline card content * removed obsolete storybook * Update dependencies in package.json and bun.lock * Refactor Vite configuration for improved type generation and source map handling - Updated Vite build configuration to conditionally enable type generation and source maps based on environment variables. - Enhanced plugin setup for better production handling and added support for additional dependencies in the site configuration. - Streamlined output settings and improved code organization for clarity. | 10 months ago | |
[ImgBot] Optimize images (#266) *Total -- 346.05kb -> 259.33kb (25.06%) /readme-assets/vertical-basic.png -- 122.31kb -> 88.84kb (27.37%) /public/zap.svg -- 1.10kb -> 0.82kb (25.78%) /readme-assets/outline.png -- 119.59kb -> 90.02kb (24.73%) /readme-assets/app-tree.png -- 101.39kb -> 78.08kb (23%) /public/list.svg -- 0.47kb -> 0.44kb (7.47%) /public/zapold.svg -- 0.27kb -> 0.26kb (6.07%) /public/grid.svg -- 0.39kb -> 0.37kb (5.94%) /readme-assets/github.svg -- 0.51kb -> 0.51kb (1.14%) Signed-off-by: ImgBotApp <ImgBotHelp@gmail.com> Co-authored-by: ImgBotApp <ImgBotHelp@gmail.com> | 4 years ago | |
[ImgBot] Optimize images (#581) *Total -- 3,191.11kb -> 2,731.31kb (14.41%) /readme-assets/vertical_alternating_full.jpg -- 420.11kb -> 338.35kb (19.46%) /readme-assets/text_overlay.jpg -- 336.16kb -> 277.09kb (17.57%) /readme-assets/vertical_alternating.jpg -- 330.96kb -> 275.82kb (16.66%) /readme-assets/vertical_mode.jpg -- 479.89kb -> 400.37kb (16.57%) /readme-assets/vertical_basic.jpg -- 494.92kb -> 420.48kb (15.04%) /readme-assets/dark_mode.png -- 177.96kb -> 154.82kb (13%) /readme-assets/horizontal-all.jpg -- 703.39kb -> 621.01kb (11.71%) /readme-assets/vertical_mode_high_density.png -- 68.44kb -> 66.45kb (2.92%) /readme-assets/vertical_alternating_mode.png -- 179.27kb -> 176.93kb (1.31%) Signed-off-by: ImgBotApp <ImgBotHelp@gmail.com> Co-authored-by: ImgBotApp <ImgBotHelp@gmail.com> Co-authored-by: Prabhu Murthy <prabhu.m.murthy@gmail.com> | 11 months ago | |
Cleanup + Minor enhancements to the Timeline card + minor doc updates (#598) * Enhance theme colors and styles across components - Introduced a new electric color palette in index.css for consistent theming. - Updated default theme colors in common themes to utilize the new electric palette. - Modified demo components to reflect the new theme colors, enhancing visual consistency. - Adjusted various component styles to incorporate electric colors for better accessibility and aesthetics. * Remove obsolete configuration files and build logs - Deleted .restyled.yaml to eliminate unused styling configurations. - Removed build-storybook.log as it contained outdated build logs, streamlining the project structure. * Remove stats.html file to streamline project structure and eliminate unused resources. * Refactor timeline components for improved styling and layout - Enhanced TimelineItemTitle to utilize CSS variables for background and text colors, improving theming flexibility. - Updated VerticalItem to streamline title visibility logic and layout calculations. - Introduced computed styles for card content and wrapper classes to enhance responsiveness and maintainability. - Adjusted demo components to reflect new title color settings for better visual consistency across themes. * Enhance theme colors and styles across components - Introduced a new electric color palette in index.css for consistent theming. - Updated default theme colors in common themes to utilize the new electric palette. - Modified demo components to reflect the new theme colors, enhancing visual consistency. - Adjusted various component styles to incorporate electric colors for better accessibility and aesthetics. * Remove obsolete configuration files and build logs - Deleted .restyled.yaml to eliminate unused styling configurations. - Removed build-storybook.log as it contained outdated build logs, streamlining the project structure. * Remove stats.html file to streamline project structure and eliminate unused resources. * Refactor timeline components for improved styling and layout - Enhanced TimelineItemTitle to utilize CSS variables for background and text colors, improving theming flexibility. - Updated VerticalItem to streamline title visibility logic and layout calculations. - Introduced computed styles for card content and wrapper classes to enhance responsiveness and maintainability. - Adjusted demo components to reflect new title color settings for better visual consistency across themes. * Enhance timeline item title styles with color variable - Added a new CSS variable for timeline title text color to improve theming flexibility. - Updated global styles to ensure the text color is consistently applied across timeline item titles. * Refactor timeline item title styles to improve theming support - Removed global style overrides for timeline item titles to streamline CSS. - Updated TimelineItemTitle component to utilize theme colors for text, enhancing flexibility. - Adjusted demo components to consistently apply the new title color theme across various layouts. * fix formatting * Update primary theme color to '#0079e6' across documentation and components for consistency * updated test cases for the timeline card content * removed obsolete storybook * Update dependencies in package.json and bun.lock * Refactor Vite configuration for improved type generation and source map handling - Updated Vite build configuration to conditionally enable type generation and source maps based on environment variables. - Enhanced plugin setup for better production handling and added support for additional dependencies in the site configuration. - Streamlined output settings and improved code organization for clarity. | 10 months ago | |
feat: add collapsible demo sidebar (#583) fixed an issue where the theme details dont drill down all the way to the text details section of the component updated the demo page to be little more flexible added new stories under storybook/theme | 11 months ago | |
Cleanup: removed unused modules (ladle, sonar), updated playwright config (#595) * Improve e2e tests and update configs - Update Playwright config: fix testDir path, optimize for local dev - Enhance e2e tests with better selectors and robustness - Update Tailwind and PostCSS configs - Minor component and demo updates * Add Playwright test results and report files - Introduced new HTML report for Playwright test results. - Added various media files (images and videos) for test context. - Included markdown files for detailed error contexts across multiple test scenarios. - Updated test results directory structure to accommodate new files and improve organization. * Remove outdated Playwright test result files - Deleted various test result files including error context markdowns, images, and videos for multiple horizontal mode tests. - Cleaned up the test results directory to remove unnecessary artifacts from previous test runs. * removed vid/img files * Add Firefox support to Playwright configuration * Remove SonarCloud configuration and related files from the project. Updated .gitignore to exclude sonar-related artifacts. * Remove Ladle integration and related files from the project. Updated configuration and documentation accordingly. * Remove DeepSource configuration file from the project. * Enhance Playwright tests and update configurations - Updated horizontal mode tests to improve visibility checks and scrolling behavior. - Added new test results file to track the last run status. - Refined test helpers for better handling of active timeline points. - Adjusted vertical alternating mode tests to ensure proper visibility and alternating patterns. - Improved overall test robustness and clarity in assertions. * Update Bun version to 1.3.3 across workflows and package.json - Changed Bun version from 'latest' to '1.3.3' in CI, Chromatic, Coveralls, and Release workflows. - Updated package.json to specify Bun version as '1.3.3' for consistency. | 10 months ago | |
feat: Introduce optimized context provider for stable and dynamic state management (#542) * feat: Introduce optimized context provider for stable and dynamic state management - Added DynamicContext for frequently changing values like dark mode and text density. - Created StableContext for stable configuration values to reduce re-renders. - Implemented OptimizedContextProvider to manage both contexts efficiently. - Updated hooks to provide access to stable and dynamic contexts. - Refactored components to utilize new context structure, improving performance and maintainability. - Enhanced timeline components to leverage new context for theme and interaction states. - Added support for child timelines in TimelineModel. * refactor: Remove unused imports from GlobalContext and StableContext * feat: Add demo components and routing for vertical and horizontal timelines - Introduced new demo components for vertical and horizontal timelines, including VerticalBasic, VerticalTree, and HorizontalBasic. - Implemented a Layout component for consistent navigation and structure across demos. - Created a custom hook, useDemoData, to manage demo data loading and state. - Established routing for various timeline demos, enhancing user navigation and experience. - Added a test file to verify import functionality and ensure all components are correctly integrated. * refactor: Clean up imports and enhance timeline item model - Removed unnecessary imports from GlobalContext for improved clarity. - Added `hasNestedItems` property to the TimelineItemModel to indicate the presence of nested sub-items. - Updated timeline components to utilize the new `hasNestedItems` property for better handling of nested items. - Adjusted demo components to reflect changes in card height and media settings for improved layout consistency. * refactor: Update GlobalContext and related hooks for legacy support - Refactored GlobalContext to re-export the legacy context, avoiding circular dependencies. - Cleaned up imports in hooks to utilize the new LegacyGlobalContext. - Removed unused type definitions and streamlined context properties for clarity. - Commented out a test in horizontal_spec.js for future reference. * refactor: Restructure demo components and data management - Removed legacy demo components and data files to streamline the project structure. - Introduced new timeline data files for basic, mixed, and nested timelines, enhancing data organization. - Updated demo components to utilize the new data structure, improving maintainability and clarity. - Added new layout and routing components for better navigation across timeline demos. - Adjusted tests to reflect changes in component structure and data handling. * refactor: Update styles to utilize theme-based colors - Removed hardcoded background colors in index.css and list.styles.ts, replacing them with theme-based values for better consistency. - Enhanced timeline styles to support theme-based background colors, improving flexibility and maintainability. - Passed theme prop to Timeline component for consistent theming across related styles. * feat: Enhance theming support for timeline components - Added `timelineBgColor` to the theme interface for better customization. - Updated default and dark themes to include `timelineBgColor`. - Modified timeline styles to utilize `timelineBgColor` for background consistency. - Passed theme prop to TimelineCardContent for improved theming integration. * feat: Implement comprehensive dark mode improvements for React Chrono - Introduced new configurable properties for dark mode in the theme interface, enhancing customization options. - Updated default and dark themes with improved color palettes for better visibility and accessibility. - Enhanced timeline, toolbar, and popover components to utilize theme-based colors, ensuring consistent styling across dark mode. - Improved shadow and glow effects for interactive elements, maintaining visual clarity in dark mode. - Added detailed documentation for dark mode customization and examples for brand color integration. - Ensured backward compatibility and accessibility compliance with WCAG standards. * Enhance README and theme styles for improved customization - Updated README.md to include new features and enhancements for dark mode and theming. - Improved theme properties in index.ts for better color management, including adjustments to toolbar and button styles. - Enhanced documentation for theming options, including new dark mode properties and examples for customization. - Ensured consistent styling across components with updated theme values for better accessibility and visual clarity. * Enhance SearchWrapper styles for improved focus effects - Updated border color in SearchWrapper to use theme-based buttonBorderColor for consistency. - Added transition effects for border color and box-shadow to enhance user interaction. - Implemented focus-within styles to improve accessibility and visual feedback when the input is active. * Update README.md to enhance theming documentation and customization options - Revised theming section to include new properties for timeline and nested card customization. - Added detailed descriptions for dark mode properties to improve user understanding. - Removed outdated examples and streamlined content for clarity and relevance. - Ensured consistency in formatting and structure across the documentation. * Enhance theming and layout in demo components - Updated tsconfig.json to include a new "types" directory for better type management. - Improved styles in timeline components to prevent text overflow and maintain layout integrity. - Added a new ThemeShowcase component to demonstrate various themes with detailed descriptions. - Updated routing and layout to include the new ThemeShowcase, enhancing navigation options in the demo. - Cleaned up imports in demo components for better organization and clarity. * Enhance theming and layout in demo components - Updated tsconfig.json to include a new "types" directory for better type management. - Improved styles in timeline components to prevent text overflow and maintain layout integrity. - Added a new ThemeShowcase component to demonstrate various themes with detailed descriptions. - Updated routing and layout to include the new ThemeShowcase, enhancing navigation options in the demo. - Cleaned up imports in demo components for better organization and clarity. * Update ThemeShowcase component to disable dark mode toggle - Set `enableDarkToggle` to false for all theme instances in the ThemeShowcase component, ensuring a consistent user experience without dark mode options. * Update README.md to reflect changes in timeline properties and customization options - Changed default value of `focusActiveItemOnLoad` from `true` to `false` for better user control. - Updated `itemWidth` default value from `300` to `200` for improved layout in horizontal mode. - Adjusted `responsiveBreakPoint` default value from `768` to `1024` for enhanced responsiveness. - Standardized `toolbarPosition` values to lowercase for consistency. - Added examples for customizing button text and accessibility labels, enhancing usability. * Refactor nullish coalescing for improved fallback handling in components * Remove unused imports and dynamic box shadow generator from popover styles * Remove SonarCloud workflow configuration * Add overall slideshow progress feature and enhance slideshow functionality - Introduced `showOverallSlideshowProgress` property to display a progress bar during slideshow mode, indicating overall progress across timeline items. - Updated README.md to document the new property and its default behavior. - Enhanced context and hooks to support the new progress feature. - Refactored timeline components to integrate the overall progress bar seamlessly. - Added tests for the new SlideshowProgress component to ensure functionality. * Comment out overall slideshow progress bar rendering in Timeline component * Update color values from shorthand to full hex format for consistency * Comment out slideshow progress bar rendering in ContentFooter component * Remove unused slideshow progress components and related code * Refactor ContentFooter tests: remove progress bar checks and update snapshot * Remove unused import of SlideshowProgress component from Timeline * Update src/components/contexts/OptimizedContextProvider.tsx Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update src/components/contexts/hooks.tsx Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update src/components/index.tsx Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Add semantic tags configuration to improve accessibility and SEO * Refactor styles and improve shadow handling in List and Popover components; streamline ContentFooter test rendering * Remove SlideshowProgress component and related tests and styles * Update shadow handling in getInteractiveShadow function for improved styling * Refactor ContentFooter props and remove unused elements; update snapshots for timeline controls and vertical items * Refactor TimelineCardContent to simplify ContentFooter props by removing unused properties * Remove unused RefObject import from header-footer.model.ts --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> | 1 year ago | |
docs: add DrakeXorn as a contributor for code (#321) | 3 years ago | |
Add-storybook-link (#567) * Add Storybook link section to README * Setup Chromatic token configuration with dotenv-cli * Update Chromatic project token and modify Storybook link in README for direct access to examples -------- | 11 months ago | |
React Chrono v3.0 (#554) * refactor: enhance React hooks performance and modularity - Optimize 14 hooks with performance improvements (memoization, RAF throttling, stable callbacks) - Split large useTimelineNavigation into focused, composable hooks - Add comprehensive shared utilities for common hook patterns - Enhance useBackground with multi-format color support - Extend useEscapeKey to support multiple keys and modifiers - Generalize useMeasureHeight to measure any DOM property - Add device detection and viewport info to useWindowSize - Maintain backward compatibility throughout all changes - Fix all test failures and add comprehensive test coverage * refactor: improve toolbar UX with flex-wrap layout and enhanced styling • Fix toolbar overflow by implementing logical control grouping (NavigationGroup, SearchGroup, ActionGroup) • Enhance button sizes and spacing - navigation buttons 28px → 36px, improved touch targets • Add proper flex-wrap behavior to prevent cutoff, controls wrap to next line intelligently • Improve accessibility with keyboard navigation, focus states, and ARIA labels • Fix search input colors for dark mode, remove unwanted hover backgrounds • Update popover buttons to match navigation button dimensions and styling • Add responsive design improvements with better mobile layout * fix: improve search focus and dark mode text colors - Fix search input losing focus while typing by preventing aggressive refocus - Add smart auto-focus with 100ms delay for first search, 400ms for subsequent - Enhance dark mode text colors with proper theme detection fallbacks - Add blur prevention to maintain search focus during timeline navigation - Improve placeholder and autofill colors for better contrast in both themes * updated configs for eslint, tsconfig, prettier major ux fixes and bug fixes * recreted pnpm.lock * fixed test cases * feat: add fullscreen functionality with consistent button sizing and UX improvements - Add fullscreen button component with proper theming and accessibility - Implement cross-browser fullscreen hook with comprehensive API support - Integrate fullscreen control into timeline toolbar - Fix button dimensions to match standard 36px toolbar buttons - Enhance search focus behavior and text color contrast in dark mode - Improve card content layout with better read-more functionality - Update popover styling and remove unnecessary margins - Add comprehensive test coverage for fullscreen components * feat: improve slideshow UX with proper card scrolling and link-style read more - Add vertical timeline scrolling during slideshow to keep cards visible - Centralize slideshow scroll logic in timeline.tsx for consistency - Convert read more button to link appearance (underlined text) - Remove button-style background, borders and shadows from read more - Fix slideshow card focus issues across all timeline modes * feat: migrate from Cypress to Playwright for E2E testing - Replace Cypress with Playwright for improved cross-browser support - Add comprehensive test configurations for E2E and component testing - Implement advanced Playwright features (trace viewer, parallel execution) - Support WebKit browsers and mobile device emulation - Add GitHub Actions workflow with matrix builds and sharding - Update .gitignore to exclude Playwright test artifacts - Remove Cypress dependency and replace test scripts - Add TypeScript fixtures and helpers for test reusability * feat: add comprehensive E2E test coverage for all timeline features - Add timeline-accessibility.spec.ts: keyboard navigation, ARIA attributes, screen reader support, focus management, color contrast, and motion accessibility - Add timeline-advanced-features.spec.ts: slideshow functionality, fullscreen controls, quick jump navigation, dark mode toggle, dynamic theme switching, responsive breakpoints, custom content, and dynamic loading - Add timeline-cardless-nested.spec.ts: cardless timeline modes, nested timeline structures, alternating nested layouts, and complex interaction handling - Add timeline-media.spec.ts: media-rich timelines, image/video content, YouTube integration, media loading states, error handling, and media settings configuration - Add timeline-navigation-controls.spec.ts: navigation buttons, timeline item selection, toolbar controls, scroll-based navigation, touch/mobile interactions, search filtering, and position navigation - Add timeline-performance.spec.ts: load performance testing, interaction responsiveness, memory usage monitoring, media loading optimization, animation performance, resource loading, stress testing, and performance monitoring - Add timeline-theme-responsive.spec.ts: theme switching, dynamic theme configuration, dark mode support, responsive design across viewports, breakpoint behavior, high DPI support, print media, and color scheme preferences - Enhance timeline-horizontal.spec.ts: add media content testing, slideshow functionality, and theme toggle support Covers all timeline modes (horizontal, vertical, alternating), advanced features, accessibility compliance, performance optimization, and responsive behavior across 3050+ lines of comprehensive test coverage. * - Add comprehensive theme validation tests with edge case coverage │ │ - Test theme property validation, merging, consistency, and performance │ │ - Add fullscreen control component tests with proper mocking │ │ - Create comprehensive toolbar interaction and accessibility tests │ │ - Fix styled-components prop filtering with transient props │ │ - Enhance hex color validation to support 3-character formats │ │ - Update theme utility tests with proper size assertions │ │ - Improve test reliability and maintainability * - Add new Technology Evolution Timeline showcasing 53+ years of tech history - Implement complete dark mode theme with blue, amber, white color scheme - Add all 15+ dark mode properties for comprehensive theme customization - Update README with enhanced documentation: - Add fullscreen functionality section with cross-browser support details - Expand development commands with comprehensive pnpm script documentation - Update testing framework section with Playwright E2E and component testing - Enhance features list with search, fullscreen, and accessibility improvements - Integrate new demo into navigation with featured highlighting - Create adaptive theme that works seamlessly in both light and dark modes - Include proper dark mode props (darkMode, enableDarkToggle, onThemeChange) * fix(tests): resolve Playwright test failures and optimize browser configuration - Fix CSS selector mismatches in timeline tests by updating selectors to match actual DOM structure - Replace .rc-card-title with [data-class=""] or direct element searches - Replace .rc-card-subtitle with .card-sub-title - Replace .rc-card-text with .card-description - Remove unnecessary .timeline-card-content wrapper selectors - Optimize Playwright configuration for better performance: - Reduce browser matrix from 7 to 1 (chromium only for now, others commented) - Improve parallelization: 50% CPU cores locally, 2 workers on CI - Reduce total test executions from ~1,085 to ~155 - Add split context architecture for performance optimization: - Create separate contexts for Navigation, Theme, Media, and Layout - Add MigrationContextProvider for backward compatibility - Update components to use split contexts while maintaining legacy support - Add useFocusManager hook for improved focus handling - Update test utilities: - Enhance customRender with TestWrapper integration - Add efficient comparison utilities for props - Fix timeline-card-content test setup * trigger deploy * fixed the lock file * removing cypress as we are moving over to playwright * regen lock file * fix pnpm versions on workflows * fix pnpm workflow * fix lock version * Update pnpm lockfile version and streamline Playwright workflow - Downgrade lockfileVersion from '10.0' to '9.0' for compatibility. - Modify Playwright workflow to remove frozen lockfile option during dependency installation for improved flexibility. - Update context providers to unify timeline context management, enhancing performance and maintainability. - Introduce debug logging in timeline component for better visibility during updates. * Refactor timeline components to unify context management and enhance visibility - Replace GlobalContext with useTimelineContext in multiple components for improved context management. - Update visibility logic in Chrono component for better handling of timeline item visibility based on mode. - Adjust styles in timeline components to support new layout requirements and improve responsiveness. - Enhance timeline card functionality with focus management for active items. - Update tests to reflect changes in component structure and context usage. * Update Playwright workflow to remove Firefox from browser matrix - Modify Playwright workflow to streamline browser testing by removing Firefox from the matrix, retaining only Chromium and WebKit. - This change aims to simplify the testing process and focus on the most relevant browsers for the project. * Enhance timeline navigation and scrolling experience - Refactor timeline component navigation to improve focus management and predictive centering during item transitions. - Update scrolling behavior with smoother animations and improved easing functions for both horizontal and vertical modes. - Introduce state tracking for keyboard and toolbar navigation to enhance accessibility. - Adjust styles for better focus visibility and user experience during timeline interactions. - Sync active item index with external updates for consistent navigation behavior. * Enhance focus management and accessibility in timeline components - Refactor timeline navigation to improve keyboard and toolbar navigation states. - Update focus styles to show outlines only during keyboard navigation, enhancing accessibility. - Streamline focus handling in timeline points and card content for better user experience. - Adjust scrolling behavior to ensure elements are focused correctly during navigation. - Improve code readability by consolidating focus-related logic and removing unnecessary comments. * Refactor timeline components for improved visibility and focus management - Simplify visibility logic in the Chrono component to ensure all items are always visible in horizontal modes. - Enhance focus management in horizontal timeline components to ensure active items are correctly focused during navigation. - Update context synchronization for showAllCardsHorizontal to improve responsiveness to mode changes. - Adjust styles to ensure timeline points are always visible and highlight active cards in horizontal_all mode. - Streamline code for better readability and maintainability across timeline components. * Refactor context management and update dependencies for timeline components - Replace legacy GlobalContext with TimelineContextProvider to streamline context usage across components. - Remove deprecated DynamicContext and related hooks to simplify context structure. - Update package dependencies in package.json for improved compatibility and performance. - Enhance focus management in timeline navigation hooks to ensure better accessibility during item transitions. - Clean up unused context files and improve overall code organization for maintainability. * Refactor timeline components for improved focus management and accessibility - Update focus handling in the Timeline component to prioritize card containers in horizontal modes. - Enhance styling for horizontal timeline cards to support new class variations. - Adjust navigation hooks to streamline focus management and ensure better accessibility during item transitions. - Introduce unique IDs for timeline items to improve element targeting during navigation. * Add configuration files and enhance project structure for improved development experience - Introduce .editorconfig, .eslintrc.cjs, .npmignore, and .npmrc for consistent coding standards and dependency management. - Create migration guide (MIGRATION.md) to outline changes for library modernization. - Update package.json scripts for better build and development processes, including new commands for Ladle and site preview. - Refactor TypeScript configuration (tsconfig.json) for stricter type checking and improved module resolution. - Set up CI workflows for automated testing, release, and size limit checks. - Add Ladle configuration for component previews and enhance timeline component tests for better accessibility. - Update Vite configuration to support library mode and improve build outputs. * Update CI and release workflows to use Node.js version 22 and remove deprecated publish step * Implement migration to vanilla-extract for styling and enhance ESLint configuration - Migrate styled-components to vanilla-extract across various components for improved performance and maintainability. - Introduce a new ESLint rule to restrict the use of styled-components, encouraging the use of vanilla-extract instead. - Update package.json to include new dependencies and adjust build configurations. - Add a migration status document to track progress on the transition to vanilla-extract. - Refactor multiple components to utilize the new CSS modules, ensuring consistent styling and improved accessibility. * Refactor timeline components and styles for improved maintainability and accessibility - Update CSS styles to utilize centralized variables for colors and z-index values across timeline components. - Enhance the Timeline component to accept a customizable height, improving layout flexibility. - Refactor TimelineView props to enforce required fields and streamline default values. - Adjust various components to ensure consistent styling and accessibility improvements. - Update snapshot tests to reflect changes in component structure and styling. * Enhance timeline component styles and functionality - Introduce a customizable height property for the Timeline component, allowing for flexible layouts. - Update styling logic to conditionally apply flex properties based on the provided height. - Remove unnecessary icon rotation in non-horizontal modes for a more consistent user experience. - Adjust snapshot tests to reflect changes in button class names and ensure accurate rendering. * Enhance timeline components with improved styling and focus management - Add custom scrollbar color to align with theme primary color for better visual consistency. - Allow dynamic alignment for timeline card titles based on props for improved layout flexibility. - Implement focus checks in navigation hooks to prevent actions when the component is not focused, enhancing accessibility and user experience. * feat(toolbar): flip to Vanilla Extract by default and remove styled-components usage; adjust sprinkles container props and fix popover recipe arg; add optional className props to ContentFooter * chore(toolbar): remove styled-components toolbar.styles.ts after VE flip * refactor(timeline): enhance styling and accessibility features - Update timeline component styles for improved visual consistency and user experience. - Adjust flex properties and heights for better layout flexibility in vertical and horizontal modes. - Implement focus management enhancements to ensure accessibility during item interactions. - Introduce a new MeasuredItem component for dynamic height measurement in vertical timelines. - Normalize toolbar button styles for a cohesive design across the application. * feat(timeline): enhance timeline UX with sticky toolbar, continuous line, and improved theming - Make timeline toolbar sticky using position: sticky instead of absolute/fixed - Fix broken timeline line by implementing continuous line with gradient effects - Improve date positioning in vertical alternating mode with proper padding - Enhance dark theme propagation across all Vanilla Extract components - Add comprehensive CSS custom properties for consistent theming - Update theme-bridge to automatically detect and handle dark mode - Ensure timeline points appear above continuous line with proper z-index - Add scroll container adjustments for sticky toolbar compatibility - Maintain all existing functionality while improving visual design * feat: enhance text overlay with minimize/maximize controls and fix alternating layout - Add minimize/maximize functionality for text overlay mode with smooth transitions - Improve text overlay positioning with better styling (backdrop blur, shadows, borders) - Fix vertical alternating mode layout by removing incorrect height: 0 for text overlay - Add isDarkMode support throughout timeline components for proper theming - Enhance visual styling with hover effects and improved readability * fix(types): resolve TypeScript strict mode errors across components - Add null safety checks and default values for optional props - Fix undefined/null handling in context providers and hooks - Update component prop types to handle strict mode requirements - Standardize callback prop handling with fallback functions - Fix type assertions and remove unsafe any types * refactor(config): update vanilla-extract plugin identifiers for environment-specific behavior - Modify vanilla-extract plugin configurations in Playwright, Vite, and Vitest to use environment-specific identifiers for better debugging and production builds. - Enhance CSS styles in popover and timeline components to utilize global styles and improve responsiveness. - Refactor toolbar styles to streamline child alignment and layout adjustments, ensuring consistent design across different screen sizes. * feat: complete migration from styled-components to vanilla-extract BREAKING: Remove styled-components dependency entirely - Replace all styled-components with vanilla-extract CSS-in-JS - Migrate timeline-point component from styled components to VE classes - Convert video component to use vanilla-extract styles - Deprecate all legacy .styles.ts files with migration notes - Update test files to remove ThemeProvider dependencies - Add minimize/maximize functionality to toolbar components - Preserve all existing functionality and theming capabilities Performance improvements: - Eliminate styled-components runtime overhead - Better CSS optimization through static extraction - Reduced bundle size with more efficient styling system Technical changes: - Replace styled-component imports with vanilla-extract classes - Update JSX to use className with VE recipes and styles - Maintain theme integration through CSS custom properties - Preserve all hover states, accessibility, and animations - Keep backward compatibility for all public APIs Testing: - All 395 tests pass with no regressions - Build succeeds without styled-components dependencies - Code quality maintained (ESLint, Prettier clean) * fix: resolve nested timeline rendering and icon positioning issues - Fix nested timeline visibility by enhancing wrapper styles - Add proper flex centering for timeline point icons - Improve icon sizing and positioning in timeline shapes - Fix CSS syntax error in visibility overrides - Ensure nested timeline items display correctly with proper spacing - Add icon-specific styles for images and SVGs - Counter-rotate icons inside diamond shapes for proper orientation * refactor: remove unused style files post vanilla-extract migration - Remove all .styles.ts and .styles.tsx files (replaced by .css.ts) - Remove legacy CSS files (*-legacy.css.ts) - Remove backup files (.bak, .backup) - Clean up 1806 lines of obsolete styling code * refactor: remove unused styles and consolidate CSS architecture - Remove 10 completely unused CSS files (3,055 lines) - Clean up 88 unused exports from timeline.css.ts - Consolidate toolbar styles into single file - Remove legacy .styles.ts files from elements/ - Improve styling architecture maintainability Files removed: - timeline-advanced.css.ts (476 lines) - timeline-main.css.ts (354 lines) - timeline-system-v2.css.ts (560 lines) - timeline-toolbar-ve.css.ts (404 lines) - toolbar-legacy.css.ts (283 lines) - toolbar-system-v2.css.ts (536 lines) - toolbar-system.css.ts (443 lines) - Plus 3 small .styles.ts files * chore: remove unused configuration files and documentation - Remove webpack.config.js (replaced by Vite for builds) - Remove .eslintrc.cjs (empty, using eslint.config.mjs) - Remove VE_MIGRATION_STATUS.md (completed migration tracking) - Remove open_issues_last_1_year.json (6MB GitHub export file) - Update vitest.config.mts to remove webpack.config.js exclusion * feat: enhance timeline components with improved UI controls and nested timeline rendering - Add text overlay minimize/maximize controls with professional icons - Implement card-based nested timeline rendering with center connecting line - Remove timeline points from nested timelines for cleaner visual design - Fix timeline point visibility and positioning across all modes - Improve button styling with consistent hover/active states throughout - Enhance mobile responsiveness for timeline controls and cards - Add comprehensive test coverage for timeline point visibility controls * fix: implement proper responsive breakpoint behavior for vertical alternating mode - Replace hardcoded isMobile detection based on mode with context-based responsive detection - VERTICAL_ALTERNATING mode now respects enableBreakPoint and responsiveBreakPoint props - Timeline automatically switches from alternating to stacked layout below breakpoint threshold - Maintains backward compatibility while enabling proper mobile-responsive behavior - Fixes previously ignored responsive breakpoint configuration (default: 1024px) * refactor: replace conditional prop spreading with pickDefined utility - Replace verbose `{...(condition ? { prop: value } : {})}` pattern with clean `{...pickDefined({ prop: value })}` utility - Add propUtils.ts with reusable prop handling utilities - Apply consistent pattern across 11+ component files - Remove unused text maximize/minimize icons, replace with plus/minus - Add dark mode theme class application - Memoize styles in nested timeline components for performance - Maintain TypeScript strict mode compatibility * - Replace verbose `{...(condition ? { prop: value } : {})}` pattern with clean `{...pickDefined({ prop: value })}` utility * feat: enhance horizontal timeline with smaller points and improved structure - Reduce timeline point size from 2rem to 1.5rem for better visual balance - Add memoized timeline point props similar to vertical timeline implementation - Improve timeline card structure with cleaner section organization - Fix visibility logic for horizontal_all mode to properly show all cards - Apply consistent code formatting across all components - Update test snapshots to reflect structural changes * - Improve font color handling in both normal and text overlay modes - Add proper dark mode support with computeCssVarsFromTheme integration - Fix content header to pass color props to TitleMemo and SubTitleMemo - Update text-or-content component with CSS variable fallbacks - Enhance text overlay ContentDisplay with proper color theming - Apply theme CSS variables to timeline card wrapper and points - Fix timeline card content wrapper missing dark mode support - Update details-text component to use CSS variables for backgrounds - Improve read more logic to be context-aware and robust - Use pickDefined utility for proper TypeScript optional props handling - Fix failing test to match new CSS variable implementation - Ensure proper contrast and readability across all timeline modes * fix: improve popover positioning and menu item UX - Add smart horizontal positioning to keep popovers within timeline container bounds - Implement dynamic position calculation (left/right/center) based on available space - Reduce menu item text sizes for better visual hierarchy - Enhance hover effects with subtle animations and improved spacing * refactor: modernize icon components and migrate styles to vanilla-extract - Add React imports and proper TypeScript typing to all icon components - Replace styled-components with vanilla-extract CSS modules - Improve search controls with consistent button styling - Fix timeline fullscreen mode theme support - Update demo app styles from styled-components to vanilla-extract - Enhance dynamic item loading behavior to focus on new items - Standardize icon component naming and test IDs * fix: resolve slideshow and keyboard navigation issues with comprehensive improvements - Fix double increment bug in slideshow progression causing skipped items - Resolve circular useEffect loop in main component state synchronization - Unify keyboard and slideshow navigation pathways for consistency - Add error boundary for crash prevention and better UX - Add performance optimizations with throttled scroll handlers - Add prop validation and memoized icon components - Extract slideItemDuration prop and fix timer initialization - Improve TypeScript types and remove any usage where possible * fix: resolve slideshow media deadlock and standardize icon dimensions - Fix slideshow getting stuck on video elements by resuming when video pauses/ends - Prevent slideshow from auto-starting on component render - Standardize icon sizing across components (16px toolbar, 20px buttons, 24px controls) - Add IconWrapper component and base styles for consistent icon rendering - Update MediaState interface to include 'ended' property for video completion - Remove inconsistent Feather CSS classes in favor of standardized inline styles 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> * feat: enhance accessibility and fix navigation issues - Add proper ARIA labels and roles to timeline components - Fix keyboard navigation at first/last cards with improved focus management - Reduce scroll duration from 1200ms to 600ms for better responsiveness - Fix inverted textDensity mapping (compactText now correctly maps to LOW) - Add titles to popover buttons for better accessibility - Fix custom icon z-index to prevent timeline overlap - Disable default icon bounce animations in toolbar - Fix navigation using items.length instead of itemsMap.size - Add comprehensive accessibility documentation to README - Update keyboard navigation docs with Home/End key support * feat: add light and dark theme implementations with extensive design tokens - Introduced `themes.css.ts` for defining light and dark themes using Vanilla Extract. - Added comprehensive design tokens for colors, spacing, typography, shadows, and more. - Created TypeScript definitions in `types.ts` for design system components and tokens. - Configured TypeScript build settings in `tsconfig.build.json` for type declaration generation. - Updated main `tsconfig.json` to support new paths and improved type declarations. - Enhanced Vite configuration to include visualizer for production builds and improved minification settings. * feat: implement sticky toolbar functionality across timeline components * chore: update Node.js version to 22.x and pnpm version to 10.15.1 across workflows; improve caching strategy * feat: add stylelint configuration and implement sticky toolbar feature in timeline components * feat: Add Google Fonts integration with FontProvider and utility functions - Implemented FontProvider component for loading and applying Google Fonts. - Created google-fonts utility module for managing font configurations and loading. - Added index file for exporting font utilities and components. - Updated timeline components to utilize new font features. - Enhanced button styles in fullscreen and timeline controls for better UX. - Refactored ContentDisplay component to use CSS classes for styling. - Improved timeline scrolling behavior by disabling auto-navigation during keyboard navigation. - Added responsive font size adjustments and utility styles for typography. - Updated theme popover z-index for better layering. - Introduced TypeScript configuration for development environment. - Enhanced Vite configuration for improved development experience. * feat: Integrate Google Fonts support across components and update typography styles * Refactor theme styles and improve code formatting - Updated spacing, font sizes, and border radius definitions in light and dark themes for consistency. - Enhanced semantic color definitions for better readability. - Improved formatting of the code for better clarity and maintainability. - Refactored prop migration utility functions for better readability and structure. - Updated validation functions to improve error messaging and code clarity. - Cleaned up throttle and debounce utility functions for consistency in formatting. * refactor: update timeline test locators and improve assertions for better clarity and accuracy * fix: adjust performance test timeouts and improve compatibility for Firefox * feat: Add customizable toolbar search configuration and position - Introduced `toolbarSearchConfig` to allow customization of search input dimensions in the timeline toolbar. - Added support for `toolbarPosition` to specify the toolbar's placement (top or bottom). - Enhanced the `GlobalContext` and `TimelineContextProvider` to handle new toolbar configurations. - Updated CSS styles for responsive search input handling. - Modified demo components to showcase the new toolbar search features. - Ensured backward compatibility with existing configurations. * refactor: Improve list item layout and styles for better responsiveness and clarity * Add comprehensive tests for timeline props and related test data - Created a new test file for timeline props with various display, navigation, slideshow, theme, content, media, scrollable, responsive, and toolbar props tests. - Added test data for timeline items and props to facilitate testing. - Introduced a script to run tests in different modes and browsers. * feat: Complete demo site redesign with modern UX and full-width layout - Add comprehensive demo site redesign with modern header, footer, and navigation - Implement Tailwind CSS v3 with proper PostCSS configuration - Create responsive sidebar navigation with categorized demo sections - Add HeroSection with gradient background and feature highlights - Fix full-width layout issues by removing conflicting CSS constraints - Integrate Google Fonts (Inter and Plus Jakarta Sans) for better typography - Resolve router navigation issues by removing conditional rendering - Ensure cross-browser compatibility with proper CSS prefixes - Update all demo pages to use consistent DemoPageLayout wrapper - Add proper responsive design for mobile and desktop experiences * feat: Enhance toolbar search configuration and update documentation * feat: Implement internationalization support for timeline component - Added comprehensive internationalization configuration to support multiple languages and text customization. - Introduced `i18n` prop in timeline components for managing user-facing text. - Created a new `useI18n` hook for handling text retrieval and interpolation. - Developed a text resolver utility to manage legacy and new text formats seamlessly. - Updated documentation to include internationalization guidelines and examples. - Enhanced demo components to showcase internationalization features. * feat: Expand internationalization support with new configuration options - Added `i18n` and `darkMode` properties to the props reference for enhanced configuration. - Introduced detailed interfaces for `I18nConfig` and `DarkModeConfig` to support multi-language and dark mode features. - Updated documentation to reflect new internationalization capabilities and examples. - Implemented tests to ensure proper integration of i18n features and fallback mechanisms. * fix: Adjust styles for timeline and popover components for better layout and alignmen * feat: Add Playwright testing workflow and ESLint rule for unused variables - Introduced a new Playwright testing workflow to automate browser testing on push and pull request events. - Added ESLint rule for `no-unused-vars` to enforce cleaner code practices. - Updated various components and styles for improved layout and responsiveness. - Refactored prop types to enhance clarity and maintainability across components. * upgrade packages * upgraded tailwind from 3 to 4 * feat(PopOver): update portal container for fullscreen support - Added logic to dynamically set the portal container to the current fullscreen element or fallback to document body. - Implemented event listeners for fullscreen change events to update the portal container accordingly. fix(timeline-card-media): update snapshot with border style - Added border style to video element in timeline card media snapshot. fix(timeline-horizontal-card): update snapshot with corrected styles - Removed redundant styles and ensured consistency in timeline horizontal card snapshot. * refactor: remove computeCssVarsFromTheme usage and related CSS variable logic - Eliminated computeCssVarsFromTheme function calls in timeline components to streamline theme handling. - Removed unused CSS variable styles from timeline-related CSS files. - Updated theme handling logic to only compute CSS variables for custom themes. - Switched minification strategy in Vite config from Terser to ESBuild for production builds. * chore: remove rollup configuration and add integration tests for build output and demo app - Deleted rollup.config.mjs as part of the build process refactor. - Added integration tests to validate build output, including ESM and CJS bundles, TypeScript definitions, and CSS assets. - Created a demo app for end-to-end testing of the built package, including TypeScript checks and successful builds. - Added necessary files for the demo app, including HTML, TypeScript, and Vite configuration. * Update Vite configuration for demo app and main project - Changed server port to 5555 in demo app's vite.config.ts to match Playwright config and added strictPort option to fail if the port is already in use. - Updated optimizeDeps in demo app's vite.config.ts to exclude 'react-chrono' from pre-bundling. - Modified rollupOptions in main project's vite.config.mts to include additional conditions for external dependencies, allowing for scoped packages of 'react', 'react-dom', and 'styled-components'. * feat: remeasure card size on textDensity changes for improved layout * feat: add borderless variant to timeline card and improve title responsiveness * refactor: update popover positioning logic and enhance timeline card styles * Update snapshots for timeline components and adjust Vitest configuration - Updated snapshot files for timeline card content, horizontal card, item title, and vertical item to reflect changes in class names and structure. - Added title attributes to timeline item title components for better accessibility. - Modified Vitest configuration to exclude specific integration tests that require a build/setup, ensuring a cleaner test run. * refactor: improve list and popover styles for better layout and responsiveness * updated packages fixed integration tests * feat: add v3.0 blog post, enhance integration tests for Vanilla Extract CSS - Create comprehensive v3.0 blog post (BLOG_V3.md) documenting all new features - Add DarkModeConfig interface in TimelineConfig.ts for better type organization - Update integration tests to validate Vanilla Extract CSS bundling and application - Add CSS verification tests checking for design tokens and hash-based class names - Configure static CSS filename (style.css) for consistent imports - Add CSS export to package.json for proper module resolution - Update demo app to explicitly import Vanilla Extract styles - Enhance integration test documentation with Vanilla Extract specifics * upgraded all packages * fix kitchen sink page layout * removed unused modules * chore: remove unused dependencies and cleanup build config - Remove styled-components and related packages (fully migrated to Vanilla Extract) - Remove Husky, lint-staged, and git hook automation - Remove unused dev dependencies (c8, intersection-observer, semver, etc.) - Update package size limits (110KB -> 250KB) - Clean up stylelint and build configurations - Remove console.log debug statements from production code - Add ESLint rule for unused vars with underscore ignore pattern * removing references to playwright as we will bring it back in the next minor release * updated the readme to make some sections terser * minor updates to the readme (removed the use case section) * removed deepscan badge as we are not using it anymore * updated readme and made the why section a little terser * add blank line for improved readability in README * Update README.md --------- Co-authored-by: githubprojectsprabhu <githubprojectsprabhu@gmail.com> Co-authored-by: Claude <noreply@anthropic.com> | 1 year ago | |
Cleanup + Minor enhancements to the Timeline card + minor doc updates (#598) * Enhance theme colors and styles across components - Introduced a new electric color palette in index.css for consistent theming. - Updated default theme colors in common themes to utilize the new electric palette. - Modified demo components to reflect the new theme colors, enhancing visual consistency. - Adjusted various component styles to incorporate electric colors for better accessibility and aesthetics. * Remove obsolete configuration files and build logs - Deleted .restyled.yaml to eliminate unused styling configurations. - Removed build-storybook.log as it contained outdated build logs, streamlining the project structure. * Remove stats.html file to streamline project structure and eliminate unused resources. * Refactor timeline components for improved styling and layout - Enhanced TimelineItemTitle to utilize CSS variables for background and text colors, improving theming flexibility. - Updated VerticalItem to streamline title visibility logic and layout calculations. - Introduced computed styles for card content and wrapper classes to enhance responsiveness and maintainability. - Adjusted demo components to reflect new title color settings for better visual consistency across themes. * Enhance theme colors and styles across components - Introduced a new electric color palette in index.css for consistent theming. - Updated default theme colors in common themes to utilize the new electric palette. - Modified demo components to reflect the new theme colors, enhancing visual consistency. - Adjusted various component styles to incorporate electric colors for better accessibility and aesthetics. * Remove obsolete configuration files and build logs - Deleted .restyled.yaml to eliminate unused styling configurations. - Removed build-storybook.log as it contained outdated build logs, streamlining the project structure. * Remove stats.html file to streamline project structure and eliminate unused resources. * Refactor timeline components for improved styling and layout - Enhanced TimelineItemTitle to utilize CSS variables for background and text colors, improving theming flexibility. - Updated VerticalItem to streamline title visibility logic and layout calculations. - Introduced computed styles for card content and wrapper classes to enhance responsiveness and maintainability. - Adjusted demo components to reflect new title color settings for better visual consistency across themes. * Enhance timeline item title styles with color variable - Added a new CSS variable for timeline title text color to improve theming flexibility. - Updated global styles to ensure the text color is consistently applied across timeline item titles. * Refactor timeline item title styles to improve theming support - Removed global style overrides for timeline item titles to streamline CSS. - Updated TimelineItemTitle component to utilize theme colors for text, enhancing flexibility. - Adjusted demo components to consistently apply the new title color theme across various layouts. * fix formatting * Update primary theme color to '#0079e6' across documentation and components for consistency * updated test cases for the timeline card content * removed obsolete storybook * Update dependencies in package.json and bun.lock * Refactor Vite configuration for improved type generation and source map handling - Updated Vite build configuration to conditionally enable type generation and source maps based on environment variables. - Enhanced plugin setup for better production handling and added support for additional dependencies in the site configuration. - Streamlined output settings and improved code organization for clarity. | 10 months ago | |
Adding Kodiak for better PR management (#218) | 4 years ago | |
React Chrono v3.0 (#554) * refactor: enhance React hooks performance and modularity - Optimize 14 hooks with performance improvements (memoization, RAF throttling, stable callbacks) - Split large useTimelineNavigation into focused, composable hooks - Add comprehensive shared utilities for common hook patterns - Enhance useBackground with multi-format color support - Extend useEscapeKey to support multiple keys and modifiers - Generalize useMeasureHeight to measure any DOM property - Add device detection and viewport info to useWindowSize - Maintain backward compatibility throughout all changes - Fix all test failures and add comprehensive test coverage * refactor: improve toolbar UX with flex-wrap layout and enhanced styling • Fix toolbar overflow by implementing logical control grouping (NavigationGroup, SearchGroup, ActionGroup) • Enhance button sizes and spacing - navigation buttons 28px → 36px, improved touch targets • Add proper flex-wrap behavior to prevent cutoff, controls wrap to next line intelligently • Improve accessibility with keyboard navigation, focus states, and ARIA labels • Fix search input colors for dark mode, remove unwanted hover backgrounds • Update popover buttons to match navigation button dimensions and styling • Add responsive design improvements with better mobile layout * fix: improve search focus and dark mode text colors - Fix search input losing focus while typing by preventing aggressive refocus - Add smart auto-focus with 100ms delay for first search, 400ms for subsequent - Enhance dark mode text colors with proper theme detection fallbacks - Add blur prevention to maintain search focus during timeline navigation - Improve placeholder and autofill colors for better contrast in both themes * updated configs for eslint, tsconfig, prettier major ux fixes and bug fixes * recreted pnpm.lock * fixed test cases * feat: add fullscreen functionality with consistent button sizing and UX improvements - Add fullscreen button component with proper theming and accessibility - Implement cross-browser fullscreen hook with comprehensive API support - Integrate fullscreen control into timeline toolbar - Fix button dimensions to match standard 36px toolbar buttons - Enhance search focus behavior and text color contrast in dark mode - Improve card content layout with better read-more functionality - Update popover styling and remove unnecessary margins - Add comprehensive test coverage for fullscreen components * feat: improve slideshow UX with proper card scrolling and link-style read more - Add vertical timeline scrolling during slideshow to keep cards visible - Centralize slideshow scroll logic in timeline.tsx for consistency - Convert read more button to link appearance (underlined text) - Remove button-style background, borders and shadows from read more - Fix slideshow card focus issues across all timeline modes * feat: migrate from Cypress to Playwright for E2E testing - Replace Cypress with Playwright for improved cross-browser support - Add comprehensive test configurations for E2E and component testing - Implement advanced Playwright features (trace viewer, parallel execution) - Support WebKit browsers and mobile device emulation - Add GitHub Actions workflow with matrix builds and sharding - Update .gitignore to exclude Playwright test artifacts - Remove Cypress dependency and replace test scripts - Add TypeScript fixtures and helpers for test reusability * feat: add comprehensive E2E test coverage for all timeline features - Add timeline-accessibility.spec.ts: keyboard navigation, ARIA attributes, screen reader support, focus management, color contrast, and motion accessibility - Add timeline-advanced-features.spec.ts: slideshow functionality, fullscreen controls, quick jump navigation, dark mode toggle, dynamic theme switching, responsive breakpoints, custom content, and dynamic loading - Add timeline-cardless-nested.spec.ts: cardless timeline modes, nested timeline structures, alternating nested layouts, and complex interaction handling - Add timeline-media.spec.ts: media-rich timelines, image/video content, YouTube integration, media loading states, error handling, and media settings configuration - Add timeline-navigation-controls.spec.ts: navigation buttons, timeline item selection, toolbar controls, scroll-based navigation, touch/mobile interactions, search filtering, and position navigation - Add timeline-performance.spec.ts: load performance testing, interaction responsiveness, memory usage monitoring, media loading optimization, animation performance, resource loading, stress testing, and performance monitoring - Add timeline-theme-responsive.spec.ts: theme switching, dynamic theme configuration, dark mode support, responsive design across viewports, breakpoint behavior, high DPI support, print media, and color scheme preferences - Enhance timeline-horizontal.spec.ts: add media content testing, slideshow functionality, and theme toggle support Covers all timeline modes (horizontal, vertical, alternating), advanced features, accessibility compliance, performance optimization, and responsive behavior across 3050+ lines of comprehensive test coverage. * - Add comprehensive theme validation tests with edge case coverage │ │ - Test theme property validation, merging, consistency, and performance │ │ - Add fullscreen control component tests with proper mocking │ │ - Create comprehensive toolbar interaction and accessibility tests │ │ - Fix styled-components prop filtering with transient props │ │ - Enhance hex color validation to support 3-character formats │ │ - Update theme utility tests with proper size assertions │ │ - Improve test reliability and maintainability * - Add new Technology Evolution Timeline showcasing 53+ years of tech history - Implement complete dark mode theme with blue, amber, white color scheme - Add all 15+ dark mode properties for comprehensive theme customization - Update README with enhanced documentation: - Add fullscreen functionality section with cross-browser support details - Expand development commands with comprehensive pnpm script documentation - Update testing framework section with Playwright E2E and component testing - Enhance features list with search, fullscreen, and accessibility improvements - Integrate new demo into navigation with featured highlighting - Create adaptive theme that works seamlessly in both light and dark modes - Include proper dark mode props (darkMode, enableDarkToggle, onThemeChange) * fix(tests): resolve Playwright test failures and optimize browser configuration - Fix CSS selector mismatches in timeline tests by updating selectors to match actual DOM structure - Replace .rc-card-title with [data-class=""] or direct element searches - Replace .rc-card-subtitle with .card-sub-title - Replace .rc-card-text with .card-description - Remove unnecessary .timeline-card-content wrapper selectors - Optimize Playwright configuration for better performance: - Reduce browser matrix from 7 to 1 (chromium only for now, others commented) - Improve parallelization: 50% CPU cores locally, 2 workers on CI - Reduce total test executions from ~1,085 to ~155 - Add split context architecture for performance optimization: - Create separate contexts for Navigation, Theme, Media, and Layout - Add MigrationContextProvider for backward compatibility - Update components to use split contexts while maintaining legacy support - Add useFocusManager hook for improved focus handling - Update test utilities: - Enhance customRender with TestWrapper integration - Add efficient comparison utilities for props - Fix timeline-card-content test setup * trigger deploy * fixed the lock file * removing cypress as we are moving over to playwright * regen lock file * fix pnpm versions on workflows * fix pnpm workflow * fix lock version * Update pnpm lockfile version and streamline Playwright workflow - Downgrade lockfileVersion from '10.0' to '9.0' for compatibility. - Modify Playwright workflow to remove frozen lockfile option during dependency installation for improved flexibility. - Update context providers to unify timeline context management, enhancing performance and maintainability. - Introduce debug logging in timeline component for better visibility during updates. * Refactor timeline components to unify context management and enhance visibility - Replace GlobalContext with useTimelineContext in multiple components for improved context management. - Update visibility logic in Chrono component for better handling of timeline item visibility based on mode. - Adjust styles in timeline components to support new layout requirements and improve responsiveness. - Enhance timeline card functionality with focus management for active items. - Update tests to reflect changes in component structure and context usage. * Update Playwright workflow to remove Firefox from browser matrix - Modify Playwright workflow to streamline browser testing by removing Firefox from the matrix, retaining only Chromium and WebKit. - This change aims to simplify the testing process and focus on the most relevant browsers for the project. * Enhance timeline navigation and scrolling experience - Refactor timeline component navigation to improve focus management and predictive centering during item transitions. - Update scrolling behavior with smoother animations and improved easing functions for both horizontal and vertical modes. - Introduce state tracking for keyboard and toolbar navigation to enhance accessibility. - Adjust styles for better focus visibility and user experience during timeline interactions. - Sync active item index with external updates for consistent navigation behavior. * Enhance focus management and accessibility in timeline components - Refactor timeline navigation to improve keyboard and toolbar navigation states. - Update focus styles to show outlines only during keyboard navigation, enhancing accessibility. - Streamline focus handling in timeline points and card content for better user experience. - Adjust scrolling behavior to ensure elements are focused correctly during navigation. - Improve code readability by consolidating focus-related logic and removing unnecessary comments. * Refactor timeline components for improved visibility and focus management - Simplify visibility logic in the Chrono component to ensure all items are always visible in horizontal modes. - Enhance focus management in horizontal timeline components to ensure active items are correctly focused during navigation. - Update context synchronization for showAllCardsHorizontal to improve responsiveness to mode changes. - Adjust styles to ensure timeline points are always visible and highlight active cards in horizontal_all mode. - Streamline code for better readability and maintainability across timeline components. * Refactor context management and update dependencies for timeline components - Replace legacy GlobalContext with TimelineContextProvider to streamline context usage across components. - Remove deprecated DynamicContext and related hooks to simplify context structure. - Update package dependencies in package.json for improved compatibility and performance. - Enhance focus management in timeline navigation hooks to ensure better accessibility during item transitions. - Clean up unused context files and improve overall code organization for maintainability. * Refactor timeline components for improved focus management and accessibility - Update focus handling in the Timeline component to prioritize card containers in horizontal modes. - Enhance styling for horizontal timeline cards to support new class variations. - Adjust navigation hooks to streamline focus management and ensure better accessibility during item transitions. - Introduce unique IDs for timeline items to improve element targeting during navigation. * Add configuration files and enhance project structure for improved development experience - Introduce .editorconfig, .eslintrc.cjs, .npmignore, and .npmrc for consistent coding standards and dependency management. - Create migration guide (MIGRATION.md) to outline changes for library modernization. - Update package.json scripts for better build and development processes, including new commands for Ladle and site preview. - Refactor TypeScript configuration (tsconfig.json) for stricter type checking and improved module resolution. - Set up CI workflows for automated testing, release, and size limit checks. - Add Ladle configuration for component previews and enhance timeline component tests for better accessibility. - Update Vite configuration to support library mode and improve build outputs. * Update CI and release workflows to use Node.js version 22 and remove deprecated publish step * Implement migration to vanilla-extract for styling and enhance ESLint configuration - Migrate styled-components to vanilla-extract across various components for improved performance and maintainability. - Introduce a new ESLint rule to restrict the use of styled-components, encouraging the use of vanilla-extract instead. - Update package.json to include new dependencies and adjust build configurations. - Add a migration status document to track progress on the transition to vanilla-extract. - Refactor multiple components to utilize the new CSS modules, ensuring consistent styling and improved accessibility. * Refactor timeline components and styles for improved maintainability and accessibility - Update CSS styles to utilize centralized variables for colors and z-index values across timeline components. - Enhance the Timeline component to accept a customizable height, improving layout flexibility. - Refactor TimelineView props to enforce required fields and streamline default values. - Adjust various components to ensure consistent styling and accessibility improvements. - Update snapshot tests to reflect changes in component structure and styling. * Enhance timeline component styles and functionality - Introduce a customizable height property for the Timeline component, allowing for flexible layouts. - Update styling logic to conditionally apply flex properties based on the provided height. - Remove unnecessary icon rotation in non-horizontal modes for a more consistent user experience. - Adjust snapshot tests to reflect changes in button class names and ensure accurate rendering. * Enhance timeline components with improved styling and focus management - Add custom scrollbar color to align with theme primary color for better visual consistency. - Allow dynamic alignment for timeline card titles based on props for improved layout flexibility. - Implement focus checks in navigation hooks to prevent actions when the component is not focused, enhancing accessibility and user experience. * feat(toolbar): flip to Vanilla Extract by default and remove styled-components usage; adjust sprinkles container props and fix popover recipe arg; add optional className props to ContentFooter * chore(toolbar): remove styled-components toolbar.styles.ts after VE flip * refactor(timeline): enhance styling and accessibility features - Update timeline component styles for improved visual consistency and user experience. - Adjust flex properties and heights for better layout flexibility in vertical and horizontal modes. - Implement focus management enhancements to ensure accessibility during item interactions. - Introduce a new MeasuredItem component for dynamic height measurement in vertical timelines. - Normalize toolbar button styles for a cohesive design across the application. * feat(timeline): enhance timeline UX with sticky toolbar, continuous line, and improved theming - Make timeline toolbar sticky using position: sticky instead of absolute/fixed - Fix broken timeline line by implementing continuous line with gradient effects - Improve date positioning in vertical alternating mode with proper padding - Enhance dark theme propagation across all Vanilla Extract components - Add comprehensive CSS custom properties for consistent theming - Update theme-bridge to automatically detect and handle dark mode - Ensure timeline points appear above continuous line with proper z-index - Add scroll container adjustments for sticky toolbar compatibility - Maintain all existing functionality while improving visual design * feat: enhance text overlay with minimize/maximize controls and fix alternating layout - Add minimize/maximize functionality for text overlay mode with smooth transitions - Improve text overlay positioning with better styling (backdrop blur, shadows, borders) - Fix vertical alternating mode layout by removing incorrect height: 0 for text overlay - Add isDarkMode support throughout timeline components for proper theming - Enhance visual styling with hover effects and improved readability * fix(types): resolve TypeScript strict mode errors across components - Add null safety checks and default values for optional props - Fix undefined/null handling in context providers and hooks - Update component prop types to handle strict mode requirements - Standardize callback prop handling with fallback functions - Fix type assertions and remove unsafe any types * refactor(config): update vanilla-extract plugin identifiers for environment-specific behavior - Modify vanilla-extract plugin configurations in Playwright, Vite, and Vitest to use environment-specific identifiers for better debugging and production builds. - Enhance CSS styles in popover and timeline components to utilize global styles and improve responsiveness. - Refactor toolbar styles to streamline child alignment and layout adjustments, ensuring consistent design across different screen sizes. * feat: complete migration from styled-components to vanilla-extract BREAKING: Remove styled-components dependency entirely - Replace all styled-components with vanilla-extract CSS-in-JS - Migrate timeline-point component from styled components to VE classes - Convert video component to use vanilla-extract styles - Deprecate all legacy .styles.ts files with migration notes - Update test files to remove ThemeProvider dependencies - Add minimize/maximize functionality to toolbar components - Preserve all existing functionality and theming capabilities Performance improvements: - Eliminate styled-components runtime overhead - Better CSS optimization through static extraction - Reduced bundle size with more efficient styling system Technical changes: - Replace styled-component imports with vanilla-extract classes - Update JSX to use className with VE recipes and styles - Maintain theme integration through CSS custom properties - Preserve all hover states, accessibility, and animations - Keep backward compatibility for all public APIs Testing: - All 395 tests pass with no regressions - Build succeeds without styled-components dependencies - Code quality maintained (ESLint, Prettier clean) * fix: resolve nested timeline rendering and icon positioning issues - Fix nested timeline visibility by enhancing wrapper styles - Add proper flex centering for timeline point icons - Improve icon sizing and positioning in timeline shapes - Fix CSS syntax error in visibility overrides - Ensure nested timeline items display correctly with proper spacing - Add icon-specific styles for images and SVGs - Counter-rotate icons inside diamond shapes for proper orientation * refactor: remove unused style files post vanilla-extract migration - Remove all .styles.ts and .styles.tsx files (replaced by .css.ts) - Remove legacy CSS files (*-legacy.css.ts) - Remove backup files (.bak, .backup) - Clean up 1806 lines of obsolete styling code * refactor: remove unused styles and consolidate CSS architecture - Remove 10 completely unused CSS files (3,055 lines) - Clean up 88 unused exports from timeline.css.ts - Consolidate toolbar styles into single file - Remove legacy .styles.ts files from elements/ - Improve styling architecture maintainability Files removed: - timeline-advanced.css.ts (476 lines) - timeline-main.css.ts (354 lines) - timeline-system-v2.css.ts (560 lines) - timeline-toolbar-ve.css.ts (404 lines) - toolbar-legacy.css.ts (283 lines) - toolbar-system-v2.css.ts (536 lines) - toolbar-system.css.ts (443 lines) - Plus 3 small .styles.ts files * chore: remove unused configuration files and documentation - Remove webpack.config.js (replaced by Vite for builds) - Remove .eslintrc.cjs (empty, using eslint.config.mjs) - Remove VE_MIGRATION_STATUS.md (completed migration tracking) - Remove open_issues_last_1_year.json (6MB GitHub export file) - Update vitest.config.mts to remove webpack.config.js exclusion * feat: enhance timeline components with improved UI controls and nested timeline rendering - Add text overlay minimize/maximize controls with professional icons - Implement card-based nested timeline rendering with center connecting line - Remove timeline points from nested timelines for cleaner visual design - Fix timeline point visibility and positioning across all modes - Improve button styling with consistent hover/active states throughout - Enhance mobile responsiveness for timeline controls and cards - Add comprehensive test coverage for timeline point visibility controls * fix: implement proper responsive breakpoint behavior for vertical alternating mode - Replace hardcoded isMobile detection based on mode with context-based responsive detection - VERTICAL_ALTERNATING mode now respects enableBreakPoint and responsiveBreakPoint props - Timeline automatically switches from alternating to stacked layout below breakpoint threshold - Maintains backward compatibility while enabling proper mobile-responsive behavior - Fixes previously ignored responsive breakpoint configuration (default: 1024px) * refactor: replace conditional prop spreading with pickDefined utility - Replace verbose `{...(condition ? { prop: value } : {})}` pattern with clean `{...pickDefined({ prop: value })}` utility - Add propUtils.ts with reusable prop handling utilities - Apply consistent pattern across 11+ component files - Remove unused text maximize/minimize icons, replace with plus/minus - Add dark mode theme class application - Memoize styles in nested timeline components for performance - Maintain TypeScript strict mode compatibility * - Replace verbose `{...(condition ? { prop: value } : {})}` pattern with clean `{...pickDefined({ prop: value })}` utility * feat: enhance horizontal timeline with smaller points and improved structure - Reduce timeline point size from 2rem to 1.5rem for better visual balance - Add memoized timeline point props similar to vertical timeline implementation - Improve timeline card structure with cleaner section organization - Fix visibility logic for horizontal_all mode to properly show all cards - Apply consistent code formatting across all components - Update test snapshots to reflect structural changes * - Improve font color handling in both normal and text overlay modes - Add proper dark mode support with computeCssVarsFromTheme integration - Fix content header to pass color props to TitleMemo and SubTitleMemo - Update text-or-content component with CSS variable fallbacks - Enhance text overlay ContentDisplay with proper color theming - Apply theme CSS variables to timeline card wrapper and points - Fix timeline card content wrapper missing dark mode support - Update details-text component to use CSS variables for backgrounds - Improve read more logic to be context-aware and robust - Use pickDefined utility for proper TypeScript optional props handling - Fix failing test to match new CSS variable implementation - Ensure proper contrast and readability across all timeline modes * fix: improve popover positioning and menu item UX - Add smart horizontal positioning to keep popovers within timeline container bounds - Implement dynamic position calculation (left/right/center) based on available space - Reduce menu item text sizes for better visual hierarchy - Enhance hover effects with subtle animations and improved spacing * refactor: modernize icon components and migrate styles to vanilla-extract - Add React imports and proper TypeScript typing to all icon components - Replace styled-components with vanilla-extract CSS modules - Improve search controls with consistent button styling - Fix timeline fullscreen mode theme support - Update demo app styles from styled-components to vanilla-extract - Enhance dynamic item loading behavior to focus on new items - Standardize icon component naming and test IDs * fix: resolve slideshow and keyboard navigation issues with comprehensive improvements - Fix double increment bug in slideshow progression causing skipped items - Resolve circular useEffect loop in main component state synchronization - Unify keyboard and slideshow navigation pathways for consistency - Add error boundary for crash prevention and better UX - Add performance optimizations with throttled scroll handlers - Add prop validation and memoized icon components - Extract slideItemDuration prop and fix timer initialization - Improve TypeScript types and remove any usage where possible * fix: resolve slideshow media deadlock and standardize icon dimensions - Fix slideshow getting stuck on video elements by resuming when video pauses/ends - Prevent slideshow from auto-starting on component render - Standardize icon sizing across components (16px toolbar, 20px buttons, 24px controls) - Add IconWrapper component and base styles for consistent icon rendering - Update MediaState interface to include 'ended' property for video completion - Remove inconsistent Feather CSS classes in favor of standardized inline styles 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> * feat: enhance accessibility and fix navigation issues - Add proper ARIA labels and roles to timeline components - Fix keyboard navigation at first/last cards with improved focus management - Reduce scroll duration from 1200ms to 600ms for better responsiveness - Fix inverted textDensity mapping (compactText now correctly maps to LOW) - Add titles to popover buttons for better accessibility - Fix custom icon z-index to prevent timeline overlap - Disable default icon bounce animations in toolbar - Fix navigation using items.length instead of itemsMap.size - Add comprehensive accessibility documentation to README - Update keyboard navigation docs with Home/End key support * feat: add light and dark theme implementations with extensive design tokens - Introduced `themes.css.ts` for defining light and dark themes using Vanilla Extract. - Added comprehensive design tokens for colors, spacing, typography, shadows, and more. - Created TypeScript definitions in `types.ts` for design system components and tokens. - Configured TypeScript build settings in `tsconfig.build.json` for type declaration generation. - Updated main `tsconfig.json` to support new paths and improved type declarations. - Enhanced Vite configuration to include visualizer for production builds and improved minification settings. * feat: implement sticky toolbar functionality across timeline components * chore: update Node.js version to 22.x and pnpm version to 10.15.1 across workflows; improve caching strategy * feat: add stylelint configuration and implement sticky toolbar feature in timeline components * feat: Add Google Fonts integration with FontProvider and utility functions - Implemented FontProvider component for loading and applying Google Fonts. - Created google-fonts utility module for managing font configurations and loading. - Added index file for exporting font utilities and components. - Updated timeline components to utilize new font features. - Enhanced button styles in fullscreen and timeline controls for better UX. - Refactored ContentDisplay component to use CSS classes for styling. - Improved timeline scrolling behavior by disabling auto-navigation during keyboard navigation. - Added responsive font size adjustments and utility styles for typography. - Updated theme popover z-index for better layering. - Introduced TypeScript configuration for development environment. - Enhanced Vite configuration for improved development experience. * feat: Integrate Google Fonts support across components and update typography styles * Refactor theme styles and improve code formatting - Updated spacing, font sizes, and border radius definitions in light and dark themes for consistency. - Enhanced semantic color definitions for better readability. - Improved formatting of the code for better clarity and maintainability. - Refactored prop migration utility functions for better readability and structure. - Updated validation functions to improve error messaging and code clarity. - Cleaned up throttle and debounce utility functions for consistency in formatting. * refactor: update timeline test locators and improve assertions for better clarity and accuracy * fix: adjust performance test timeouts and improve compatibility for Firefox * feat: Add customizable toolbar search configuration and position - Introduced `toolbarSearchConfig` to allow customization of search input dimensions in the timeline toolbar. - Added support for `toolbarPosition` to specify the toolbar's placement (top or bottom). - Enhanced the `GlobalContext` and `TimelineContextProvider` to handle new toolbar configurations. - Updated CSS styles for responsive search input handling. - Modified demo components to showcase the new toolbar search features. - Ensured backward compatibility with existing configurations. * refactor: Improve list item layout and styles for better responsiveness and clarity * Add comprehensive tests for timeline props and related test data - Created a new test file for timeline props with various display, navigation, slideshow, theme, content, media, scrollable, responsive, and toolbar props tests. - Added test data for timeline items and props to facilitate testing. - Introduced a script to run tests in different modes and browsers. * feat: Complete demo site redesign with modern UX and full-width layout - Add comprehensive demo site redesign with modern header, footer, and navigation - Implement Tailwind CSS v3 with proper PostCSS configuration - Create responsive sidebar navigation with categorized demo sections - Add HeroSection with gradient background and feature highlights - Fix full-width layout issues by removing conflicting CSS constraints - Integrate Google Fonts (Inter and Plus Jakarta Sans) for better typography - Resolve router navigation issues by removing conditional rendering - Ensure cross-browser compatibility with proper CSS prefixes - Update all demo pages to use consistent DemoPageLayout wrapper - Add proper responsive design for mobile and desktop experiences * feat: Enhance toolbar search configuration and update documentation * feat: Implement internationalization support for timeline component - Added comprehensive internationalization configuration to support multiple languages and text customization. - Introduced `i18n` prop in timeline components for managing user-facing text. - Created a new `useI18n` hook for handling text retrieval and interpolation. - Developed a text resolver utility to manage legacy and new text formats seamlessly. - Updated documentation to include internationalization guidelines and examples. - Enhanced demo components to showcase internationalization features. * feat: Expand internationalization support with new configuration options - Added `i18n` and `darkMode` properties to the props reference for enhanced configuration. - Introduced detailed interfaces for `I18nConfig` and `DarkModeConfig` to support multi-language and dark mode features. - Updated documentation to reflect new internationalization capabilities and examples. - Implemented tests to ensure proper integration of i18n features and fallback mechanisms. * fix: Adjust styles for timeline and popover components for better layout and alignmen * feat: Add Playwright testing workflow and ESLint rule for unused variables - Introduced a new Playwright testing workflow to automate browser testing on push and pull request events. - Added ESLint rule for `no-unused-vars` to enforce cleaner code practices. - Updated various components and styles for improved layout and responsiveness. - Refactored prop types to enhance clarity and maintainability across components. * upgrade packages * upgraded tailwind from 3 to 4 * feat(PopOver): update portal container for fullscreen support - Added logic to dynamically set the portal container to the current fullscreen element or fallback to document body. - Implemented event listeners for fullscreen change events to update the portal container accordingly. fix(timeline-card-media): update snapshot with border style - Added border style to video element in timeline card media snapshot. fix(timeline-horizontal-card): update snapshot with corrected styles - Removed redundant styles and ensured consistency in timeline horizontal card snapshot. * refactor: remove computeCssVarsFromTheme usage and related CSS variable logic - Eliminated computeCssVarsFromTheme function calls in timeline components to streamline theme handling. - Removed unused CSS variable styles from timeline-related CSS files. - Updated theme handling logic to only compute CSS variables for custom themes. - Switched minification strategy in Vite config from Terser to ESBuild for production builds. * chore: remove rollup configuration and add integration tests for build output and demo app - Deleted rollup.config.mjs as part of the build process refactor. - Added integration tests to validate build output, including ESM and CJS bundles, TypeScript definitions, and CSS assets. - Created a demo app for end-to-end testing of the built package, including TypeScript checks and successful builds. - Added necessary files for the demo app, including HTML, TypeScript, and Vite configuration. * Update Vite configuration for demo app and main project - Changed server port to 5555 in demo app's vite.config.ts to match Playwright config and added strictPort option to fail if the port is already in use. - Updated optimizeDeps in demo app's vite.config.ts to exclude 'react-chrono' from pre-bundling. - Modified rollupOptions in main project's vite.config.mts to include additional conditions for external dependencies, allowing for scoped packages of 'react', 'react-dom', and 'styled-components'. * feat: remeasure card size on textDensity changes for improved layout * feat: add borderless variant to timeline card and improve title responsiveness * refactor: update popover positioning logic and enhance timeline card styles * Update snapshots for timeline components and adjust Vitest configuration - Updated snapshot files for timeline card content, horizontal card, item title, and vertical item to reflect changes in class names and structure. - Added title attributes to timeline item title components for better accessibility. - Modified Vitest configuration to exclude specific integration tests that require a build/setup, ensuring a cleaner test run. * refactor: improve list and popover styles for better layout and responsiveness * updated packages fixed integration tests * feat: add v3.0 blog post, enhance integration tests for Vanilla Extract CSS - Create comprehensive v3.0 blog post (BLOG_V3.md) documenting all new features - Add DarkModeConfig interface in TimelineConfig.ts for better type organization - Update integration tests to validate Vanilla Extract CSS bundling and application - Add CSS verification tests checking for design tokens and hash-based class names - Configure static CSS filename (style.css) for consistent imports - Add CSS export to package.json for proper module resolution - Update demo app to explicitly import Vanilla Extract styles - Enhance integration test documentation with Vanilla Extract specifics * upgraded all packages * fix kitchen sink page layout * removed unused modules * chore: remove unused dependencies and cleanup build config - Remove styled-components and related packages (fully migrated to Vanilla Extract) - Remove Husky, lint-staged, and git hook automation - Remove unused dev dependencies (c8, intersection-observer, semver, etc.) - Update package size limits (110KB -> 250KB) - Clean up stylelint and build configurations - Remove console.log debug statements from production code - Add ESLint rule for unused vars with underscore ignore pattern * removing references to playwright as we will bring it back in the next minor release * updated the readme to make some sections terser * minor updates to the readme (removed the use case section) * removed deepscan badge as we are not using it anymore * updated readme and made the why section a little terser * add blank line for improved readability in README * Update README.md --------- Co-authored-by: githubprojectsprabhu <githubprojectsprabhu@gmail.com> Co-authored-by: Claude <noreply@anthropic.com> | 1 year ago | |
React Chrono v3.0 (#554) * refactor: enhance React hooks performance and modularity - Optimize 14 hooks with performance improvements (memoization, RAF throttling, stable callbacks) - Split large useTimelineNavigation into focused, composable hooks - Add comprehensive shared utilities for common hook patterns - Enhance useBackground with multi-format color support - Extend useEscapeKey to support multiple keys and modifiers - Generalize useMeasureHeight to measure any DOM property - Add device detection and viewport info to useWindowSize - Maintain backward compatibility throughout all changes - Fix all test failures and add comprehensive test coverage * refactor: improve toolbar UX with flex-wrap layout and enhanced styling • Fix toolbar overflow by implementing logical control grouping (NavigationGroup, SearchGroup, ActionGroup) • Enhance button sizes and spacing - navigation buttons 28px → 36px, improved touch targets • Add proper flex-wrap behavior to prevent cutoff, controls wrap to next line intelligently • Improve accessibility with keyboard navigation, focus states, and ARIA labels • Fix search input colors for dark mode, remove unwanted hover backgrounds • Update popover buttons to match navigation button dimensions and styling • Add responsive design improvements with better mobile layout * fix: improve search focus and dark mode text colors - Fix search input losing focus while typing by preventing aggressive refocus - Add smart auto-focus with 100ms delay for first search, 400ms for subsequent - Enhance dark mode text colors with proper theme detection fallbacks - Add blur prevention to maintain search focus during timeline navigation - Improve placeholder and autofill colors for better contrast in both themes * updated configs for eslint, tsconfig, prettier major ux fixes and bug fixes * recreted pnpm.lock * fixed test cases * feat: add fullscreen functionality with consistent button sizing and UX improvements - Add fullscreen button component with proper theming and accessibility - Implement cross-browser fullscreen hook with comprehensive API support - Integrate fullscreen control into timeline toolbar - Fix button dimensions to match standard 36px toolbar buttons - Enhance search focus behavior and text color contrast in dark mode - Improve card content layout with better read-more functionality - Update popover styling and remove unnecessary margins - Add comprehensive test coverage for fullscreen components * feat: improve slideshow UX with proper card scrolling and link-style read more - Add vertical timeline scrolling during slideshow to keep cards visible - Centralize slideshow scroll logic in timeline.tsx for consistency - Convert read more button to link appearance (underlined text) - Remove button-style background, borders and shadows from read more - Fix slideshow card focus issues across all timeline modes * feat: migrate from Cypress to Playwright for E2E testing - Replace Cypress with Playwright for improved cross-browser support - Add comprehensive test configurations for E2E and component testing - Implement advanced Playwright features (trace viewer, parallel execution) - Support WebKit browsers and mobile device emulation - Add GitHub Actions workflow with matrix builds and sharding - Update .gitignore to exclude Playwright test artifacts - Remove Cypress dependency and replace test scripts - Add TypeScript fixtures and helpers for test reusability * feat: add comprehensive E2E test coverage for all timeline features - Add timeline-accessibility.spec.ts: keyboard navigation, ARIA attributes, screen reader support, focus management, color contrast, and motion accessibility - Add timeline-advanced-features.spec.ts: slideshow functionality, fullscreen controls, quick jump navigation, dark mode toggle, dynamic theme switching, responsive breakpoints, custom content, and dynamic loading - Add timeline-cardless-nested.spec.ts: cardless timeline modes, nested timeline structures, alternating nested layouts, and complex interaction handling - Add timeline-media.spec.ts: media-rich timelines, image/video content, YouTube integration, media loading states, error handling, and media settings configuration - Add timeline-navigation-controls.spec.ts: navigation buttons, timeline item selection, toolbar controls, scroll-based navigation, touch/mobile interactions, search filtering, and position navigation - Add timeline-performance.spec.ts: load performance testing, interaction responsiveness, memory usage monitoring, media loading optimization, animation performance, resource loading, stress testing, and performance monitoring - Add timeline-theme-responsive.spec.ts: theme switching, dynamic theme configuration, dark mode support, responsive design across viewports, breakpoint behavior, high DPI support, print media, and color scheme preferences - Enhance timeline-horizontal.spec.ts: add media content testing, slideshow functionality, and theme toggle support Covers all timeline modes (horizontal, vertical, alternating), advanced features, accessibility compliance, performance optimization, and responsive behavior across 3050+ lines of comprehensive test coverage. * - Add comprehensive theme validation tests with edge case coverage │ │ - Test theme property validation, merging, consistency, and performance │ │ - Add fullscreen control component tests with proper mocking │ │ - Create comprehensive toolbar interaction and accessibility tests │ │ - Fix styled-components prop filtering with transient props │ │ - Enhance hex color validation to support 3-character formats │ │ - Update theme utility tests with proper size assertions │ │ - Improve test reliability and maintainability * - Add new Technology Evolution Timeline showcasing 53+ years of tech history - Implement complete dark mode theme with blue, amber, white color scheme - Add all 15+ dark mode properties for comprehensive theme customization - Update README with enhanced documentation: - Add fullscreen functionality section with cross-browser support details - Expand development commands with comprehensive pnpm script documentation - Update testing framework section with Playwright E2E and component testing - Enhance features list with search, fullscreen, and accessibility improvements - Integrate new demo into navigation with featured highlighting - Create adaptive theme that works seamlessly in both light and dark modes - Include proper dark mode props (darkMode, enableDarkToggle, onThemeChange) * fix(tests): resolve Playwright test failures and optimize browser configuration - Fix CSS selector mismatches in timeline tests by updating selectors to match actual DOM structure - Replace .rc-card-title with [data-class=""] or direct element searches - Replace .rc-card-subtitle with .card-sub-title - Replace .rc-card-text with .card-description - Remove unnecessary .timeline-card-content wrapper selectors - Optimize Playwright configuration for better performance: - Reduce browser matrix from 7 to 1 (chromium only for now, others commented) - Improve parallelization: 50% CPU cores locally, 2 workers on CI - Reduce total test executions from ~1,085 to ~155 - Add split context architecture for performance optimization: - Create separate contexts for Navigation, Theme, Media, and Layout - Add MigrationContextProvider for backward compatibility - Update components to use split contexts while maintaining legacy support - Add useFocusManager hook for improved focus handling - Update test utilities: - Enhance customRender with TestWrapper integration - Add efficient comparison utilities for props - Fix timeline-card-content test setup * trigger deploy * fixed the lock file * removing cypress as we are moving over to playwright * regen lock file * fix pnpm versions on workflows * fix pnpm workflow * fix lock version * Update pnpm lockfile version and streamline Playwright workflow - Downgrade lockfileVersion from '10.0' to '9.0' for compatibility. - Modify Playwright workflow to remove frozen lockfile option during dependency installation for improved flexibility. - Update context providers to unify timeline context management, enhancing performance and maintainability. - Introduce debug logging in timeline component for better visibility during updates. * Refactor timeline components to unify context management and enhance visibility - Replace GlobalContext with useTimelineContext in multiple components for improved context management. - Update visibility logic in Chrono component for better handling of timeline item visibility based on mode. - Adjust styles in timeline components to support new layout requirements and improve responsiveness. - Enhance timeline card functionality with focus management for active items. - Update tests to reflect changes in component structure and context usage. * Update Playwright workflow to remove Firefox from browser matrix - Modify Playwright workflow to streamline browser testing by removing Firefox from the matrix, retaining only Chromium and WebKit. - This change aims to simplify the testing process and focus on the most relevant browsers for the project. * Enhance timeline navigation and scrolling experience - Refactor timeline component navigation to improve focus management and predictive centering during item transitions. - Update scrolling behavior with smoother animations and improved easing functions for both horizontal and vertical modes. - Introduce state tracking for keyboard and toolbar navigation to enhance accessibility. - Adjust styles for better focus visibility and user experience during timeline interactions. - Sync active item index with external updates for consistent navigation behavior. * Enhance focus management and accessibility in timeline components - Refactor timeline navigation to improve keyboard and toolbar navigation states. - Update focus styles to show outlines only during keyboard navigation, enhancing accessibility. - Streamline focus handling in timeline points and card content for better user experience. - Adjust scrolling behavior to ensure elements are focused correctly during navigation. - Improve code readability by consolidating focus-related logic and removing unnecessary comments. * Refactor timeline components for improved visibility and focus management - Simplify visibility logic in the Chrono component to ensure all items are always visible in horizontal modes. - Enhance focus management in horizontal timeline components to ensure active items are correctly focused during navigation. - Update context synchronization for showAllCardsHorizontal to improve responsiveness to mode changes. - Adjust styles to ensure timeline points are always visible and highlight active cards in horizontal_all mode. - Streamline code for better readability and maintainability across timeline components. * Refactor context management and update dependencies for timeline components - Replace legacy GlobalContext with TimelineContextProvider to streamline context usage across components. - Remove deprecated DynamicContext and related hooks to simplify context structure. - Update package dependencies in package.json for improved compatibility and performance. - Enhance focus management in timeline navigation hooks to ensure better accessibility during item transitions. - Clean up unused context files and improve overall code organization for maintainability. * Refactor timeline components for improved focus management and accessibility - Update focus handling in the Timeline component to prioritize card containers in horizontal modes. - Enhance styling for horizontal timeline cards to support new class variations. - Adjust navigation hooks to streamline focus management and ensure better accessibility during item transitions. - Introduce unique IDs for timeline items to improve element targeting during navigation. * Add configuration files and enhance project structure for improved development experience - Introduce .editorconfig, .eslintrc.cjs, .npmignore, and .npmrc for consistent coding standards and dependency management. - Create migration guide (MIGRATION.md) to outline changes for library modernization. - Update package.json scripts for better build and development processes, including new commands for Ladle and site preview. - Refactor TypeScript configuration (tsconfig.json) for stricter type checking and improved module resolution. - Set up CI workflows for automated testing, release, and size limit checks. - Add Ladle configuration for component previews and enhance timeline component tests for better accessibility. - Update Vite configuration to support library mode and improve build outputs. * Update CI and release workflows to use Node.js version 22 and remove deprecated publish step * Implement migration to vanilla-extract for styling and enhance ESLint configuration - Migrate styled-components to vanilla-extract across various components for improved performance and maintainability. - Introduce a new ESLint rule to restrict the use of styled-components, encouraging the use of vanilla-extract instead. - Update package.json to include new dependencies and adjust build configurations. - Add a migration status document to track progress on the transition to vanilla-extract. - Refactor multiple components to utilize the new CSS modules, ensuring consistent styling and improved accessibility. * Refactor timeline components and styles for improved maintainability and accessibility - Update CSS styles to utilize centralized variables for colors and z-index values across timeline components. - Enhance the Timeline component to accept a customizable height, improving layout flexibility. - Refactor TimelineView props to enforce required fields and streamline default values. - Adjust various components to ensure consistent styling and accessibility improvements. - Update snapshot tests to reflect changes in component structure and styling. * Enhance timeline component styles and functionality - Introduce a customizable height property for the Timeline component, allowing for flexible layouts. - Update styling logic to conditionally apply flex properties based on the provided height. - Remove unnecessary icon rotation in non-horizontal modes for a more consistent user experience. - Adjust snapshot tests to reflect changes in button class names and ensure accurate rendering. * Enhance timeline components with improved styling and focus management - Add custom scrollbar color to align with theme primary color for better visual consistency. - Allow dynamic alignment for timeline card titles based on props for improved layout flexibility. - Implement focus checks in navigation hooks to prevent actions when the component is not focused, enhancing accessibility and user experience. * feat(toolbar): flip to Vanilla Extract by default and remove styled-components usage; adjust sprinkles container props and fix popover recipe arg; add optional className props to ContentFooter * chore(toolbar): remove styled-components toolbar.styles.ts after VE flip * refactor(timeline): enhance styling and accessibility features - Update timeline component styles for improved visual consistency and user experience. - Adjust flex properties and heights for better layout flexibility in vertical and horizontal modes. - Implement focus management enhancements to ensure accessibility during item interactions. - Introduce a new MeasuredItem component for dynamic height measurement in vertical timelines. - Normalize toolbar button styles for a cohesive design across the application. * feat(timeline): enhance timeline UX with sticky toolbar, continuous line, and improved theming - Make timeline toolbar sticky using position: sticky instead of absolute/fixed - Fix broken timeline line by implementing continuous line with gradient effects - Improve date positioning in vertical alternating mode with proper padding - Enhance dark theme propagation across all Vanilla Extract components - Add comprehensive CSS custom properties for consistent theming - Update theme-bridge to automatically detect and handle dark mode - Ensure timeline points appear above continuous line with proper z-index - Add scroll container adjustments for sticky toolbar compatibility - Maintain all existing functionality while improving visual design * feat: enhance text overlay with minimize/maximize controls and fix alternating layout - Add minimize/maximize functionality for text overlay mode with smooth transitions - Improve text overlay positioning with better styling (backdrop blur, shadows, borders) - Fix vertical alternating mode layout by removing incorrect height: 0 for text overlay - Add isDarkMode support throughout timeline components for proper theming - Enhance visual styling with hover effects and improved readability * fix(types): resolve TypeScript strict mode errors across components - Add null safety checks and default values for optional props - Fix undefined/null handling in context providers and hooks - Update component prop types to handle strict mode requirements - Standardize callback prop handling with fallback functions - Fix type assertions and remove unsafe any types * refactor(config): update vanilla-extract plugin identifiers for environment-specific behavior - Modify vanilla-extract plugin configurations in Playwright, Vite, and Vitest to use environment-specific identifiers for better debugging and production builds. - Enhance CSS styles in popover and timeline components to utilize global styles and improve responsiveness. - Refactor toolbar styles to streamline child alignment and layout adjustments, ensuring consistent design across different screen sizes. * feat: complete migration from styled-components to vanilla-extract BREAKING: Remove styled-components dependency entirely - Replace all styled-components with vanilla-extract CSS-in-JS - Migrate timeline-point component from styled components to VE classes - Convert video component to use vanilla-extract styles - Deprecate all legacy .styles.ts files with migration notes - Update test files to remove ThemeProvider dependencies - Add minimize/maximize functionality to toolbar components - Preserve all existing functionality and theming capabilities Performance improvements: - Eliminate styled-components runtime overhead - Better CSS optimization through static extraction - Reduced bundle size with more efficient styling system Technical changes: - Replace styled-component imports with vanilla-extract classes - Update JSX to use className with VE recipes and styles - Maintain theme integration through CSS custom properties - Preserve all hover states, accessibility, and animations - Keep backward compatibility for all public APIs Testing: - All 395 tests pass with no regressions - Build succeeds without styled-components dependencies - Code quality maintained (ESLint, Prettier clean) * fix: resolve nested timeline rendering and icon positioning issues - Fix nested timeline visibility by enhancing wrapper styles - Add proper flex centering for timeline point icons - Improve icon sizing and positioning in timeline shapes - Fix CSS syntax error in visibility overrides - Ensure nested timeline items display correctly with proper spacing - Add icon-specific styles for images and SVGs - Counter-rotate icons inside diamond shapes for proper orientation * refactor: remove unused style files post vanilla-extract migration - Remove all .styles.ts and .styles.tsx files (replaced by .css.ts) - Remove legacy CSS files (*-legacy.css.ts) - Remove backup files (.bak, .backup) - Clean up 1806 lines of obsolete styling code * refactor: remove unused styles and consolidate CSS architecture - Remove 10 completely unused CSS files (3,055 lines) - Clean up 88 unused exports from timeline.css.ts - Consolidate toolbar styles into single file - Remove legacy .styles.ts files from elements/ - Improve styling architecture maintainability Files removed: - timeline-advanced.css.ts (476 lines) - timeline-main.css.ts (354 lines) - timeline-system-v2.css.ts (560 lines) - timeline-toolbar-ve.css.ts (404 lines) - toolbar-legacy.css.ts (283 lines) - toolbar-system-v2.css.ts (536 lines) - toolbar-system.css.ts (443 lines) - Plus 3 small .styles.ts files * chore: remove unused configuration files and documentation - Remove webpack.config.js (replaced by Vite for builds) - Remove .eslintrc.cjs (empty, using eslint.config.mjs) - Remove VE_MIGRATION_STATUS.md (completed migration tracking) - Remove open_issues_last_1_year.json (6MB GitHub export file) - Update vitest.config.mts to remove webpack.config.js exclusion * feat: enhance timeline components with improved UI controls and nested timeline rendering - Add text overlay minimize/maximize controls with professional icons - Implement card-based nested timeline rendering with center connecting line - Remove timeline points from nested timelines for cleaner visual design - Fix timeline point visibility and positioning across all modes - Improve button styling with consistent hover/active states throughout - Enhance mobile responsiveness for timeline controls and cards - Add comprehensive test coverage for timeline point visibility controls * fix: implement proper responsive breakpoint behavior for vertical alternating mode - Replace hardcoded isMobile detection based on mode with context-based responsive detection - VERTICAL_ALTERNATING mode now respects enableBreakPoint and responsiveBreakPoint props - Timeline automatically switches from alternating to stacked layout below breakpoint threshold - Maintains backward compatibility while enabling proper mobile-responsive behavior - Fixes previously ignored responsive breakpoint configuration (default: 1024px) * refactor: replace conditional prop spreading with pickDefined utility - Replace verbose `{...(condition ? { prop: value } : {})}` pattern with clean `{...pickDefined({ prop: value })}` utility - Add propUtils.ts with reusable prop handling utilities - Apply consistent pattern across 11+ component files - Remove unused text maximize/minimize icons, replace with plus/minus - Add dark mode theme class application - Memoize styles in nested timeline components for performance - Maintain TypeScript strict mode compatibility * - Replace verbose `{...(condition ? { prop: value } : {})}` pattern with clean `{...pickDefined({ prop: value })}` utility * feat: enhance horizontal timeline with smaller points and improved structure - Reduce timeline point size from 2rem to 1.5rem for better visual balance - Add memoized timeline point props similar to vertical timeline implementation - Improve timeline card structure with cleaner section organization - Fix visibility logic for horizontal_all mode to properly show all cards - Apply consistent code formatting across all components - Update test snapshots to reflect structural changes * - Improve font color handling in both normal and text overlay modes - Add proper dark mode support with computeCssVarsFromTheme integration - Fix content header to pass color props to TitleMemo and SubTitleMemo - Update text-or-content component with CSS variable fallbacks - Enhance text overlay ContentDisplay with proper color theming - Apply theme CSS variables to timeline card wrapper and points - Fix timeline card content wrapper missing dark mode support - Update details-text component to use CSS variables for backgrounds - Improve read more logic to be context-aware and robust - Use pickDefined utility for proper TypeScript optional props handling - Fix failing test to match new CSS variable implementation - Ensure proper contrast and readability across all timeline modes * fix: improve popover positioning and menu item UX - Add smart horizontal positioning to keep popovers within timeline container bounds - Implement dynamic position calculation (left/right/center) based on available space - Reduce menu item text sizes for better visual hierarchy - Enhance hover effects with subtle animations and improved spacing * refactor: modernize icon components and migrate styles to vanilla-extract - Add React imports and proper TypeScript typing to all icon components - Replace styled-components with vanilla-extract CSS modules - Improve search controls with consistent button styling - Fix timeline fullscreen mode theme support - Update demo app styles from styled-components to vanilla-extract - Enhance dynamic item loading behavior to focus on new items - Standardize icon component naming and test IDs * fix: resolve slideshow and keyboard navigation issues with comprehensive improvements - Fix double increment bug in slideshow progression causing skipped items - Resolve circular useEffect loop in main component state synchronization - Unify keyboard and slideshow navigation pathways for consistency - Add error boundary for crash prevention and better UX - Add performance optimizations with throttled scroll handlers - Add prop validation and memoized icon components - Extract slideItemDuration prop and fix timer initialization - Improve TypeScript types and remove any usage where possible * fix: resolve slideshow media deadlock and standardize icon dimensions - Fix slideshow getting stuck on video elements by resuming when video pauses/ends - Prevent slideshow from auto-starting on component render - Standardize icon sizing across components (16px toolbar, 20px buttons, 24px controls) - Add IconWrapper component and base styles for consistent icon rendering - Update MediaState interface to include 'ended' property for video completion - Remove inconsistent Feather CSS classes in favor of standardized inline styles 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> * feat: enhance accessibility and fix navigation issues - Add proper ARIA labels and roles to timeline components - Fix keyboard navigation at first/last cards with improved focus management - Reduce scroll duration from 1200ms to 600ms for better responsiveness - Fix inverted textDensity mapping (compactText now correctly maps to LOW) - Add titles to popover buttons for better accessibility - Fix custom icon z-index to prevent timeline overlap - Disable default icon bounce animations in toolbar - Fix navigation using items.length instead of itemsMap.size - Add comprehensive accessibility documentation to README - Update keyboard navigation docs with Home/End key support * feat: add light and dark theme implementations with extensive design tokens - Introduced `themes.css.ts` for defining light and dark themes using Vanilla Extract. - Added comprehensive design tokens for colors, spacing, typography, shadows, and more. - Created TypeScript definitions in `types.ts` for design system components and tokens. - Configured TypeScript build settings in `tsconfig.build.json` for type declaration generation. - Updated main `tsconfig.json` to support new paths and improved type declarations. - Enhanced Vite configuration to include visualizer for production builds and improved minification settings. * feat: implement sticky toolbar functionality across timeline components * chore: update Node.js version to 22.x and pnpm version to 10.15.1 across workflows; improve caching strategy * feat: add stylelint configuration and implement sticky toolbar feature in timeline components * feat: Add Google Fonts integration with FontProvider and utility functions - Implemented FontProvider component for loading and applying Google Fonts. - Created google-fonts utility module for managing font configurations and loading. - Added index file for exporting font utilities and components. - Updated timeline components to utilize new font features. - Enhanced button styles in fullscreen and timeline controls for better UX. - Refactored ContentDisplay component to use CSS classes for styling. - Improved timeline scrolling behavior by disabling auto-navigation during keyboard navigation. - Added responsive font size adjustments and utility styles for typography. - Updated theme popover z-index for better layering. - Introduced TypeScript configuration for development environment. - Enhanced Vite configuration for improved development experience. * feat: Integrate Google Fonts support across components and update typography styles * Refactor theme styles and improve code formatting - Updated spacing, font sizes, and border radius definitions in light and dark themes for consistency. - Enhanced semantic color definitions for better readability. - Improved formatting of the code for better clarity and maintainability. - Refactored prop migration utility functions for better readability and structure. - Updated validation functions to improve error messaging and code clarity. - Cleaned up throttle and debounce utility functions for consistency in formatting. * refactor: update timeline test locators and improve assertions for better clarity and accuracy * fix: adjust performance test timeouts and improve compatibility for Firefox * feat: Add customizable toolbar search configuration and position - Introduced `toolbarSearchConfig` to allow customization of search input dimensions in the timeline toolbar. - Added support for `toolbarPosition` to specify the toolbar's placement (top or bottom). - Enhanced the `GlobalContext` and `TimelineContextProvider` to handle new toolbar configurations. - Updated CSS styles for responsive search input handling. - Modified demo components to showcase the new toolbar search features. - Ensured backward compatibility with existing configurations. * refactor: Improve list item layout and styles for better responsiveness and clarity * Add comprehensive tests for timeline props and related test data - Created a new test file for timeline props with various display, navigation, slideshow, theme, content, media, scrollable, responsive, and toolbar props tests. - Added test data for timeline items and props to facilitate testing. - Introduced a script to run tests in different modes and browsers. * feat: Complete demo site redesign with modern UX and full-width layout - Add comprehensive demo site redesign with modern header, footer, and navigation - Implement Tailwind CSS v3 with proper PostCSS configuration - Create responsive sidebar navigation with categorized demo sections - Add HeroSection with gradient background and feature highlights - Fix full-width layout issues by removing conflicting CSS constraints - Integrate Google Fonts (Inter and Plus Jakarta Sans) for better typography - Resolve router navigation issues by removing conditional rendering - Ensure cross-browser compatibility with proper CSS prefixes - Update all demo pages to use consistent DemoPageLayout wrapper - Add proper responsive design for mobile and desktop experiences * feat: Enhance toolbar search configuration and update documentation * feat: Implement internationalization support for timeline component - Added comprehensive internationalization configuration to support multiple languages and text customization. - Introduced `i18n` prop in timeline components for managing user-facing text. - Created a new `useI18n` hook for handling text retrieval and interpolation. - Developed a text resolver utility to manage legacy and new text formats seamlessly. - Updated documentation to include internationalization guidelines and examples. - Enhanced demo components to showcase internationalization features. * feat: Expand internationalization support with new configuration options - Added `i18n` and `darkMode` properties to the props reference for enhanced configuration. - Introduced detailed interfaces for `I18nConfig` and `DarkModeConfig` to support multi-language and dark mode features. - Updated documentation to reflect new internationalization capabilities and examples. - Implemented tests to ensure proper integration of i18n features and fallback mechanisms. * fix: Adjust styles for timeline and popover components for better layout and alignmen * feat: Add Playwright testing workflow and ESLint rule for unused variables - Introduced a new Playwright testing workflow to automate browser testing on push and pull request events. - Added ESLint rule for `no-unused-vars` to enforce cleaner code practices. - Updated various components and styles for improved layout and responsiveness. - Refactored prop types to enhance clarity and maintainability across components. * upgrade packages * upgraded tailwind from 3 to 4 * feat(PopOver): update portal container for fullscreen support - Added logic to dynamically set the portal container to the current fullscreen element or fallback to document body. - Implemented event listeners for fullscreen change events to update the portal container accordingly. fix(timeline-card-media): update snapshot with border style - Added border style to video element in timeline card media snapshot. fix(timeline-horizontal-card): update snapshot with corrected styles - Removed redundant styles and ensured consistency in timeline horizontal card snapshot. * refactor: remove computeCssVarsFromTheme usage and related CSS variable logic - Eliminated computeCssVarsFromTheme function calls in timeline components to streamline theme handling. - Removed unused CSS variable styles from timeline-related CSS files. - Updated theme handling logic to only compute CSS variables for custom themes. - Switched minification strategy in Vite config from Terser to ESBuild for production builds. * chore: remove rollup configuration and add integration tests for build output and demo app - Deleted rollup.config.mjs as part of the build process refactor. - Added integration tests to validate build output, including ESM and CJS bundles, TypeScript definitions, and CSS assets. - Created a demo app for end-to-end testing of the built package, including TypeScript checks and successful builds. - Added necessary files for the demo app, including HTML, TypeScript, and Vite configuration. * Update Vite configuration for demo app and main project - Changed server port to 5555 in demo app's vite.config.ts to match Playwright config and added strictPort option to fail if the port is already in use. - Updated optimizeDeps in demo app's vite.config.ts to exclude 'react-chrono' from pre-bundling. - Modified rollupOptions in main project's vite.config.mts to include additional conditions for external dependencies, allowing for scoped packages of 'react', 'react-dom', and 'styled-components'. * feat: remeasure card size on textDensity changes for improved layout * feat: add borderless variant to timeline card and improve title responsiveness * refactor: update popover positioning logic and enhance timeline card styles * Update snapshots for timeline components and adjust Vitest configuration - Updated snapshot files for timeline card content, horizontal card, item title, and vertical item to reflect changes in class names and structure. - Added title attributes to timeline item title components for better accessibility. - Modified Vitest configuration to exclude specific integration tests that require a build/setup, ensuring a cleaner test run. * refactor: improve list and popover styles for better layout and responsiveness * updated packages fixed integration tests * feat: add v3.0 blog post, enhance integration tests for Vanilla Extract CSS - Create comprehensive v3.0 blog post (BLOG_V3.md) documenting all new features - Add DarkModeConfig interface in TimelineConfig.ts for better type organization - Update integration tests to validate Vanilla Extract CSS bundling and application - Add CSS verification tests checking for design tokens and hash-based class names - Configure static CSS filename (style.css) for consistent imports - Add CSS export to package.json for proper module resolution - Update demo app to explicitly import Vanilla Extract styles - Enhance integration test documentation with Vanilla Extract specifics * upgraded all packages * fix kitchen sink page layout * removed unused modules * chore: remove unused dependencies and cleanup build config - Remove styled-components and related packages (fully migrated to Vanilla Extract) - Remove Husky, lint-staged, and git hook automation - Remove unused dev dependencies (c8, intersection-observer, semver, etc.) - Update package size limits (110KB -> 250KB) - Clean up stylelint and build configurations - Remove console.log debug statements from production code - Add ESLint rule for unused vars with underscore ignore pattern * removing references to playwright as we will bring it back in the next minor release * updated the readme to make some sections terser * minor updates to the readme (removed the use case section) * removed deepscan badge as we are not using it anymore * updated readme and made the why section a little terser * add blank line for improved readability in README * Update README.md --------- Co-authored-by: githubprojectsprabhu <githubprojectsprabhu@gmail.com> Co-authored-by: Claude <noreply@anthropic.com> | 1 year ago | |
React Chrono v3.0 (#554) * refactor: enhance React hooks performance and modularity - Optimize 14 hooks with performance improvements (memoization, RAF throttling, stable callbacks) - Split large useTimelineNavigation into focused, composable hooks - Add comprehensive shared utilities for common hook patterns - Enhance useBackground with multi-format color support - Extend useEscapeKey to support multiple keys and modifiers - Generalize useMeasureHeight to measure any DOM property - Add device detection and viewport info to useWindowSize - Maintain backward compatibility throughout all changes - Fix all test failures and add comprehensive test coverage * refactor: improve toolbar UX with flex-wrap layout and enhanced styling • Fix toolbar overflow by implementing logical control grouping (NavigationGroup, SearchGroup, ActionGroup) • Enhance button sizes and spacing - navigation buttons 28px → 36px, improved touch targets • Add proper flex-wrap behavior to prevent cutoff, controls wrap to next line intelligently • Improve accessibility with keyboard navigation, focus states, and ARIA labels • Fix search input colors for dark mode, remove unwanted hover backgrounds • Update popover buttons to match navigation button dimensions and styling • Add responsive design improvements with better mobile layout * fix: improve search focus and dark mode text colors - Fix search input losing focus while typing by preventing aggressive refocus - Add smart auto-focus with 100ms delay for first search, 400ms for subsequent - Enhance dark mode text colors with proper theme detection fallbacks - Add blur prevention to maintain search focus during timeline navigation - Improve placeholder and autofill colors for better contrast in both themes * updated configs for eslint, tsconfig, prettier major ux fixes and bug fixes * recreted pnpm.lock * fixed test cases * feat: add fullscreen functionality with consistent button sizing and UX improvements - Add fullscreen button component with proper theming and accessibility - Implement cross-browser fullscreen hook with comprehensive API support - Integrate fullscreen control into timeline toolbar - Fix button dimensions to match standard 36px toolbar buttons - Enhance search focus behavior and text color contrast in dark mode - Improve card content layout with better read-more functionality - Update popover styling and remove unnecessary margins - Add comprehensive test coverage for fullscreen components * feat: improve slideshow UX with proper card scrolling and link-style read more - Add vertical timeline scrolling during slideshow to keep cards visible - Centralize slideshow scroll logic in timeline.tsx for consistency - Convert read more button to link appearance (underlined text) - Remove button-style background, borders and shadows from read more - Fix slideshow card focus issues across all timeline modes * feat: migrate from Cypress to Playwright for E2E testing - Replace Cypress with Playwright for improved cross-browser support - Add comprehensive test configurations for E2E and component testing - Implement advanced Playwright features (trace viewer, parallel execution) - Support WebKit browsers and mobile device emulation - Add GitHub Actions workflow with matrix builds and sharding - Update .gitignore to exclude Playwright test artifacts - Remove Cypress dependency and replace test scripts - Add TypeScript fixtures and helpers for test reusability * feat: add comprehensive E2E test coverage for all timeline features - Add timeline-accessibility.spec.ts: keyboard navigation, ARIA attributes, screen reader support, focus management, color contrast, and motion accessibility - Add timeline-advanced-features.spec.ts: slideshow functionality, fullscreen controls, quick jump navigation, dark mode toggle, dynamic theme switching, responsive breakpoints, custom content, and dynamic loading - Add timeline-cardless-nested.spec.ts: cardless timeline modes, nested timeline structures, alternating nested layouts, and complex interaction handling - Add timeline-media.spec.ts: media-rich timelines, image/video content, YouTube integration, media loading states, error handling, and media settings configuration - Add timeline-navigation-controls.spec.ts: navigation buttons, timeline item selection, toolbar controls, scroll-based navigation, touch/mobile interactions, search filtering, and position navigation - Add timeline-performance.spec.ts: load performance testing, interaction responsiveness, memory usage monitoring, media loading optimization, animation performance, resource loading, stress testing, and performance monitoring - Add timeline-theme-responsive.spec.ts: theme switching, dynamic theme configuration, dark mode support, responsive design across viewports, breakpoint behavior, high DPI support, print media, and color scheme preferences - Enhance timeline-horizontal.spec.ts: add media content testing, slideshow functionality, and theme toggle support Covers all timeline modes (horizontal, vertical, alternating), advanced features, accessibility compliance, performance optimization, and responsive behavior across 3050+ lines of comprehensive test coverage. * - Add comprehensive theme validation tests with edge case coverage │ │ - Test theme property validation, merging, consistency, and performance │ │ - Add fullscreen control component tests with proper mocking │ │ - Create comprehensive toolbar interaction and accessibility tests │ │ - Fix styled-components prop filtering with transient props │ │ - Enhance hex color validation to support 3-character formats │ │ - Update theme utility tests with proper size assertions │ │ - Improve test reliability and maintainability * - Add new Technology Evolution Timeline showcasing 53+ years of tech history - Implement complete dark mode theme with blue, amber, white color scheme - Add all 15+ dark mode properties for comprehensive theme customization - Update README with enhanced documentation: - Add fullscreen functionality section with cross-browser support details - Expand development commands with comprehensive pnpm script documentation - Update testing framework section with Playwright E2E and component testing - Enhance features list with search, fullscreen, and accessibility improvements - Integrate new demo into navigation with featured highlighting - Create adaptive theme that works seamlessly in both light and dark modes - Include proper dark mode props (darkMode, enableDarkToggle, onThemeChange) * fix(tests): resolve Playwright test failures and optimize browser configuration - Fix CSS selector mismatches in timeline tests by updating selectors to match actual DOM structure - Replace .rc-card-title with [data-class=""] or direct element searches - Replace .rc-card-subtitle with .card-sub-title - Replace .rc-card-text with .card-description - Remove unnecessary .timeline-card-content wrapper selectors - Optimize Playwright configuration for better performance: - Reduce browser matrix from 7 to 1 (chromium only for now, others commented) - Improve parallelization: 50% CPU cores locally, 2 workers on CI - Reduce total test executions from ~1,085 to ~155 - Add split context architecture for performance optimization: - Create separate contexts for Navigation, Theme, Media, and Layout - Add MigrationContextProvider for backward compatibility - Update components to use split contexts while maintaining legacy support - Add useFocusManager hook for improved focus handling - Update test utilities: - Enhance customRender with TestWrapper integration - Add efficient comparison utilities for props - Fix timeline-card-content test setup * trigger deploy * fixed the lock file * removing cypress as we are moving over to playwright * regen lock file * fix pnpm versions on workflows * fix pnpm workflow * fix lock version * Update pnpm lockfile version and streamline Playwright workflow - Downgrade lockfileVersion from '10.0' to '9.0' for compatibility. - Modify Playwright workflow to remove frozen lockfile option during dependency installation for improved flexibility. - Update context providers to unify timeline context management, enhancing performance and maintainability. - Introduce debug logging in timeline component for better visibility during updates. * Refactor timeline components to unify context management and enhance visibility - Replace GlobalContext with useTimelineContext in multiple components for improved context management. - Update visibility logic in Chrono component for better handling of timeline item visibility based on mode. - Adjust styles in timeline components to support new layout requirements and improve responsiveness. - Enhance timeline card functionality with focus management for active items. - Update tests to reflect changes in component structure and context usage. * Update Playwright workflow to remove Firefox from browser matrix - Modify Playwright workflow to streamline browser testing by removing Firefox from the matrix, retaining only Chromium and WebKit. - This change aims to simplify the testing process and focus on the most relevant browsers for the project. * Enhance timeline navigation and scrolling experience - Refactor timeline component navigation to improve focus management and predictive centering during item transitions. - Update scrolling behavior with smoother animations and improved easing functions for both horizontal and vertical modes. - Introduce state tracking for keyboard and toolbar navigation to enhance accessibility. - Adjust styles for better focus visibility and user experience during timeline interactions. - Sync active item index with external updates for consistent navigation behavior. * Enhance focus management and accessibility in timeline components - Refactor timeline navigation to improve keyboard and toolbar navigation states. - Update focus styles to show outlines only during keyboard navigation, enhancing accessibility. - Streamline focus handling in timeline points and card content for better user experience. - Adjust scrolling behavior to ensure elements are focused correctly during navigation. - Improve code readability by consolidating focus-related logic and removing unnecessary comments. * Refactor timeline components for improved visibility and focus management - Simplify visibility logic in the Chrono component to ensure all items are always visible in horizontal modes. - Enhance focus management in horizontal timeline components to ensure active items are correctly focused during navigation. - Update context synchronization for showAllCardsHorizontal to improve responsiveness to mode changes. - Adjust styles to ensure timeline points are always visible and highlight active cards in horizontal_all mode. - Streamline code for better readability and maintainability across timeline components. * Refactor context management and update dependencies for timeline components - Replace legacy GlobalContext with TimelineContextProvider to streamline context usage across components. - Remove deprecated DynamicContext and related hooks to simplify context structure. - Update package dependencies in package.json for improved compatibility and performance. - Enhance focus management in timeline navigation hooks to ensure better accessibility during item transitions. - Clean up unused context files and improve overall code organization for maintainability. * Refactor timeline components for improved focus management and accessibility - Update focus handling in the Timeline component to prioritize card containers in horizontal modes. - Enhance styling for horizontal timeline cards to support new class variations. - Adjust navigation hooks to streamline focus management and ensure better accessibility during item transitions. - Introduce unique IDs for timeline items to improve element targeting during navigation. * Add configuration files and enhance project structure for improved development experience - Introduce .editorconfig, .eslintrc.cjs, .npmignore, and .npmrc for consistent coding standards and dependency management. - Create migration guide (MIGRATION.md) to outline changes for library modernization. - Update package.json scripts for better build and development processes, including new commands for Ladle and site preview. - Refactor TypeScript configuration (tsconfig.json) for stricter type checking and improved module resolution. - Set up CI workflows for automated testing, release, and size limit checks. - Add Ladle configuration for component previews and enhance timeline component tests for better accessibility. - Update Vite configuration to support library mode and improve build outputs. * Update CI and release workflows to use Node.js version 22 and remove deprecated publish step * Implement migration to vanilla-extract for styling and enhance ESLint configuration - Migrate styled-components to vanilla-extract across various components for improved performance and maintainability. - Introduce a new ESLint rule to restrict the use of styled-components, encouraging the use of vanilla-extract instead. - Update package.json to include new dependencies and adjust build configurations. - Add a migration status document to track progress on the transition to vanilla-extract. - Refactor multiple components to utilize the new CSS modules, ensuring consistent styling and improved accessibility. * Refactor timeline components and styles for improved maintainability and accessibility - Update CSS styles to utilize centralized variables for colors and z-index values across timeline components. - Enhance the Timeline component to accept a customizable height, improving layout flexibility. - Refactor TimelineView props to enforce required fields and streamline default values. - Adjust various components to ensure consistent styling and accessibility improvements. - Update snapshot tests to reflect changes in component structure and styling. * Enhance timeline component styles and functionality - Introduce a customizable height property for the Timeline component, allowing for flexible layouts. - Update styling logic to conditionally apply flex properties based on the provided height. - Remove unnecessary icon rotation in non-horizontal modes for a more consistent user experience. - Adjust snapshot tests to reflect changes in button class names and ensure accurate rendering. * Enhance timeline components with improved styling and focus management - Add custom scrollbar color to align with theme primary color for better visual consistency. - Allow dynamic alignment for timeline card titles based on props for improved layout flexibility. - Implement focus checks in navigation hooks to prevent actions when the component is not focused, enhancing accessibility and user experience. * feat(toolbar): flip to Vanilla Extract by default and remove styled-components usage; adjust sprinkles container props and fix popover recipe arg; add optional className props to ContentFooter * chore(toolbar): remove styled-components toolbar.styles.ts after VE flip * refactor(timeline): enhance styling and accessibility features - Update timeline component styles for improved visual consistency and user experience. - Adjust flex properties and heights for better layout flexibility in vertical and horizontal modes. - Implement focus management enhancements to ensure accessibility during item interactions. - Introduce a new MeasuredItem component for dynamic height measurement in vertical timelines. - Normalize toolbar button styles for a cohesive design across the application. * feat(timeline): enhance timeline UX with sticky toolbar, continuous line, and improved theming - Make timeline toolbar sticky using position: sticky instead of absolute/fixed - Fix broken timeline line by implementing continuous line with gradient effects - Improve date positioning in vertical alternating mode with proper padding - Enhance dark theme propagation across all Vanilla Extract components - Add comprehensive CSS custom properties for consistent theming - Update theme-bridge to automatically detect and handle dark mode - Ensure timeline points appear above continuous line with proper z-index - Add scroll container adjustments for sticky toolbar compatibility - Maintain all existing functionality while improving visual design * feat: enhance text overlay with minimize/maximize controls and fix alternating layout - Add minimize/maximize functionality for text overlay mode with smooth transitions - Improve text overlay positioning with better styling (backdrop blur, shadows, borders) - Fix vertical alternating mode layout by removing incorrect height: 0 for text overlay - Add isDarkMode support throughout timeline components for proper theming - Enhance visual styling with hover effects and improved readability * fix(types): resolve TypeScript strict mode errors across components - Add null safety checks and default values for optional props - Fix undefined/null handling in context providers and hooks - Update component prop types to handle strict mode requirements - Standardize callback prop handling with fallback functions - Fix type assertions and remove unsafe any types * refactor(config): update vanilla-extract plugin identifiers for environment-specific behavior - Modify vanilla-extract plugin configurations in Playwright, Vite, and Vitest to use environment-specific identifiers for better debugging and production builds. - Enhance CSS styles in popover and timeline components to utilize global styles and improve responsiveness. - Refactor toolbar styles to streamline child alignment and layout adjustments, ensuring consistent design across different screen sizes. * feat: complete migration from styled-components to vanilla-extract BREAKING: Remove styled-components dependency entirely - Replace all styled-components with vanilla-extract CSS-in-JS - Migrate timeline-point component from styled components to VE classes - Convert video component to use vanilla-extract styles - Deprecate all legacy .styles.ts files with migration notes - Update test files to remove ThemeProvider dependencies - Add minimize/maximize functionality to toolbar components - Preserve all existing functionality and theming capabilities Performance improvements: - Eliminate styled-components runtime overhead - Better CSS optimization through static extraction - Reduced bundle size with more efficient styling system Technical changes: - Replace styled-component imports with vanilla-extract classes - Update JSX to use className with VE recipes and styles - Maintain theme integration through CSS custom properties - Preserve all hover states, accessibility, and animations - Keep backward compatibility for all public APIs Testing: - All 395 tests pass with no regressions - Build succeeds without styled-components dependencies - Code quality maintained (ESLint, Prettier clean) * fix: resolve nested timeline rendering and icon positioning issues - Fix nested timeline visibility by enhancing wrapper styles - Add proper flex centering for timeline point icons - Improve icon sizing and positioning in timeline shapes - Fix CSS syntax error in visibility overrides - Ensure nested timeline items display correctly with proper spacing - Add icon-specific styles for images and SVGs - Counter-rotate icons inside diamond shapes for proper orientation * refactor: remove unused style files post vanilla-extract migration - Remove all .styles.ts and .styles.tsx files (replaced by .css.ts) - Remove legacy CSS files (*-legacy.css.ts) - Remove backup files (.bak, .backup) - Clean up 1806 lines of obsolete styling code * refactor: remove unused styles and consolidate CSS architecture - Remove 10 completely unused CSS files (3,055 lines) - Clean up 88 unused exports from timeline.css.ts - Consolidate toolbar styles into single file - Remove legacy .styles.ts files from elements/ - Improve styling architecture maintainability Files removed: - timeline-advanced.css.ts (476 lines) - timeline-main.css.ts (354 lines) - timeline-system-v2.css.ts (560 lines) - timeline-toolbar-ve.css.ts (404 lines) - toolbar-legacy.css.ts (283 lines) - toolbar-system-v2.css.ts (536 lines) - toolbar-system.css.ts (443 lines) - Plus 3 small .styles.ts files * chore: remove unused configuration files and documentation - Remove webpack.config.js (replaced by Vite for builds) - Remove .eslintrc.cjs (empty, using eslint.config.mjs) - Remove VE_MIGRATION_STATUS.md (completed migration tracking) - Remove open_issues_last_1_year.json (6MB GitHub export file) - Update vitest.config.mts to remove webpack.config.js exclusion * feat: enhance timeline components with improved UI controls and nested timeline rendering - Add text overlay minimize/maximize controls with professional icons - Implement card-based nested timeline rendering with center connecting line - Remove timeline points from nested timelines for cleaner visual design - Fix timeline point visibility and positioning across all modes - Improve button styling with consistent hover/active states throughout - Enhance mobile responsiveness for timeline controls and cards - Add comprehensive test coverage for timeline point visibility controls * fix: implement proper responsive breakpoint behavior for vertical alternating mode - Replace hardcoded isMobile detection based on mode with context-based responsive detection - VERTICAL_ALTERNATING mode now respects enableBreakPoint and responsiveBreakPoint props - Timeline automatically switches from alternating to stacked layout below breakpoint threshold - Maintains backward compatibility while enabling proper mobile-responsive behavior - Fixes previously ignored responsive breakpoint configuration (default: 1024px) * refactor: replace conditional prop spreading with pickDefined utility - Replace verbose `{...(condition ? { prop: value } : {})}` pattern with clean `{...pickDefined({ prop: value })}` utility - Add propUtils.ts with reusable prop handling utilities - Apply consistent pattern across 11+ component files - Remove unused text maximize/minimize icons, replace with plus/minus - Add dark mode theme class application - Memoize styles in nested timeline components for performance - Maintain TypeScript strict mode compatibility * - Replace verbose `{...(condition ? { prop: value } : {})}` pattern with clean `{...pickDefined({ prop: value })}` utility * feat: enhance horizontal timeline with smaller points and improved structure - Reduce timeline point size from 2rem to 1.5rem for better visual balance - Add memoized timeline point props similar to vertical timeline implementation - Improve timeline card structure with cleaner section organization - Fix visibility logic for horizontal_all mode to properly show all cards - Apply consistent code formatting across all components - Update test snapshots to reflect structural changes * - Improve font color handling in both normal and text overlay modes - Add proper dark mode support with computeCssVarsFromTheme integration - Fix content header to pass color props to TitleMemo and SubTitleMemo - Update text-or-content component with CSS variable fallbacks - Enhance text overlay ContentDisplay with proper color theming - Apply theme CSS variables to timeline card wrapper and points - Fix timeline card content wrapper missing dark mode support - Update details-text component to use CSS variables for backgrounds - Improve read more logic to be context-aware and robust - Use pickDefined utility for proper TypeScript optional props handling - Fix failing test to match new CSS variable implementation - Ensure proper contrast and readability across all timeline modes * fix: improve popover positioning and menu item UX - Add smart horizontal positioning to keep popovers within timeline container bounds - Implement dynamic position calculation (left/right/center) based on available space - Reduce menu item text sizes for better visual hierarchy - Enhance hover effects with subtle animations and improved spacing * refactor: modernize icon components and migrate styles to vanilla-extract - Add React imports and proper TypeScript typing to all icon components - Replace styled-components with vanilla-extract CSS modules - Improve search controls with consistent button styling - Fix timeline fullscreen mode theme support - Update demo app styles from styled-components to vanilla-extract - Enhance dynamic item loading behavior to focus on new items - Standardize icon component naming and test IDs * fix: resolve slideshow and keyboard navigation issues with comprehensive improvements - Fix double increment bug in slideshow progression causing skipped items - Resolve circular useEffect loop in main component state synchronization - Unify keyboard and slideshow navigation pathways for consistency - Add error boundary for crash prevention and better UX - Add performance optimizations with throttled scroll handlers - Add prop validation and memoized icon components - Extract slideItemDuration prop and fix timer initialization - Improve TypeScript types and remove any usage where possible * fix: resolve slideshow media deadlock and standardize icon dimensions - Fix slideshow getting stuck on video elements by resuming when video pauses/ends - Prevent slideshow from auto-starting on component render - Standardize icon sizing across components (16px toolbar, 20px buttons, 24px controls) - Add IconWrapper component and base styles for consistent icon rendering - Update MediaState interface to include 'ended' property for video completion - Remove inconsistent Feather CSS classes in favor of standardized inline styles 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> * feat: enhance accessibility and fix navigation issues - Add proper ARIA labels and roles to timeline components - Fix keyboard navigation at first/last cards with improved focus management - Reduce scroll duration from 1200ms to 600ms for better responsiveness - Fix inverted textDensity mapping (compactText now correctly maps to LOW) - Add titles to popover buttons for better accessibility - Fix custom icon z-index to prevent timeline overlap - Disable default icon bounce animations in toolbar - Fix navigation using items.length instead of itemsMap.size - Add comprehensive accessibility documentation to README - Update keyboard navigation docs with Home/End key support * feat: add light and dark theme implementations with extensive design tokens - Introduced `themes.css.ts` for defining light and dark themes using Vanilla Extract. - Added comprehensive design tokens for colors, spacing, typography, shadows, and more. - Created TypeScript definitions in `types.ts` for design system components and tokens. - Configured TypeScript build settings in `tsconfig.build.json` for type declaration generation. - Updated main `tsconfig.json` to support new paths and improved type declarations. - Enhanced Vite configuration to include visualizer for production builds and improved minification settings. * feat: implement sticky toolbar functionality across timeline components * chore: update Node.js version to 22.x and pnpm version to 10.15.1 across workflows; improve caching strategy * feat: add stylelint configuration and implement sticky toolbar feature in timeline components * feat: Add Google Fonts integration with FontProvider and utility functions - Implemented FontProvider component for loading and applying Google Fonts. - Created google-fonts utility module for managing font configurations and loading. - Added index file for exporting font utilities and components. - Updated timeline components to utilize new font features. - Enhanced button styles in fullscreen and timeline controls for better UX. - Refactored ContentDisplay component to use CSS classes for styling. - Improved timeline scrolling behavior by disabling auto-navigation during keyboard navigation. - Added responsive font size adjustments and utility styles for typography. - Updated theme popover z-index for better layering. - Introduced TypeScript configuration for development environment. - Enhanced Vite configuration for improved development experience. * feat: Integrate Google Fonts support across components and update typography styles * Refactor theme styles and improve code formatting - Updated spacing, font sizes, and border radius definitions in light and dark themes for consistency. - Enhanced semantic color definitions for better readability. - Improved formatting of the code for better clarity and maintainability. - Refactored prop migration utility functions for better readability and structure. - Updated validation functions to improve error messaging and code clarity. - Cleaned up throttle and debounce utility functions for consistency in formatting. * refactor: update timeline test locators and improve assertions for better clarity and accuracy * fix: adjust performance test timeouts and improve compatibility for Firefox * feat: Add customizable toolbar search configuration and position - Introduced `toolbarSearchConfig` to allow customization of search input dimensions in the timeline toolbar. - Added support for `toolbarPosition` to specify the toolbar's placement (top or bottom). - Enhanced the `GlobalContext` and `TimelineContextProvider` to handle new toolbar configurations. - Updated CSS styles for responsive search input handling. - Modified demo components to showcase the new toolbar search features. - Ensured backward compatibility with existing configurations. * refactor: Improve list item layout and styles for better responsiveness and clarity * Add comprehensive tests for timeline props and related test data - Created a new test file for timeline props with various display, navigation, slideshow, theme, content, media, scrollable, responsive, and toolbar props tests. - Added test data for timeline items and props to facilitate testing. - Introduced a script to run tests in different modes and browsers. * feat: Complete demo site redesign with modern UX and full-width layout - Add comprehensive demo site redesign with modern header, footer, and navigation - Implement Tailwind CSS v3 with proper PostCSS configuration - Create responsive sidebar navigation with categorized demo sections - Add HeroSection with gradient background and feature highlights - Fix full-width layout issues by removing conflicting CSS constraints - Integrate Google Fonts (Inter and Plus Jakarta Sans) for better typography - Resolve router navigation issues by removing conditional rendering - Ensure cross-browser compatibility with proper CSS prefixes - Update all demo pages to use consistent DemoPageLayout wrapper - Add proper responsive design for mobile and desktop experiences * feat: Enhance toolbar search configuration and update documentation * feat: Implement internationalization support for timeline component - Added comprehensive internationalization configuration to support multiple languages and text customization. - Introduced `i18n` prop in timeline components for managing user-facing text. - Created a new `useI18n` hook for handling text retrieval and interpolation. - Developed a text resolver utility to manage legacy and new text formats seamlessly. - Updated documentation to include internationalization guidelines and examples. - Enhanced demo components to showcase internationalization features. * feat: Expand internationalization support with new configuration options - Added `i18n` and `darkMode` properties to the props reference for enhanced configuration. - Introduced detailed interfaces for `I18nConfig` and `DarkModeConfig` to support multi-language and dark mode features. - Updated documentation to reflect new internationalization capabilities and examples. - Implemented tests to ensure proper integration of i18n features and fallback mechanisms. * fix: Adjust styles for timeline and popover components for better layout and alignmen * feat: Add Playwright testing workflow and ESLint rule for unused variables - Introduced a new Playwright testing workflow to automate browser testing on push and pull request events. - Added ESLint rule for `no-unused-vars` to enforce cleaner code practices. - Updated various components and styles for improved layout and responsiveness. - Refactored prop types to enhance clarity and maintainability across components. * upgrade packages * upgraded tailwind from 3 to 4 * feat(PopOver): update portal container for fullscreen support - Added logic to dynamically set the portal container to the current fullscreen element or fallback to document body. - Implemented event listeners for fullscreen change events to update the portal container accordingly. fix(timeline-card-media): update snapshot with border style - Added border style to video element in timeline card media snapshot. fix(timeline-horizontal-card): update snapshot with corrected styles - Removed redundant styles and ensured consistency in timeline horizontal card snapshot. * refactor: remove computeCssVarsFromTheme usage and related CSS variable logic - Eliminated computeCssVarsFromTheme function calls in timeline components to streamline theme handling. - Removed unused CSS variable styles from timeline-related CSS files. - Updated theme handling logic to only compute CSS variables for custom themes. - Switched minification strategy in Vite config from Terser to ESBuild for production builds. * chore: remove rollup configuration and add integration tests for build output and demo app - Deleted rollup.config.mjs as part of the build process refactor. - Added integration tests to validate build output, including ESM and CJS bundles, TypeScript definitions, and CSS assets. - Created a demo app for end-to-end testing of the built package, including TypeScript checks and successful builds. - Added necessary files for the demo app, including HTML, TypeScript, and Vite configuration. * Update Vite configuration for demo app and main project - Changed server port to 5555 in demo app's vite.config.ts to match Playwright config and added strictPort option to fail if the port is already in use. - Updated optimizeDeps in demo app's vite.config.ts to exclude 'react-chrono' from pre-bundling. - Modified rollupOptions in main project's vite.config.mts to include additional conditions for external dependencies, allowing for scoped packages of 'react', 'react-dom', and 'styled-components'. * feat: remeasure card size on textDensity changes for improved layout * feat: add borderless variant to timeline card and improve title responsiveness * refactor: update popover positioning logic and enhance timeline card styles * Update snapshots for timeline components and adjust Vitest configuration - Updated snapshot files for timeline card content, horizontal card, item title, and vertical item to reflect changes in class names and structure. - Added title attributes to timeline item title components for better accessibility. - Modified Vitest configuration to exclude specific integration tests that require a build/setup, ensuring a cleaner test run. * refactor: improve list and popover styles for better layout and responsiveness * updated packages fixed integration tests * feat: add v3.0 blog post, enhance integration tests for Vanilla Extract CSS - Create comprehensive v3.0 blog post (BLOG_V3.md) documenting all new features - Add DarkModeConfig interface in TimelineConfig.ts for better type organization - Update integration tests to validate Vanilla Extract CSS bundling and application - Add CSS verification tests checking for design tokens and hash-based class names - Configure static CSS filename (style.css) for consistent imports - Add CSS export to package.json for proper module resolution - Update demo app to explicitly import Vanilla Extract styles - Enhance integration test documentation with Vanilla Extract specifics * upgraded all packages * fix kitchen sink page layout * removed unused modules * chore: remove unused dependencies and cleanup build config - Remove styled-components and related packages (fully migrated to Vanilla Extract) - Remove Husky, lint-staged, and git hook automation - Remove unused dev dependencies (c8, intersection-observer, semver, etc.) - Update package size limits (110KB -> 250KB) - Clean up stylelint and build configurations - Remove console.log debug statements from production code - Add ESLint rule for unused vars with underscore ignore pattern * removing references to playwright as we will bring it back in the next minor release * updated the readme to make some sections terser * minor updates to the readme (removed the use case section) * removed deepscan badge as we are not using it anymore * updated readme and made the why section a little terser * add blank line for improved readability in README * Update README.md --------- Co-authored-by: githubprojectsprabhu <githubprojectsprabhu@gmail.com> Co-authored-by: Claude <noreply@anthropic.com> | 1 year ago | |
🎉 2.0 Release (#336) | 3 years ago | |
updating dev layout + upgraded packages | 4 years ago | |
docs: add BACKLOG.md to track future features and issues | 11 months ago | |
Revise changelog for version 3.3.2 Updated changelog to reflect fixes and improvements. | 10 months ago | |
Cleanup: removed unused modules (ladle, sonar), updated playwright config (#595) * Improve e2e tests and update configs - Update Playwright config: fix testDir path, optimize for local dev - Enhance e2e tests with better selectors and robustness - Update Tailwind and PostCSS configs - Minor component and demo updates * Add Playwright test results and report files - Introduced new HTML report for Playwright test results. - Added various media files (images and videos) for test context. - Included markdown files for detailed error contexts across multiple test scenarios. - Updated test results directory structure to accommodate new files and improve organization. * Remove outdated Playwright test result files - Deleted various test result files including error context markdowns, images, and videos for multiple horizontal mode tests. - Cleaned up the test results directory to remove unnecessary artifacts from previous test runs. * removed vid/img files * Add Firefox support to Playwright configuration * Remove SonarCloud configuration and related files from the project. Updated .gitignore to exclude sonar-related artifacts. * Remove Ladle integration and related files from the project. Updated configuration and documentation accordingly. * Remove DeepSource configuration file from the project. * Enhance Playwright tests and update configurations - Updated horizontal mode tests to improve visibility checks and scrolling behavior. - Added new test results file to track the last run status. - Refined test helpers for better handling of active timeline points. - Adjusted vertical alternating mode tests to ensure proper visibility and alternating patterns. - Improved overall test robustness and clarity in assertions. * Update Bun version to 1.3.3 across workflows and package.json - Changed Bun version from 'latest' to '1.3.3' in CI, Chromatic, Coveralls, and Release workflows. - Updated package.json to specify Bun version as '1.3.3' for consistency. | 10 months ago | |
add code of conduct | 5 years ago | |
updating readme with social logo adding contribution guidelines | 6 years ago | |
initial commit | 5 years ago | |
Cleanup + Minor enhancements to the Timeline card + minor doc updates (#598) * Enhance theme colors and styles across components - Introduced a new electric color palette in index.css for consistent theming. - Updated default theme colors in common themes to utilize the new electric palette. - Modified demo components to reflect the new theme colors, enhancing visual consistency. - Adjusted various component styles to incorporate electric colors for better accessibility and aesthetics. * Remove obsolete configuration files and build logs - Deleted .restyled.yaml to eliminate unused styling configurations. - Removed build-storybook.log as it contained outdated build logs, streamlining the project structure. * Remove stats.html file to streamline project structure and eliminate unused resources. * Refactor timeline components for improved styling and layout - Enhanced TimelineItemTitle to utilize CSS variables for background and text colors, improving theming flexibility. - Updated VerticalItem to streamline title visibility logic and layout calculations. - Introduced computed styles for card content and wrapper classes to enhance responsiveness and maintainability. - Adjusted demo components to reflect new title color settings for better visual consistency across themes. * Enhance theme colors and styles across components - Introduced a new electric color palette in index.css for consistent theming. - Updated default theme colors in common themes to utilize the new electric palette. - Modified demo components to reflect the new theme colors, enhancing visual consistency. - Adjusted various component styles to incorporate electric colors for better accessibility and aesthetics. * Remove obsolete configuration files and build logs - Deleted .restyled.yaml to eliminate unused styling configurations. - Removed build-storybook.log as it contained outdated build logs, streamlining the project structure. * Remove stats.html file to streamline project structure and eliminate unused resources. * Refactor timeline components for improved styling and layout - Enhanced TimelineItemTitle to utilize CSS variables for background and text colors, improving theming flexibility. - Updated VerticalItem to streamline title visibility logic and layout calculations. - Introduced computed styles for card content and wrapper classes to enhance responsiveness and maintainability. - Adjusted demo components to reflect new title color settings for better visual consistency across themes. * Enhance timeline item title styles with color variable - Added a new CSS variable for timeline title text color to improve theming flexibility. - Updated global styles to ensure the text color is consistently applied across timeline item titles. * Refactor timeline item title styles to improve theming support - Removed global style overrides for timeline item titles to streamline CSS. - Updated TimelineItemTitle component to utilize theme colors for text, enhancing flexibility. - Adjusted demo components to consistently apply the new title color theme across various layouts. * fix formatting * Update primary theme color to '#0079e6' across documentation and components for consistency * updated test cases for the timeline card content * removed obsolete storybook * Update dependencies in package.json and bun.lock * Refactor Vite configuration for improved type generation and source map handling - Updated Vite build configuration to conditionally enable type generation and source maps based on environment variables. - Enhanced plugin setup for better production handling and added support for additional dependencies in the site configuration. - Streamlined output settings and improved code organization for clarity. | 10 months ago | |
Cleanup + Minor enhancements to the Timeline card + minor doc updates (#598) * Enhance theme colors and styles across components - Introduced a new electric color palette in index.css for consistent theming. - Updated default theme colors in common themes to utilize the new electric palette. - Modified demo components to reflect the new theme colors, enhancing visual consistency. - Adjusted various component styles to incorporate electric colors for better accessibility and aesthetics. * Remove obsolete configuration files and build logs - Deleted .restyled.yaml to eliminate unused styling configurations. - Removed build-storybook.log as it contained outdated build logs, streamlining the project structure. * Remove stats.html file to streamline project structure and eliminate unused resources. * Refactor timeline components for improved styling and layout - Enhanced TimelineItemTitle to utilize CSS variables for background and text colors, improving theming flexibility. - Updated VerticalItem to streamline title visibility logic and layout calculations. - Introduced computed styles for card content and wrapper classes to enhance responsiveness and maintainability. - Adjusted demo components to reflect new title color settings for better visual consistency across themes. * Enhance theme colors and styles across components - Introduced a new electric color palette in index.css for consistent theming. - Updated default theme colors in common themes to utilize the new electric palette. - Modified demo components to reflect the new theme colors, enhancing visual consistency. - Adjusted various component styles to incorporate electric colors for better accessibility and aesthetics. * Remove obsolete configuration files and build logs - Deleted .restyled.yaml to eliminate unused styling configurations. - Removed build-storybook.log as it contained outdated build logs, streamlining the project structure. * Remove stats.html file to streamline project structure and eliminate unused resources. * Refactor timeline components for improved styling and layout - Enhanced TimelineItemTitle to utilize CSS variables for background and text colors, improving theming flexibility. - Updated VerticalItem to streamline title visibility logic and layout calculations. - Introduced computed styles for card content and wrapper classes to enhance responsiveness and maintainability. - Adjusted demo components to reflect new title color settings for better visual consistency across themes. * Enhance timeline item title styles with color variable - Added a new CSS variable for timeline title text color to improve theming flexibility. - Updated global styles to ensure the text color is consistently applied across timeline item titles. * Refactor timeline item title styles to improve theming support - Removed global style overrides for timeline item titles to streamline CSS. - Updated TimelineItemTitle component to utilize theme colors for text, enhancing flexibility. - Adjusted demo components to consistently apply the new title color theme across various layouts. * fix formatting * Update primary theme color to '#0079e6' across documentation and components for consistency * updated test cases for the timeline card content * removed obsolete storybook * Update dependencies in package.json and bun.lock * Refactor Vite configuration for improved type generation and source map handling - Updated Vite build configuration to conditionally enable type generation and source maps based on environment variables. - Enhanced plugin setup for better production handling and added support for additional dependencies in the site configuration. - Streamlined output settings and improved code organization for clarity. | 10 months ago | |
Add SECURITY.md to outline security policy and best practices - Introduced a comprehensive security policy document detailing supported versions, vulnerability reporting procedures, severity levels, and security best practices for users. - Included guidelines for dependency management, input sanitization, content security policy, and safe usage patterns. - Documented built-in security features and known considerations to enhance user awareness and application security. | 11 months ago | |
chore: Update various dependencies and add new PostCSS and utility packages. | 10 months ago | |
React Chrono v3.0 (#554) * refactor: enhance React hooks performance and modularity - Optimize 14 hooks with performance improvements (memoization, RAF throttling, stable callbacks) - Split large useTimelineNavigation into focused, composable hooks - Add comprehensive shared utilities for common hook patterns - Enhance useBackground with multi-format color support - Extend useEscapeKey to support multiple keys and modifiers - Generalize useMeasureHeight to measure any DOM property - Add device detection and viewport info to useWindowSize - Maintain backward compatibility throughout all changes - Fix all test failures and add comprehensive test coverage * refactor: improve toolbar UX with flex-wrap layout and enhanced styling • Fix toolbar overflow by implementing logical control grouping (NavigationGroup, SearchGroup, ActionGroup) • Enhance button sizes and spacing - navigation buttons 28px → 36px, improved touch targets • Add proper flex-wrap behavior to prevent cutoff, controls wrap to next line intelligently • Improve accessibility with keyboard navigation, focus states, and ARIA labels • Fix search input colors for dark mode, remove unwanted hover backgrounds • Update popover buttons to match navigation button dimensions and styling • Add responsive design improvements with better mobile layout * fix: improve search focus and dark mode text colors - Fix search input losing focus while typing by preventing aggressive refocus - Add smart auto-focus with 100ms delay for first search, 400ms for subsequent - Enhance dark mode text colors with proper theme detection fallbacks - Add blur prevention to maintain search focus during timeline navigation - Improve placeholder and autofill colors for better contrast in both themes * updated configs for eslint, tsconfig, prettier major ux fixes and bug fixes * recreted pnpm.lock * fixed test cases * feat: add fullscreen functionality with consistent button sizing and UX improvements - Add fullscreen button component with proper theming and accessibility - Implement cross-browser fullscreen hook with comprehensive API support - Integrate fullscreen control into timeline toolbar - Fix button dimensions to match standard 36px toolbar buttons - Enhance search focus behavior and text color contrast in dark mode - Improve card content layout with better read-more functionality - Update popover styling and remove unnecessary margins - Add comprehensive test coverage for fullscreen components * feat: improve slideshow UX with proper card scrolling and link-style read more - Add vertical timeline scrolling during slideshow to keep cards visible - Centralize slideshow scroll logic in timeline.tsx for consistency - Convert read more button to link appearance (underlined text) - Remove button-style background, borders and shadows from read more - Fix slideshow card focus issues across all timeline modes * feat: migrate from Cypress to Playwright for E2E testing - Replace Cypress with Playwright for improved cross-browser support - Add comprehensive test configurations for E2E and component testing - Implement advanced Playwright features (trace viewer, parallel execution) - Support WebKit browsers and mobile device emulation - Add GitHub Actions workflow with matrix builds and sharding - Update .gitignore to exclude Playwright test artifacts - Remove Cypress dependency and replace test scripts - Add TypeScript fixtures and helpers for test reusability * feat: add comprehensive E2E test coverage for all timeline features - Add timeline-accessibility.spec.ts: keyboard navigation, ARIA attributes, screen reader support, focus management, color contrast, and motion accessibility - Add timeline-advanced-features.spec.ts: slideshow functionality, fullscreen controls, quick jump navigation, dark mode toggle, dynamic theme switching, responsive breakpoints, custom content, and dynamic loading - Add timeline-cardless-nested.spec.ts: cardless timeline modes, nested timeline structures, alternating nested layouts, and complex interaction handling - Add timeline-media.spec.ts: media-rich timelines, image/video content, YouTube integration, media loading states, error handling, and media settings configuration - Add timeline-navigation-controls.spec.ts: navigation buttons, timeline item selection, toolbar controls, scroll-based navigation, touch/mobile interactions, search filtering, and position navigation - Add timeline-performance.spec.ts: load performance testing, interaction responsiveness, memory usage monitoring, media loading optimization, animation performance, resource loading, stress testing, and performance monitoring - Add timeline-theme-responsive.spec.ts: theme switching, dynamic theme configuration, dark mode support, responsive design across viewports, breakpoint behavior, high DPI support, print media, and color scheme preferences - Enhance timeline-horizontal.spec.ts: add media content testing, slideshow functionality, and theme toggle support Covers all timeline modes (horizontal, vertical, alternating), advanced features, accessibility compliance, performance optimization, and responsive behavior across 3050+ lines of comprehensive test coverage. * - Add comprehensive theme validation tests with edge case coverage │ │ - Test theme property validation, merging, consistency, and performance │ │ - Add fullscreen control component tests with proper mocking │ │ - Create comprehensive toolbar interaction and accessibility tests │ │ - Fix styled-components prop filtering with transient props │ │ - Enhance hex color validation to support 3-character formats │ │ - Update theme utility tests with proper size assertions │ │ - Improve test reliability and maintainability * - Add new Technology Evolution Timeline showcasing 53+ years of tech history - Implement complete dark mode theme with blue, amber, white color scheme - Add all 15+ dark mode properties for comprehensive theme customization - Update README with enhanced documentation: - Add fullscreen functionality section with cross-browser support details - Expand development commands with comprehensive pnpm script documentation - Update testing framework section with Playwright E2E and component testing - Enhance features list with search, fullscreen, and accessibility improvements - Integrate new demo into navigation with featured highlighting - Create adaptive theme that works seamlessly in both light and dark modes - Include proper dark mode props (darkMode, enableDarkToggle, onThemeChange) * fix(tests): resolve Playwright test failures and optimize browser configuration - Fix CSS selector mismatches in timeline tests by updating selectors to match actual DOM structure - Replace .rc-card-title with [data-class=""] or direct element searches - Replace .rc-card-subtitle with .card-sub-title - Replace .rc-card-text with .card-description - Remove unnecessary .timeline-card-content wrapper selectors - Optimize Playwright configuration for better performance: - Reduce browser matrix from 7 to 1 (chromium only for now, others commented) - Improve parallelization: 50% CPU cores locally, 2 workers on CI - Reduce total test executions from ~1,085 to ~155 - Add split context architecture for performance optimization: - Create separate contexts for Navigation, Theme, Media, and Layout - Add MigrationContextProvider for backward compatibility - Update components to use split contexts while maintaining legacy support - Add useFocusManager hook for improved focus handling - Update test utilities: - Enhance customRender with TestWrapper integration - Add efficient comparison utilities for props - Fix timeline-card-content test setup * trigger deploy * fixed the lock file * removing cypress as we are moving over to playwright * regen lock file * fix pnpm versions on workflows * fix pnpm workflow * fix lock version * Update pnpm lockfile version and streamline Playwright workflow - Downgrade lockfileVersion from '10.0' to '9.0' for compatibility. - Modify Playwright workflow to remove frozen lockfile option during dependency installation for improved flexibility. - Update context providers to unify timeline context management, enhancing performance and maintainability. - Introduce debug logging in timeline component for better visibility during updates. * Refactor timeline components to unify context management and enhance visibility - Replace GlobalContext with useTimelineContext in multiple components for improved context management. - Update visibility logic in Chrono component for better handling of timeline item visibility based on mode. - Adjust styles in timeline components to support new layout requirements and improve responsiveness. - Enhance timeline card functionality with focus management for active items. - Update tests to reflect changes in component structure and context usage. * Update Playwright workflow to remove Firefox from browser matrix - Modify Playwright workflow to streamline browser testing by removing Firefox from the matrix, retaining only Chromium and WebKit. - This change aims to simplify the testing process and focus on the most relevant browsers for the project. * Enhance timeline navigation and scrolling experience - Refactor timeline component navigation to improve focus management and predictive centering during item transitions. - Update scrolling behavior with smoother animations and improved easing functions for both horizontal and vertical modes. - Introduce state tracking for keyboard and toolbar navigation to enhance accessibility. - Adjust styles for better focus visibility and user experience during timeline interactions. - Sync active item index with external updates for consistent navigation behavior. * Enhance focus management and accessibility in timeline components - Refactor timeline navigation to improve keyboard and toolbar navigation states. - Update focus styles to show outlines only during keyboard navigation, enhancing accessibility. - Streamline focus handling in timeline points and card content for better user experience. - Adjust scrolling behavior to ensure elements are focused correctly during navigation. - Improve code readability by consolidating focus-related logic and removing unnecessary comments. * Refactor timeline components for improved visibility and focus management - Simplify visibility logic in the Chrono component to ensure all items are always visible in horizontal modes. - Enhance focus management in horizontal timeline components to ensure active items are correctly focused during navigation. - Update context synchronization for showAllCardsHorizontal to improve responsiveness to mode changes. - Adjust styles to ensure timeline points are always visible and highlight active cards in horizontal_all mode. - Streamline code for better readability and maintainability across timeline components. * Refactor context management and update dependencies for timeline components - Replace legacy GlobalContext with TimelineContextProvider to streamline context usage across components. - Remove deprecated DynamicContext and related hooks to simplify context structure. - Update package dependencies in package.json for improved compatibility and performance. - Enhance focus management in timeline navigation hooks to ensure better accessibility during item transitions. - Clean up unused context files and improve overall code organization for maintainability. * Refactor timeline components for improved focus management and accessibility - Update focus handling in the Timeline component to prioritize card containers in horizontal modes. - Enhance styling for horizontal timeline cards to support new class variations. - Adjust navigation hooks to streamline focus management and ensure better accessibility during item transitions. - Introduce unique IDs for timeline items to improve element targeting during navigation. * Add configuration files and enhance project structure for improved development experience - Introduce .editorconfig, .eslintrc.cjs, .npmignore, and .npmrc for consistent coding standards and dependency management. - Create migration guide (MIGRATION.md) to outline changes for library modernization. - Update package.json scripts for better build and development processes, including new commands for Ladle and site preview. - Refactor TypeScript configuration (tsconfig.json) for stricter type checking and improved module resolution. - Set up CI workflows for automated testing, release, and size limit checks. - Add Ladle configuration for component previews and enhance timeline component tests for better accessibility. - Update Vite configuration to support library mode and improve build outputs. * Update CI and release workflows to use Node.js version 22 and remove deprecated publish step * Implement migration to vanilla-extract for styling and enhance ESLint configuration - Migrate styled-components to vanilla-extract across various components for improved performance and maintainability. - Introduce a new ESLint rule to restrict the use of styled-components, encouraging the use of vanilla-extract instead. - Update package.json to include new dependencies and adjust build configurations. - Add a migration status document to track progress on the transition to vanilla-extract. - Refactor multiple components to utilize the new CSS modules, ensuring consistent styling and improved accessibility. * Refactor timeline components and styles for improved maintainability and accessibility - Update CSS styles to utilize centralized variables for colors and z-index values across timeline components. - Enhance the Timeline component to accept a customizable height, improving layout flexibility. - Refactor TimelineView props to enforce required fields and streamline default values. - Adjust various components to ensure consistent styling and accessibility improvements. - Update snapshot tests to reflect changes in component structure and styling. * Enhance timeline component styles and functionality - Introduce a customizable height property for the Timeline component, allowing for flexible layouts. - Update styling logic to conditionally apply flex properties based on the provided height. - Remove unnecessary icon rotation in non-horizontal modes for a more consistent user experience. - Adjust snapshot tests to reflect changes in button class names and ensure accurate rendering. * Enhance timeline components with improved styling and focus management - Add custom scrollbar color to align with theme primary color for better visual consistency. - Allow dynamic alignment for timeline card titles based on props for improved layout flexibility. - Implement focus checks in navigation hooks to prevent actions when the component is not focused, enhancing accessibility and user experience. * feat(toolbar): flip to Vanilla Extract by default and remove styled-components usage; adjust sprinkles container props and fix popover recipe arg; add optional className props to ContentFooter * chore(toolbar): remove styled-components toolbar.styles.ts after VE flip * refactor(timeline): enhance styling and accessibility features - Update timeline component styles for improved visual consistency and user experience. - Adjust flex properties and heights for better layout flexibility in vertical and horizontal modes. - Implement focus management enhancements to ensure accessibility during item interactions. - Introduce a new MeasuredItem component for dynamic height measurement in vertical timelines. - Normalize toolbar button styles for a cohesive design across the application. * feat(timeline): enhance timeline UX with sticky toolbar, continuous line, and improved theming - Make timeline toolbar sticky using position: sticky instead of absolute/fixed - Fix broken timeline line by implementing continuous line with gradient effects - Improve date positioning in vertical alternating mode with proper padding - Enhance dark theme propagation across all Vanilla Extract components - Add comprehensive CSS custom properties for consistent theming - Update theme-bridge to automatically detect and handle dark mode - Ensure timeline points appear above continuous line with proper z-index - Add scroll container adjustments for sticky toolbar compatibility - Maintain all existing functionality while improving visual design * feat: enhance text overlay with minimize/maximize controls and fix alternating layout - Add minimize/maximize functionality for text overlay mode with smooth transitions - Improve text overlay positioning with better styling (backdrop blur, shadows, borders) - Fix vertical alternating mode layout by removing incorrect height: 0 for text overlay - Add isDarkMode support throughout timeline components for proper theming - Enhance visual styling with hover effects and improved readability * fix(types): resolve TypeScript strict mode errors across components - Add null safety checks and default values for optional props - Fix undefined/null handling in context providers and hooks - Update component prop types to handle strict mode requirements - Standardize callback prop handling with fallback functions - Fix type assertions and remove unsafe any types * refactor(config): update vanilla-extract plugin identifiers for environment-specific behavior - Modify vanilla-extract plugin configurations in Playwright, Vite, and Vitest to use environment-specific identifiers for better debugging and production builds. - Enhance CSS styles in popover and timeline components to utilize global styles and improve responsiveness. - Refactor toolbar styles to streamline child alignment and layout adjustments, ensuring consistent design across different screen sizes. * feat: complete migration from styled-components to vanilla-extract BREAKING: Remove styled-components dependency entirely - Replace all styled-components with vanilla-extract CSS-in-JS - Migrate timeline-point component from styled components to VE classes - Convert video component to use vanilla-extract styles - Deprecate all legacy .styles.ts files with migration notes - Update test files to remove ThemeProvider dependencies - Add minimize/maximize functionality to toolbar components - Preserve all existing functionality and theming capabilities Performance improvements: - Eliminate styled-components runtime overhead - Better CSS optimization through static extraction - Reduced bundle size with more efficient styling system Technical changes: - Replace styled-component imports with vanilla-extract classes - Update JSX to use className with VE recipes and styles - Maintain theme integration through CSS custom properties - Preserve all hover states, accessibility, and animations - Keep backward compatibility for all public APIs Testing: - All 395 tests pass with no regressions - Build succeeds without styled-components dependencies - Code quality maintained (ESLint, Prettier clean) * fix: resolve nested timeline rendering and icon positioning issues - Fix nested timeline visibility by enhancing wrapper styles - Add proper flex centering for timeline point icons - Improve icon sizing and positioning in timeline shapes - Fix CSS syntax error in visibility overrides - Ensure nested timeline items display correctly with proper spacing - Add icon-specific styles for images and SVGs - Counter-rotate icons inside diamond shapes for proper orientation * refactor: remove unused style files post vanilla-extract migration - Remove all .styles.ts and .styles.tsx files (replaced by .css.ts) - Remove legacy CSS files (*-legacy.css.ts) - Remove backup files (.bak, .backup) - Clean up 1806 lines of obsolete styling code * refactor: remove unused styles and consolidate CSS architecture - Remove 10 completely unused CSS files (3,055 lines) - Clean up 88 unused exports from timeline.css.ts - Consolidate toolbar styles into single file - Remove legacy .styles.ts files from elements/ - Improve styling architecture maintainability Files removed: - timeline-advanced.css.ts (476 lines) - timeline-main.css.ts (354 lines) - timeline-system-v2.css.ts (560 lines) - timeline-toolbar-ve.css.ts (404 lines) - toolbar-legacy.css.ts (283 lines) - toolbar-system-v2.css.ts (536 lines) - toolbar-system.css.ts (443 lines) - Plus 3 small .styles.ts files * chore: remove unused configuration files and documentation - Remove webpack.config.js (replaced by Vite for builds) - Remove .eslintrc.cjs (empty, using eslint.config.mjs) - Remove VE_MIGRATION_STATUS.md (completed migration tracking) - Remove open_issues_last_1_year.json (6MB GitHub export file) - Update vitest.config.mts to remove webpack.config.js exclusion * feat: enhance timeline components with improved UI controls and nested timeline rendering - Add text overlay minimize/maximize controls with professional icons - Implement card-based nested timeline rendering with center connecting line - Remove timeline points from nested timelines for cleaner visual design - Fix timeline point visibility and positioning across all modes - Improve button styling with consistent hover/active states throughout - Enhance mobile responsiveness for timeline controls and cards - Add comprehensive test coverage for timeline point visibility controls * fix: implement proper responsive breakpoint behavior for vertical alternating mode - Replace hardcoded isMobile detection based on mode with context-based responsive detection - VERTICAL_ALTERNATING mode now respects enableBreakPoint and responsiveBreakPoint props - Timeline automatically switches from alternating to stacked layout below breakpoint threshold - Maintains backward compatibility while enabling proper mobile-responsive behavior - Fixes previously ignored responsive breakpoint configuration (default: 1024px) * refactor: replace conditional prop spreading with pickDefined utility - Replace verbose `{...(condition ? { prop: value } : {})}` pattern with clean `{...pickDefined({ prop: value })}` utility - Add propUtils.ts with reusable prop handling utilities - Apply consistent pattern across 11+ component files - Remove unused text maximize/minimize icons, replace with plus/minus - Add dark mode theme class application - Memoize styles in nested timeline components for performance - Maintain TypeScript strict mode compatibility * - Replace verbose `{...(condition ? { prop: value } : {})}` pattern with clean `{...pickDefined({ prop: value })}` utility * feat: enhance horizontal timeline with smaller points and improved structure - Reduce timeline point size from 2rem to 1.5rem for better visual balance - Add memoized timeline point props similar to vertical timeline implementation - Improve timeline card structure with cleaner section organization - Fix visibility logic for horizontal_all mode to properly show all cards - Apply consistent code formatting across all components - Update test snapshots to reflect structural changes * - Improve font color handling in both normal and text overlay modes - Add proper dark mode support with computeCssVarsFromTheme integration - Fix content header to pass color props to TitleMemo and SubTitleMemo - Update text-or-content component with CSS variable fallbacks - Enhance text overlay ContentDisplay with proper color theming - Apply theme CSS variables to timeline card wrapper and points - Fix timeline card content wrapper missing dark mode support - Update details-text component to use CSS variables for backgrounds - Improve read more logic to be context-aware and robust - Use pickDefined utility for proper TypeScript optional props handling - Fix failing test to match new CSS variable implementation - Ensure proper contrast and readability across all timeline modes * fix: improve popover positioning and menu item UX - Add smart horizontal positioning to keep popovers within timeline container bounds - Implement dynamic position calculation (left/right/center) based on available space - Reduce menu item text sizes for better visual hierarchy - Enhance hover effects with subtle animations and improved spacing * refactor: modernize icon components and migrate styles to vanilla-extract - Add React imports and proper TypeScript typing to all icon components - Replace styled-components with vanilla-extract CSS modules - Improve search controls with consistent button styling - Fix timeline fullscreen mode theme support - Update demo app styles from styled-components to vanilla-extract - Enhance dynamic item loading behavior to focus on new items - Standardize icon component naming and test IDs * fix: resolve slideshow and keyboard navigation issues with comprehensive improvements - Fix double increment bug in slideshow progression causing skipped items - Resolve circular useEffect loop in main component state synchronization - Unify keyboard and slideshow navigation pathways for consistency - Add error boundary for crash prevention and better UX - Add performance optimizations with throttled scroll handlers - Add prop validation and memoized icon components - Extract slideItemDuration prop and fix timer initialization - Improve TypeScript types and remove any usage where possible * fix: resolve slideshow media deadlock and standardize icon dimensions - Fix slideshow getting stuck on video elements by resuming when video pauses/ends - Prevent slideshow from auto-starting on component render - Standardize icon sizing across components (16px toolbar, 20px buttons, 24px controls) - Add IconWrapper component and base styles for consistent icon rendering - Update MediaState interface to include 'ended' property for video completion - Remove inconsistent Feather CSS classes in favor of standardized inline styles 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> * feat: enhance accessibility and fix navigation issues - Add proper ARIA labels and roles to timeline components - Fix keyboard navigation at first/last cards with improved focus management - Reduce scroll duration from 1200ms to 600ms for better responsiveness - Fix inverted textDensity mapping (compactText now correctly maps to LOW) - Add titles to popover buttons for better accessibility - Fix custom icon z-index to prevent timeline overlap - Disable default icon bounce animations in toolbar - Fix navigation using items.length instead of itemsMap.size - Add comprehensive accessibility documentation to README - Update keyboard navigation docs with Home/End key support * feat: add light and dark theme implementations with extensive design tokens - Introduced `themes.css.ts` for defining light and dark themes using Vanilla Extract. - Added comprehensive design tokens for colors, spacing, typography, shadows, and more. - Created TypeScript definitions in `types.ts` for design system components and tokens. - Configured TypeScript build settings in `tsconfig.build.json` for type declaration generation. - Updated main `tsconfig.json` to support new paths and improved type declarations. - Enhanced Vite configuration to include visualizer for production builds and improved minification settings. * feat: implement sticky toolbar functionality across timeline components * chore: update Node.js version to 22.x and pnpm version to 10.15.1 across workflows; improve caching strategy * feat: add stylelint configuration and implement sticky toolbar feature in timeline components * feat: Add Google Fonts integration with FontProvider and utility functions - Implemented FontProvider component for loading and applying Google Fonts. - Created google-fonts utility module for managing font configurations and loading. - Added index file for exporting font utilities and components. - Updated timeline components to utilize new font features. - Enhanced button styles in fullscreen and timeline controls for better UX. - Refactored ContentDisplay component to use CSS classes for styling. - Improved timeline scrolling behavior by disabling auto-navigation during keyboard navigation. - Added responsive font size adjustments and utility styles for typography. - Updated theme popover z-index for better layering. - Introduced TypeScript configuration for development environment. - Enhanced Vite configuration for improved development experience. * feat: Integrate Google Fonts support across components and update typography styles * Refactor theme styles and improve code formatting - Updated spacing, font sizes, and border radius definitions in light and dark themes for consistency. - Enhanced semantic color definitions for better readability. - Improved formatting of the code for better clarity and maintainability. - Refactored prop migration utility functions for better readability and structure. - Updated validation functions to improve error messaging and code clarity. - Cleaned up throttle and debounce utility functions for consistency in formatting. * refactor: update timeline test locators and improve assertions for better clarity and accuracy * fix: adjust performance test timeouts and improve compatibility for Firefox * feat: Add customizable toolbar search configuration and position - Introduced `toolbarSearchConfig` to allow customization of search input dimensions in the timeline toolbar. - Added support for `toolbarPosition` to specify the toolbar's placement (top or bottom). - Enhanced the `GlobalContext` and `TimelineContextProvider` to handle new toolbar configurations. - Updated CSS styles for responsive search input handling. - Modified demo components to showcase the new toolbar search features. - Ensured backward compatibility with existing configurations. * refactor: Improve list item layout and styles for better responsiveness and clarity * Add comprehensive tests for timeline props and related test data - Created a new test file for timeline props with various display, navigation, slideshow, theme, content, media, scrollable, responsive, and toolbar props tests. - Added test data for timeline items and props to facilitate testing. - Introduced a script to run tests in different modes and browsers. * feat: Complete demo site redesign with modern UX and full-width layout - Add comprehensive demo site redesign with modern header, footer, and navigation - Implement Tailwind CSS v3 with proper PostCSS configuration - Create responsive sidebar navigation with categorized demo sections - Add HeroSection with gradient background and feature highlights - Fix full-width layout issues by removing conflicting CSS constraints - Integrate Google Fonts (Inter and Plus Jakarta Sans) for better typography - Resolve router navigation issues by removing conditional rendering - Ensure cross-browser compatibility with proper CSS prefixes - Update all demo pages to use consistent DemoPageLayout wrapper - Add proper responsive design for mobile and desktop experiences * feat: Enhance toolbar search configuration and update documentation * feat: Implement internationalization support for timeline component - Added comprehensive internationalization configuration to support multiple languages and text customization. - Introduced `i18n` prop in timeline components for managing user-facing text. - Created a new `useI18n` hook for handling text retrieval and interpolation. - Developed a text resolver utility to manage legacy and new text formats seamlessly. - Updated documentation to include internationalization guidelines and examples. - Enhanced demo components to showcase internationalization features. * feat: Expand internationalization support with new configuration options - Added `i18n` and `darkMode` properties to the props reference for enhanced configuration. - Introduced detailed interfaces for `I18nConfig` and `DarkModeConfig` to support multi-language and dark mode features. - Updated documentation to reflect new internationalization capabilities and examples. - Implemented tests to ensure proper integration of i18n features and fallback mechanisms. * fix: Adjust styles for timeline and popover components for better layout and alignmen * feat: Add Playwright testing workflow and ESLint rule for unused variables - Introduced a new Playwright testing workflow to automate browser testing on push and pull request events. - Added ESLint rule for `no-unused-vars` to enforce cleaner code practices. - Updated various components and styles for improved layout and responsiveness. - Refactored prop types to enhance clarity and maintainability across components. * upgrade packages * upgraded tailwind from 3 to 4 * feat(PopOver): update portal container for fullscreen support - Added logic to dynamically set the portal container to the current fullscreen element or fallback to document body. - Implemented event listeners for fullscreen change events to update the portal container accordingly. fix(timeline-card-media): update snapshot with border style - Added border style to video element in timeline card media snapshot. fix(timeline-horizontal-card): update snapshot with corrected styles - Removed redundant styles and ensured consistency in timeline horizontal card snapshot. * refactor: remove computeCssVarsFromTheme usage and related CSS variable logic - Eliminated computeCssVarsFromTheme function calls in timeline components to streamline theme handling. - Removed unused CSS variable styles from timeline-related CSS files. - Updated theme handling logic to only compute CSS variables for custom themes. - Switched minification strategy in Vite config from Terser to ESBuild for production builds. * chore: remove rollup configuration and add integration tests for build output and demo app - Deleted rollup.config.mjs as part of the build process refactor. - Added integration tests to validate build output, including ESM and CJS bundles, TypeScript definitions, and CSS assets. - Created a demo app for end-to-end testing of the built package, including TypeScript checks and successful builds. - Added necessary files for the demo app, including HTML, TypeScript, and Vite configuration. * Update Vite configuration for demo app and main project - Changed server port to 5555 in demo app's vite.config.ts to match Playwright config and added strictPort option to fail if the port is already in use. - Updated optimizeDeps in demo app's vite.config.ts to exclude 'react-chrono' from pre-bundling. - Modified rollupOptions in main project's vite.config.mts to include additional conditions for external dependencies, allowing for scoped packages of 'react', 'react-dom', and 'styled-components'. * feat: remeasure card size on textDensity changes for improved layout * feat: add borderless variant to timeline card and improve title responsiveness * refactor: update popover positioning logic and enhance timeline card styles * Update snapshots for timeline components and adjust Vitest configuration - Updated snapshot files for timeline card content, horizontal card, item title, and vertical item to reflect changes in class names and structure. - Added title attributes to timeline item title components for better accessibility. - Modified Vitest configuration to exclude specific integration tests that require a build/setup, ensuring a cleaner test run. * refactor: improve list and popover styles for better layout and responsiveness * updated packages fixed integration tests * feat: add v3.0 blog post, enhance integration tests for Vanilla Extract CSS - Create comprehensive v3.0 blog post (BLOG_V3.md) documenting all new features - Add DarkModeConfig interface in TimelineConfig.ts for better type organization - Update integration tests to validate Vanilla Extract CSS bundling and application - Add CSS verification tests checking for design tokens and hash-based class names - Configure static CSS filename (style.css) for consistent imports - Add CSS export to package.json for proper module resolution - Update demo app to explicitly import Vanilla Extract styles - Enhance integration test documentation with Vanilla Extract specifics * upgraded all packages * fix kitchen sink page layout * removed unused modules * chore: remove unused dependencies and cleanup build config - Remove styled-components and related packages (fully migrated to Vanilla Extract) - Remove Husky, lint-staged, and git hook automation - Remove unused dev dependencies (c8, intersection-observer, semver, etc.) - Update package size limits (110KB -> 250KB) - Clean up stylelint and build configurations - Remove console.log debug statements from production code - Add ESLint rule for unused vars with underscore ignore pattern * removing references to playwright as we will bring it back in the next minor release * updated the readme to make some sections terser * minor updates to the readme (removed the use case section) * removed deepscan badge as we are not using it anymore * updated readme and made the why section a little terser * add blank line for improved readability in README * Update README.md --------- Co-authored-by: githubprojectsprabhu <githubprojectsprabhu@gmail.com> Co-authored-by: Claude <noreply@anthropic.com> | 1 year ago | |
Docs/readme update and cleanup (#584) * docs: restructure README and add benchmark test infrastructure - Restructure README.md with improved navigation and content organization - Add performance testing scripts (test:perf, benchmark) to package.json - Add react-chrono-v2 dev dependency for performance comparisons - Update pnpm-lock.yaml with new dependencies * docs: update README to reflect increased configurable text elements and migration guide link change - Updated the number of configurable text elements - Changed the migration guide link to point to the new legacy props section. * docs: enhance README with migration guidance and new features in v3.0 * docs: update migration guide link in README for clarity * updated gitignore * docs: update README to keep details sections open by default for better accessibility * chore: remove outdated files and add Knip configuration for improved code quality * chore: remove analyze-coverage.js and find-bugs.sh scripts to streamline project structure | 11 months ago | |
Cleanup: removed unused modules (ladle, sonar), updated playwright config (#595) * Improve e2e tests and update configs - Update Playwright config: fix testDir path, optimize for local dev - Enhance e2e tests with better selectors and robustness - Update Tailwind and PostCSS configs - Minor component and demo updates * Add Playwright test results and report files - Introduced new HTML report for Playwright test results. - Added various media files (images and videos) for test context. - Included markdown files for detailed error contexts across multiple test scenarios. - Updated test results directory structure to accommodate new files and improve organization. * Remove outdated Playwright test result files - Deleted various test result files including error context markdowns, images, and videos for multiple horizontal mode tests. - Cleaned up the test results directory to remove unnecessary artifacts from previous test runs. * removed vid/img files * Add Firefox support to Playwright configuration * Remove SonarCloud configuration and related files from the project. Updated .gitignore to exclude sonar-related artifacts. * Remove Ladle integration and related files from the project. Updated configuration and documentation accordingly. * Remove DeepSource configuration file from the project. * Enhance Playwright tests and update configurations - Updated horizontal mode tests to improve visibility checks and scrolling behavior. - Added new test results file to track the last run status. - Refined test helpers for better handling of active timeline points. - Adjusted vertical alternating mode tests to ensure proper visibility and alternating patterns. - Improved overall test robustness and clarity in assertions. * Update Bun version to 1.3.3 across workflows and package.json - Changed Bun version from 'latest' to '1.3.3' in CI, Chromatic, Coveralls, and Release workflows. - Updated package.json to specify Bun version as '1.3.3' for consistency. | 10 months ago | |
chore: Update various dependencies and add new PostCSS and utility packages. | 10 months ago | |
Docs/readme update and cleanup (#584) * docs: restructure README and add benchmark test infrastructure - Restructure README.md with improved navigation and content organization - Add performance testing scripts (test:perf, benchmark) to package.json - Add react-chrono-v2 dev dependency for performance comparisons - Update pnpm-lock.yaml with new dependencies * docs: update README to reflect increased configurable text elements and migration guide link change - Updated the number of configurable text elements - Changed the migration guide link to point to the new legacy props section. * docs: enhance README with migration guidance and new features in v3.0 * docs: update migration guide link in README for clarity * updated gitignore * docs: update README to keep details sections open by default for better accessibility * chore: remove outdated files and add Knip configuration for improved code quality * chore: remove analyze-coverage.js and find-bugs.sh scripts to streamline project structure | 11 months ago | |
React Chrono v3.0 (#554) * refactor: enhance React hooks performance and modularity - Optimize 14 hooks with performance improvements (memoization, RAF throttling, stable callbacks) - Split large useTimelineNavigation into focused, composable hooks - Add comprehensive shared utilities for common hook patterns - Enhance useBackground with multi-format color support - Extend useEscapeKey to support multiple keys and modifiers - Generalize useMeasureHeight to measure any DOM property - Add device detection and viewport info to useWindowSize - Maintain backward compatibility throughout all changes - Fix all test failures and add comprehensive test coverage * refactor: improve toolbar UX with flex-wrap layout and enhanced styling • Fix toolbar overflow by implementing logical control grouping (NavigationGroup, SearchGroup, ActionGroup) • Enhance button sizes and spacing - navigation buttons 28px → 36px, improved touch targets • Add proper flex-wrap behavior to prevent cutoff, controls wrap to next line intelligently • Improve accessibility with keyboard navigation, focus states, and ARIA labels • Fix search input colors for dark mode, remove unwanted hover backgrounds • Update popover buttons to match navigation button dimensions and styling • Add responsive design improvements with better mobile layout * fix: improve search focus and dark mode text colors - Fix search input losing focus while typing by preventing aggressive refocus - Add smart auto-focus with 100ms delay for first search, 400ms for subsequent - Enhance dark mode text colors with proper theme detection fallbacks - Add blur prevention to maintain search focus during timeline navigation - Improve placeholder and autofill colors for better contrast in both themes * updated configs for eslint, tsconfig, prettier major ux fixes and bug fixes * recreted pnpm.lock * fixed test cases * feat: add fullscreen functionality with consistent button sizing and UX improvements - Add fullscreen button component with proper theming and accessibility - Implement cross-browser fullscreen hook with comprehensive API support - Integrate fullscreen control into timeline toolbar - Fix button dimensions to match standard 36px toolbar buttons - Enhance search focus behavior and text color contrast in dark mode - Improve card content layout with better read-more functionality - Update popover styling and remove unnecessary margins - Add comprehensive test coverage for fullscreen components * feat: improve slideshow UX with proper card scrolling and link-style read more - Add vertical timeline scrolling during slideshow to keep cards visible - Centralize slideshow scroll logic in timeline.tsx for consistency - Convert read more button to link appearance (underlined text) - Remove button-style background, borders and shadows from read more - Fix slideshow card focus issues across all timeline modes * feat: migrate from Cypress to Playwright for E2E testing - Replace Cypress with Playwright for improved cross-browser support - Add comprehensive test configurations for E2E and component testing - Implement advanced Playwright features (trace viewer, parallel execution) - Support WebKit browsers and mobile device emulation - Add GitHub Actions workflow with matrix builds and sharding - Update .gitignore to exclude Playwright test artifacts - Remove Cypress dependency and replace test scripts - Add TypeScript fixtures and helpers for test reusability * feat: add comprehensive E2E test coverage for all timeline features - Add timeline-accessibility.spec.ts: keyboard navigation, ARIA attributes, screen reader support, focus management, color contrast, and motion accessibility - Add timeline-advanced-features.spec.ts: slideshow functionality, fullscreen controls, quick jump navigation, dark mode toggle, dynamic theme switching, responsive breakpoints, custom content, and dynamic loading - Add timeline-cardless-nested.spec.ts: cardless timeline modes, nested timeline structures, alternating nested layouts, and complex interaction handling - Add timeline-media.spec.ts: media-rich timelines, image/video content, YouTube integration, media loading states, error handling, and media settings configuration - Add timeline-navigation-controls.spec.ts: navigation buttons, timeline item selection, toolbar controls, scroll-based navigation, touch/mobile interactions, search filtering, and position navigation - Add timeline-performance.spec.ts: load performance testing, interaction responsiveness, memory usage monitoring, media loading optimization, animation performance, resource loading, stress testing, and performance monitoring - Add timeline-theme-responsive.spec.ts: theme switching, dynamic theme configuration, dark mode support, responsive design across viewports, breakpoint behavior, high DPI support, print media, and color scheme preferences - Enhance timeline-horizontal.spec.ts: add media content testing, slideshow functionality, and theme toggle support Covers all timeline modes (horizontal, vertical, alternating), advanced features, accessibility compliance, performance optimization, and responsive behavior across 3050+ lines of comprehensive test coverage. * - Add comprehensive theme validation tests with edge case coverage │ │ - Test theme property validation, merging, consistency, and performance │ │ - Add fullscreen control component tests with proper mocking │ │ - Create comprehensive toolbar interaction and accessibility tests │ │ - Fix styled-components prop filtering with transient props │ │ - Enhance hex color validation to support 3-character formats │ │ - Update theme utility tests with proper size assertions │ │ - Improve test reliability and maintainability * - Add new Technology Evolution Timeline showcasing 53+ years of tech history - Implement complete dark mode theme with blue, amber, white color scheme - Add all 15+ dark mode properties for comprehensive theme customization - Update README with enhanced documentation: - Add fullscreen functionality section with cross-browser support details - Expand development commands with comprehensive pnpm script documentation - Update testing framework section with Playwright E2E and component testing - Enhance features list with search, fullscreen, and accessibility improvements - Integrate new demo into navigation with featured highlighting - Create adaptive theme that works seamlessly in both light and dark modes - Include proper dark mode props (darkMode, enableDarkToggle, onThemeChange) * fix(tests): resolve Playwright test failures and optimize browser configuration - Fix CSS selector mismatches in timeline tests by updating selectors to match actual DOM structure - Replace .rc-card-title with [data-class=""] or direct element searches - Replace .rc-card-subtitle with .card-sub-title - Replace .rc-card-text with .card-description - Remove unnecessary .timeline-card-content wrapper selectors - Optimize Playwright configuration for better performance: - Reduce browser matrix from 7 to 1 (chromium only for now, others commented) - Improve parallelization: 50% CPU cores locally, 2 workers on CI - Reduce total test executions from ~1,085 to ~155 - Add split context architecture for performance optimization: - Create separate contexts for Navigation, Theme, Media, and Layout - Add MigrationContextProvider for backward compatibility - Update components to use split contexts while maintaining legacy support - Add useFocusManager hook for improved focus handling - Update test utilities: - Enhance customRender with TestWrapper integration - Add efficient comparison utilities for props - Fix timeline-card-content test setup * trigger deploy * fixed the lock file * removing cypress as we are moving over to playwright * regen lock file * fix pnpm versions on workflows * fix pnpm workflow * fix lock version * Update pnpm lockfile version and streamline Playwright workflow - Downgrade lockfileVersion from '10.0' to '9.0' for compatibility. - Modify Playwright workflow to remove frozen lockfile option during dependency installation for improved flexibility. - Update context providers to unify timeline context management, enhancing performance and maintainability. - Introduce debug logging in timeline component for better visibility during updates. * Refactor timeline components to unify context management and enhance visibility - Replace GlobalContext with useTimelineContext in multiple components for improved context management. - Update visibility logic in Chrono component for better handling of timeline item visibility based on mode. - Adjust styles in timeline components to support new layout requirements and improve responsiveness. - Enhance timeline card functionality with focus management for active items. - Update tests to reflect changes in component structure and context usage. * Update Playwright workflow to remove Firefox from browser matrix - Modify Playwright workflow to streamline browser testing by removing Firefox from the matrix, retaining only Chromium and WebKit. - This change aims to simplify the testing process and focus on the most relevant browsers for the project. * Enhance timeline navigation and scrolling experience - Refactor timeline component navigation to improve focus management and predictive centering during item transitions. - Update scrolling behavior with smoother animations and improved easing functions for both horizontal and vertical modes. - Introduce state tracking for keyboard and toolbar navigation to enhance accessibility. - Adjust styles for better focus visibility and user experience during timeline interactions. - Sync active item index with external updates for consistent navigation behavior. * Enhance focus management and accessibility in timeline components - Refactor timeline navigation to improve keyboard and toolbar navigation states. - Update focus styles to show outlines only during keyboard navigation, enhancing accessibility. - Streamline focus handling in timeline points and card content for better user experience. - Adjust scrolling behavior to ensure elements are focused correctly during navigation. - Improve code readability by consolidating focus-related logic and removing unnecessary comments. * Refactor timeline components for improved visibility and focus management - Simplify visibility logic in the Chrono component to ensure all items are always visible in horizontal modes. - Enhance focus management in horizontal timeline components to ensure active items are correctly focused during navigation. - Update context synchronization for showAllCardsHorizontal to improve responsiveness to mode changes. - Adjust styles to ensure timeline points are always visible and highlight active cards in horizontal_all mode. - Streamline code for better readability and maintainability across timeline components. * Refactor context management and update dependencies for timeline components - Replace legacy GlobalContext with TimelineContextProvider to streamline context usage across components. - Remove deprecated DynamicContext and related hooks to simplify context structure. - Update package dependencies in package.json for improved compatibility and performance. - Enhance focus management in timeline navigation hooks to ensure better accessibility during item transitions. - Clean up unused context files and improve overall code organization for maintainability. * Refactor timeline components for improved focus management and accessibility - Update focus handling in the Timeline component to prioritize card containers in horizontal modes. - Enhance styling for horizontal timeline cards to support new class variations. - Adjust navigation hooks to streamline focus management and ensure better accessibility during item transitions. - Introduce unique IDs for timeline items to improve element targeting during navigation. * Add configuration files and enhance project structure for improved development experience - Introduce .editorconfig, .eslintrc.cjs, .npmignore, and .npmrc for consistent coding standards and dependency management. - Create migration guide (MIGRATION.md) to outline changes for library modernization. - Update package.json scripts for better build and development processes, including new commands for Ladle and site preview. - Refactor TypeScript configuration (tsconfig.json) for stricter type checking and improved module resolution. - Set up CI workflows for automated testing, release, and size limit checks. - Add Ladle configuration for component previews and enhance timeline component tests for better accessibility. - Update Vite configuration to support library mode and improve build outputs. * Update CI and release workflows to use Node.js version 22 and remove deprecated publish step * Implement migration to vanilla-extract for styling and enhance ESLint configuration - Migrate styled-components to vanilla-extract across various components for improved performance and maintainability. - Introduce a new ESLint rule to restrict the use of styled-components, encouraging the use of vanilla-extract instead. - Update package.json to include new dependencies and adjust build configurations. - Add a migration status document to track progress on the transition to vanilla-extract. - Refactor multiple components to utilize the new CSS modules, ensuring consistent styling and improved accessibility. * Refactor timeline components and styles for improved maintainability and accessibility - Update CSS styles to utilize centralized variables for colors and z-index values across timeline components. - Enhance the Timeline component to accept a customizable height, improving layout flexibility. - Refactor TimelineView props to enforce required fields and streamline default values. - Adjust various components to ensure consistent styling and accessibility improvements. - Update snapshot tests to reflect changes in component structure and styling. * Enhance timeline component styles and functionality - Introduce a customizable height property for the Timeline component, allowing for flexible layouts. - Update styling logic to conditionally apply flex properties based on the provided height. - Remove unnecessary icon rotation in non-horizontal modes for a more consistent user experience. - Adjust snapshot tests to reflect changes in button class names and ensure accurate rendering. * Enhance timeline components with improved styling and focus management - Add custom scrollbar color to align with theme primary color for better visual consistency. - Allow dynamic alignment for timeline card titles based on props for improved layout flexibility. - Implement focus checks in navigation hooks to prevent actions when the component is not focused, enhancing accessibility and user experience. * feat(toolbar): flip to Vanilla Extract by default and remove styled-components usage; adjust sprinkles container props and fix popover recipe arg; add optional className props to ContentFooter * chore(toolbar): remove styled-components toolbar.styles.ts after VE flip * refactor(timeline): enhance styling and accessibility features - Update timeline component styles for improved visual consistency and user experience. - Adjust flex properties and heights for better layout flexibility in vertical and horizontal modes. - Implement focus management enhancements to ensure accessibility during item interactions. - Introduce a new MeasuredItem component for dynamic height measurement in vertical timelines. - Normalize toolbar button styles for a cohesive design across the application. * feat(timeline): enhance timeline UX with sticky toolbar, continuous line, and improved theming - Make timeline toolbar sticky using position: sticky instead of absolute/fixed - Fix broken timeline line by implementing continuous line with gradient effects - Improve date positioning in vertical alternating mode with proper padding - Enhance dark theme propagation across all Vanilla Extract components - Add comprehensive CSS custom properties for consistent theming - Update theme-bridge to automatically detect and handle dark mode - Ensure timeline points appear above continuous line with proper z-index - Add scroll container adjustments for sticky toolbar compatibility - Maintain all existing functionality while improving visual design * feat: enhance text overlay with minimize/maximize controls and fix alternating layout - Add minimize/maximize functionality for text overlay mode with smooth transitions - Improve text overlay positioning with better styling (backdrop blur, shadows, borders) - Fix vertical alternating mode layout by removing incorrect height: 0 for text overlay - Add isDarkMode support throughout timeline components for proper theming - Enhance visual styling with hover effects and improved readability * fix(types): resolve TypeScript strict mode errors across components - Add null safety checks and default values for optional props - Fix undefined/null handling in context providers and hooks - Update component prop types to handle strict mode requirements - Standardize callback prop handling with fallback functions - Fix type assertions and remove unsafe any types * refactor(config): update vanilla-extract plugin identifiers for environment-specific behavior - Modify vanilla-extract plugin configurations in Playwright, Vite, and Vitest to use environment-specific identifiers for better debugging and production builds. - Enhance CSS styles in popover and timeline components to utilize global styles and improve responsiveness. - Refactor toolbar styles to streamline child alignment and layout adjustments, ensuring consistent design across different screen sizes. * feat: complete migration from styled-components to vanilla-extract BREAKING: Remove styled-components dependency entirely - Replace all styled-components with vanilla-extract CSS-in-JS - Migrate timeline-point component from styled components to VE classes - Convert video component to use vanilla-extract styles - Deprecate all legacy .styles.ts files with migration notes - Update test files to remove ThemeProvider dependencies - Add minimize/maximize functionality to toolbar components - Preserve all existing functionality and theming capabilities Performance improvements: - Eliminate styled-components runtime overhead - Better CSS optimization through static extraction - Reduced bundle size with more efficient styling system Technical changes: - Replace styled-component imports with vanilla-extract classes - Update JSX to use className with VE recipes and styles - Maintain theme integration through CSS custom properties - Preserve all hover states, accessibility, and animations - Keep backward compatibility for all public APIs Testing: - All 395 tests pass with no regressions - Build succeeds without styled-components dependencies - Code quality maintained (ESLint, Prettier clean) * fix: resolve nested timeline rendering and icon positioning issues - Fix nested timeline visibility by enhancing wrapper styles - Add proper flex centering for timeline point icons - Improve icon sizing and positioning in timeline shapes - Fix CSS syntax error in visibility overrides - Ensure nested timeline items display correctly with proper spacing - Add icon-specific styles for images and SVGs - Counter-rotate icons inside diamond shapes for proper orientation * refactor: remove unused style files post vanilla-extract migration - Remove all .styles.ts and .styles.tsx files (replaced by .css.ts) - Remove legacy CSS files (*-legacy.css.ts) - Remove backup files (.bak, .backup) - Clean up 1806 lines of obsolete styling code * refactor: remove unused styles and consolidate CSS architecture - Remove 10 completely unused CSS files (3,055 lines) - Clean up 88 unused exports from timeline.css.ts - Consolidate toolbar styles into single file - Remove legacy .styles.ts files from elements/ - Improve styling architecture maintainability Files removed: - timeline-advanced.css.ts (476 lines) - timeline-main.css.ts (354 lines) - timeline-system-v2.css.ts (560 lines) - timeline-toolbar-ve.css.ts (404 lines) - toolbar-legacy.css.ts (283 lines) - toolbar-system-v2.css.ts (536 lines) - toolbar-system.css.ts (443 lines) - Plus 3 small .styles.ts files * chore: remove unused configuration files and documentation - Remove webpack.config.js (replaced by Vite for builds) - Remove .eslintrc.cjs (empty, using eslint.config.mjs) - Remove VE_MIGRATION_STATUS.md (completed migration tracking) - Remove open_issues_last_1_year.json (6MB GitHub export file) - Update vitest.config.mts to remove webpack.config.js exclusion * feat: enhance timeline components with improved UI controls and nested timeline rendering - Add text overlay minimize/maximize controls with professional icons - Implement card-based nested timeline rendering with center connecting line - Remove timeline points from nested timelines for cleaner visual design - Fix timeline point visibility and positioning across all modes - Improve button styling with consistent hover/active states throughout - Enhance mobile responsiveness for timeline controls and cards - Add comprehensive test coverage for timeline point visibility controls * fix: implement proper responsive breakpoint behavior for vertical alternating mode - Replace hardcoded isMobile detection based on mode with context-based responsive detection - VERTICAL_ALTERNATING mode now respects enableBreakPoint and responsiveBreakPoint props - Timeline automatically switches from alternating to stacked layout below breakpoint threshold - Maintains backward compatibility while enabling proper mobile-responsive behavior - Fixes previously ignored responsive breakpoint configuration (default: 1024px) * refactor: replace conditional prop spreading with pickDefined utility - Replace verbose `{...(condition ? { prop: value } : {})}` pattern with clean `{...pickDefined({ prop: value })}` utility - Add propUtils.ts with reusable prop handling utilities - Apply consistent pattern across 11+ component files - Remove unused text maximize/minimize icons, replace with plus/minus - Add dark mode theme class application - Memoize styles in nested timeline components for performance - Maintain TypeScript strict mode compatibility * - Replace verbose `{...(condition ? { prop: value } : {})}` pattern with clean `{...pickDefined({ prop: value })}` utility * feat: enhance horizontal timeline with smaller points and improved structure - Reduce timeline point size from 2rem to 1.5rem for better visual balance - Add memoized timeline point props similar to vertical timeline implementation - Improve timeline card structure with cleaner section organization - Fix visibility logic for horizontal_all mode to properly show all cards - Apply consistent code formatting across all components - Update test snapshots to reflect structural changes * - Improve font color handling in both normal and text overlay modes - Add proper dark mode support with computeCssVarsFromTheme integration - Fix content header to pass color props to TitleMemo and SubTitleMemo - Update text-or-content component with CSS variable fallbacks - Enhance text overlay ContentDisplay with proper color theming - Apply theme CSS variables to timeline card wrapper and points - Fix timeline card content wrapper missing dark mode support - Update details-text component to use CSS variables for backgrounds - Improve read more logic to be context-aware and robust - Use pickDefined utility for proper TypeScript optional props handling - Fix failing test to match new CSS variable implementation - Ensure proper contrast and readability across all timeline modes * fix: improve popover positioning and menu item UX - Add smart horizontal positioning to keep popovers within timeline container bounds - Implement dynamic position calculation (left/right/center) based on available space - Reduce menu item text sizes for better visual hierarchy - Enhance hover effects with subtle animations and improved spacing * refactor: modernize icon components and migrate styles to vanilla-extract - Add React imports and proper TypeScript typing to all icon components - Replace styled-components with vanilla-extract CSS modules - Improve search controls with consistent button styling - Fix timeline fullscreen mode theme support - Update demo app styles from styled-components to vanilla-extract - Enhance dynamic item loading behavior to focus on new items - Standardize icon component naming and test IDs * fix: resolve slideshow and keyboard navigation issues with comprehensive improvements - Fix double increment bug in slideshow progression causing skipped items - Resolve circular useEffect loop in main component state synchronization - Unify keyboard and slideshow navigation pathways for consistency - Add error boundary for crash prevention and better UX - Add performance optimizations with throttled scroll handlers - Add prop validation and memoized icon components - Extract slideItemDuration prop and fix timer initialization - Improve TypeScript types and remove any usage where possible * fix: resolve slideshow media deadlock and standardize icon dimensions - Fix slideshow getting stuck on video elements by resuming when video pauses/ends - Prevent slideshow from auto-starting on component render - Standardize icon sizing across components (16px toolbar, 20px buttons, 24px controls) - Add IconWrapper component and base styles for consistent icon rendering - Update MediaState interface to include 'ended' property for video completion - Remove inconsistent Feather CSS classes in favor of standardized inline styles 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> * feat: enhance accessibility and fix navigation issues - Add proper ARIA labels and roles to timeline components - Fix keyboard navigation at first/last cards with improved focus management - Reduce scroll duration from 1200ms to 600ms for better responsiveness - Fix inverted textDensity mapping (compactText now correctly maps to LOW) - Add titles to popover buttons for better accessibility - Fix custom icon z-index to prevent timeline overlap - Disable default icon bounce animations in toolbar - Fix navigation using items.length instead of itemsMap.size - Add comprehensive accessibility documentation to README - Update keyboard navigation docs with Home/End key support * feat: add light and dark theme implementations with extensive design tokens - Introduced `themes.css.ts` for defining light and dark themes using Vanilla Extract. - Added comprehensive design tokens for colors, spacing, typography, shadows, and more. - Created TypeScript definitions in `types.ts` for design system components and tokens. - Configured TypeScript build settings in `tsconfig.build.json` for type declaration generation. - Updated main `tsconfig.json` to support new paths and improved type declarations. - Enhanced Vite configuration to include visualizer for production builds and improved minification settings. * feat: implement sticky toolbar functionality across timeline components * chore: update Node.js version to 22.x and pnpm version to 10.15.1 across workflows; improve caching strategy * feat: add stylelint configuration and implement sticky toolbar feature in timeline components * feat: Add Google Fonts integration with FontProvider and utility functions - Implemented FontProvider component for loading and applying Google Fonts. - Created google-fonts utility module for managing font configurations and loading. - Added index file for exporting font utilities and components. - Updated timeline components to utilize new font features. - Enhanced button styles in fullscreen and timeline controls for better UX. - Refactored ContentDisplay component to use CSS classes for styling. - Improved timeline scrolling behavior by disabling auto-navigation during keyboard navigation. - Added responsive font size adjustments and utility styles for typography. - Updated theme popover z-index for better layering. - Introduced TypeScript configuration for development environment. - Enhanced Vite configuration for improved development experience. * feat: Integrate Google Fonts support across components and update typography styles * Refactor theme styles and improve code formatting - Updated spacing, font sizes, and border radius definitions in light and dark themes for consistency. - Enhanced semantic color definitions for better readability. - Improved formatting of the code for better clarity and maintainability. - Refactored prop migration utility functions for better readability and structure. - Updated validation functions to improve error messaging and code clarity. - Cleaned up throttle and debounce utility functions for consistency in formatting. * refactor: update timeline test locators and improve assertions for better clarity and accuracy * fix: adjust performance test timeouts and improve compatibility for Firefox * feat: Add customizable toolbar search configuration and position - Introduced `toolbarSearchConfig` to allow customization of search input dimensions in the timeline toolbar. - Added support for `toolbarPosition` to specify the toolbar's placement (top or bottom). - Enhanced the `GlobalContext` and `TimelineContextProvider` to handle new toolbar configurations. - Updated CSS styles for responsive search input handling. - Modified demo components to showcase the new toolbar search features. - Ensured backward compatibility with existing configurations. * refactor: Improve list item layout and styles for better responsiveness and clarity * Add comprehensive tests for timeline props and related test data - Created a new test file for timeline props with various display, navigation, slideshow, theme, content, media, scrollable, responsive, and toolbar props tests. - Added test data for timeline items and props to facilitate testing. - Introduced a script to run tests in different modes and browsers. * feat: Complete demo site redesign with modern UX and full-width layout - Add comprehensive demo site redesign with modern header, footer, and navigation - Implement Tailwind CSS v3 with proper PostCSS configuration - Create responsive sidebar navigation with categorized demo sections - Add HeroSection with gradient background and feature highlights - Fix full-width layout issues by removing conflicting CSS constraints - Integrate Google Fonts (Inter and Plus Jakarta Sans) for better typography - Resolve router navigation issues by removing conditional rendering - Ensure cross-browser compatibility with proper CSS prefixes - Update all demo pages to use consistent DemoPageLayout wrapper - Add proper responsive design for mobile and desktop experiences * feat: Enhance toolbar search configuration and update documentation * feat: Implement internationalization support for timeline component - Added comprehensive internationalization configuration to support multiple languages and text customization. - Introduced `i18n` prop in timeline components for managing user-facing text. - Created a new `useI18n` hook for handling text retrieval and interpolation. - Developed a text resolver utility to manage legacy and new text formats seamlessly. - Updated documentation to include internationalization guidelines and examples. - Enhanced demo components to showcase internationalization features. * feat: Expand internationalization support with new configuration options - Added `i18n` and `darkMode` properties to the props reference for enhanced configuration. - Introduced detailed interfaces for `I18nConfig` and `DarkModeConfig` to support multi-language and dark mode features. - Updated documentation to reflect new internationalization capabilities and examples. - Implemented tests to ensure proper integration of i18n features and fallback mechanisms. * fix: Adjust styles for timeline and popover components for better layout and alignmen * feat: Add Playwright testing workflow and ESLint rule for unused variables - Introduced a new Playwright testing workflow to automate browser testing on push and pull request events. - Added ESLint rule for `no-unused-vars` to enforce cleaner code practices. - Updated various components and styles for improved layout and responsiveness. - Refactored prop types to enhance clarity and maintainability across components. * upgrade packages * upgraded tailwind from 3 to 4 * feat(PopOver): update portal container for fullscreen support - Added logic to dynamically set the portal container to the current fullscreen element or fallback to document body. - Implemented event listeners for fullscreen change events to update the portal container accordingly. fix(timeline-card-media): update snapshot with border style - Added border style to video element in timeline card media snapshot. fix(timeline-horizontal-card): update snapshot with corrected styles - Removed redundant styles and ensured consistency in timeline horizontal card snapshot. * refactor: remove computeCssVarsFromTheme usage and related CSS variable logic - Eliminated computeCssVarsFromTheme function calls in timeline components to streamline theme handling. - Removed unused CSS variable styles from timeline-related CSS files. - Updated theme handling logic to only compute CSS variables for custom themes. - Switched minification strategy in Vite config from Terser to ESBuild for production builds. * chore: remove rollup configuration and add integration tests for build output and demo app - Deleted rollup.config.mjs as part of the build process refactor. - Added integration tests to validate build output, including ESM and CJS bundles, TypeScript definitions, and CSS assets. - Created a demo app for end-to-end testing of the built package, including TypeScript checks and successful builds. - Added necessary files for the demo app, including HTML, TypeScript, and Vite configuration. * Update Vite configuration for demo app and main project - Changed server port to 5555 in demo app's vite.config.ts to match Playwright config and added strictPort option to fail if the port is already in use. - Updated optimizeDeps in demo app's vite.config.ts to exclude 'react-chrono' from pre-bundling. - Modified rollupOptions in main project's vite.config.mts to include additional conditions for external dependencies, allowing for scoped packages of 'react', 'react-dom', and 'styled-components'. * feat: remeasure card size on textDensity changes for improved layout * feat: add borderless variant to timeline card and improve title responsiveness * refactor: update popover positioning logic and enhance timeline card styles * Update snapshots for timeline components and adjust Vitest configuration - Updated snapshot files for timeline card content, horizontal card, item title, and vertical item to reflect changes in class names and structure. - Added title attributes to timeline item title components for better accessibility. - Modified Vitest configuration to exclude specific integration tests that require a build/setup, ensuring a cleaner test run. * refactor: improve list and popover styles for better layout and responsiveness * updated packages fixed integration tests * feat: add v3.0 blog post, enhance integration tests for Vanilla Extract CSS - Create comprehensive v3.0 blog post (BLOG_V3.md) documenting all new features - Add DarkModeConfig interface in TimelineConfig.ts for better type organization - Update integration tests to validate Vanilla Extract CSS bundling and application - Add CSS verification tests checking for design tokens and hash-based class names - Configure static CSS filename (style.css) for consistent imports - Add CSS export to package.json for proper module resolution - Update demo app to explicitly import Vanilla Extract styles - Enhance integration test documentation with Vanilla Extract specifics * upgraded all packages * fix kitchen sink page layout * removed unused modules * chore: remove unused dependencies and cleanup build config - Remove styled-components and related packages (fully migrated to Vanilla Extract) - Remove Husky, lint-staged, and git hook automation - Remove unused dev dependencies (c8, intersection-observer, semver, etc.) - Update package size limits (110KB -> 250KB) - Clean up stylelint and build configurations - Remove console.log debug statements from production code - Add ESLint rule for unused vars with underscore ignore pattern * removing references to playwright as we will bring it back in the next minor release * updated the readme to make some sections terser * minor updates to the readme (removed the use case section) * removed deepscan badge as we are not using it anymore * updated readme and made the why section a little terser * add blank line for improved readability in README * Update README.md --------- Co-authored-by: githubprojectsprabhu <githubprojectsprabhu@gmail.com> Co-authored-by: Claude <noreply@anthropic.com> | 1 year ago | |
React Chrono v3.0 (#554) * refactor: enhance React hooks performance and modularity - Optimize 14 hooks with performance improvements (memoization, RAF throttling, stable callbacks) - Split large useTimelineNavigation into focused, composable hooks - Add comprehensive shared utilities for common hook patterns - Enhance useBackground with multi-format color support - Extend useEscapeKey to support multiple keys and modifiers - Generalize useMeasureHeight to measure any DOM property - Add device detection and viewport info to useWindowSize - Maintain backward compatibility throughout all changes - Fix all test failures and add comprehensive test coverage * refactor: improve toolbar UX with flex-wrap layout and enhanced styling • Fix toolbar overflow by implementing logical control grouping (NavigationGroup, SearchGroup, ActionGroup) • Enhance button sizes and spacing - navigation buttons 28px → 36px, improved touch targets • Add proper flex-wrap behavior to prevent cutoff, controls wrap to next line intelligently • Improve accessibility with keyboard navigation, focus states, and ARIA labels • Fix search input colors for dark mode, remove unwanted hover backgrounds • Update popover buttons to match navigation button dimensions and styling • Add responsive design improvements with better mobile layout * fix: improve search focus and dark mode text colors - Fix search input losing focus while typing by preventing aggressive refocus - Add smart auto-focus with 100ms delay for first search, 400ms for subsequent - Enhance dark mode text colors with proper theme detection fallbacks - Add blur prevention to maintain search focus during timeline navigation - Improve placeholder and autofill colors for better contrast in both themes * updated configs for eslint, tsconfig, prettier major ux fixes and bug fixes * recreted pnpm.lock * fixed test cases * feat: add fullscreen functionality with consistent button sizing and UX improvements - Add fullscreen button component with proper theming and accessibility - Implement cross-browser fullscreen hook with comprehensive API support - Integrate fullscreen control into timeline toolbar - Fix button dimensions to match standard 36px toolbar buttons - Enhance search focus behavior and text color contrast in dark mode - Improve card content layout with better read-more functionality - Update popover styling and remove unnecessary margins - Add comprehensive test coverage for fullscreen components * feat: improve slideshow UX with proper card scrolling and link-style read more - Add vertical timeline scrolling during slideshow to keep cards visible - Centralize slideshow scroll logic in timeline.tsx for consistency - Convert read more button to link appearance (underlined text) - Remove button-style background, borders and shadows from read more - Fix slideshow card focus issues across all timeline modes * feat: migrate from Cypress to Playwright for E2E testing - Replace Cypress with Playwright for improved cross-browser support - Add comprehensive test configurations for E2E and component testing - Implement advanced Playwright features (trace viewer, parallel execution) - Support WebKit browsers and mobile device emulation - Add GitHub Actions workflow with matrix builds and sharding - Update .gitignore to exclude Playwright test artifacts - Remove Cypress dependency and replace test scripts - Add TypeScript fixtures and helpers for test reusability * feat: add comprehensive E2E test coverage for all timeline features - Add timeline-accessibility.spec.ts: keyboard navigation, ARIA attributes, screen reader support, focus management, color contrast, and motion accessibility - Add timeline-advanced-features.spec.ts: slideshow functionality, fullscreen controls, quick jump navigation, dark mode toggle, dynamic theme switching, responsive breakpoints, custom content, and dynamic loading - Add timeline-cardless-nested.spec.ts: cardless timeline modes, nested timeline structures, alternating nested layouts, and complex interaction handling - Add timeline-media.spec.ts: media-rich timelines, image/video content, YouTube integration, media loading states, error handling, and media settings configuration - Add timeline-navigation-controls.spec.ts: navigation buttons, timeline item selection, toolbar controls, scroll-based navigation, touch/mobile interactions, search filtering, and position navigation - Add timeline-performance.spec.ts: load performance testing, interaction responsiveness, memory usage monitoring, media loading optimization, animation performance, resource loading, stress testing, and performance monitoring - Add timeline-theme-responsive.spec.ts: theme switching, dynamic theme configuration, dark mode support, responsive design across viewports, breakpoint behavior, high DPI support, print media, and color scheme preferences - Enhance timeline-horizontal.spec.ts: add media content testing, slideshow functionality, and theme toggle support Covers all timeline modes (horizontal, vertical, alternating), advanced features, accessibility compliance, performance optimization, and responsive behavior across 3050+ lines of comprehensive test coverage. * - Add comprehensive theme validation tests with edge case coverage │ │ - Test theme property validation, merging, consistency, and performance │ │ - Add fullscreen control component tests with proper mocking │ │ - Create comprehensive toolbar interaction and accessibility tests │ │ - Fix styled-components prop filtering with transient props │ │ - Enhance hex color validation to support 3-character formats │ │ - Update theme utility tests with proper size assertions │ │ - Improve test reliability and maintainability * - Add new Technology Evolution Timeline showcasing 53+ years of tech history - Implement complete dark mode theme with blue, amber, white color scheme - Add all 15+ dark mode properties for comprehensive theme customization - Update README with enhanced documentation: - Add fullscreen functionality section with cross-browser support details - Expand development commands with comprehensive pnpm script documentation - Update testing framework section with Playwright E2E and component testing - Enhance features list with search, fullscreen, and accessibility improvements - Integrate new demo into navigation with featured highlighting - Create adaptive theme that works seamlessly in both light and dark modes - Include proper dark mode props (darkMode, enableDarkToggle, onThemeChange) * fix(tests): resolve Playwright test failures and optimize browser configuration - Fix CSS selector mismatches in timeline tests by updating selectors to match actual DOM structure - Replace .rc-card-title with [data-class=""] or direct element searches - Replace .rc-card-subtitle with .card-sub-title - Replace .rc-card-text with .card-description - Remove unnecessary .timeline-card-content wrapper selectors - Optimize Playwright configuration for better performance: - Reduce browser matrix from 7 to 1 (chromium only for now, others commented) - Improve parallelization: 50% CPU cores locally, 2 workers on CI - Reduce total test executions from ~1,085 to ~155 - Add split context architecture for performance optimization: - Create separate contexts for Navigation, Theme, Media, and Layout - Add MigrationContextProvider for backward compatibility - Update components to use split contexts while maintaining legacy support - Add useFocusManager hook for improved focus handling - Update test utilities: - Enhance customRender with TestWrapper integration - Add efficient comparison utilities for props - Fix timeline-card-content test setup * trigger deploy * fixed the lock file * removing cypress as we are moving over to playwright * regen lock file * fix pnpm versions on workflows * fix pnpm workflow * fix lock version * Update pnpm lockfile version and streamline Playwright workflow - Downgrade lockfileVersion from '10.0' to '9.0' for compatibility. - Modify Playwright workflow to remove frozen lockfile option during dependency installation for improved flexibility. - Update context providers to unify timeline context management, enhancing performance and maintainability. - Introduce debug logging in timeline component for better visibility during updates. * Refactor timeline components to unify context management and enhance visibility - Replace GlobalContext with useTimelineContext in multiple components for improved context management. - Update visibility logic in Chrono component for better handling of timeline item visibility based on mode. - Adjust styles in timeline components to support new layout requirements and improve responsiveness. - Enhance timeline card functionality with focus management for active items. - Update tests to reflect changes in component structure and context usage. * Update Playwright workflow to remove Firefox from browser matrix - Modify Playwright workflow to streamline browser testing by removing Firefox from the matrix, retaining only Chromium and WebKit. - This change aims to simplify the testing process and focus on the most relevant browsers for the project. * Enhance timeline navigation and scrolling experience - Refactor timeline component navigation to improve focus management and predictive centering during item transitions. - Update scrolling behavior with smoother animations and improved easing functions for both horizontal and vertical modes. - Introduce state tracking for keyboard and toolbar navigation to enhance accessibility. - Adjust styles for better focus visibility and user experience during timeline interactions. - Sync active item index with external updates for consistent navigation behavior. * Enhance focus management and accessibility in timeline components - Refactor timeline navigation to improve keyboard and toolbar navigation states. - Update focus styles to show outlines only during keyboard navigation, enhancing accessibility. - Streamline focus handling in timeline points and card content for better user experience. - Adjust scrolling behavior to ensure elements are focused correctly during navigation. - Improve code readability by consolidating focus-related logic and removing unnecessary comments. * Refactor timeline components for improved visibility and focus management - Simplify visibility logic in the Chrono component to ensure all items are always visible in horizontal modes. - Enhance focus management in horizontal timeline components to ensure active items are correctly focused during navigation. - Update context synchronization for showAllCardsHorizontal to improve responsiveness to mode changes. - Adjust styles to ensure timeline points are always visible and highlight active cards in horizontal_all mode. - Streamline code for better readability and maintainability across timeline components. * Refactor context management and update dependencies for timeline components - Replace legacy GlobalContext with TimelineContextProvider to streamline context usage across components. - Remove deprecated DynamicContext and related hooks to simplify context structure. - Update package dependencies in package.json for improved compatibility and performance. - Enhance focus management in timeline navigation hooks to ensure better accessibility during item transitions. - Clean up unused context files and improve overall code organization for maintainability. * Refactor timeline components for improved focus management and accessibility - Update focus handling in the Timeline component to prioritize card containers in horizontal modes. - Enhance styling for horizontal timeline cards to support new class variations. - Adjust navigation hooks to streamline focus management and ensure better accessibility during item transitions. - Introduce unique IDs for timeline items to improve element targeting during navigation. * Add configuration files and enhance project structure for improved development experience - Introduce .editorconfig, .eslintrc.cjs, .npmignore, and .npmrc for consistent coding standards and dependency management. - Create migration guide (MIGRATION.md) to outline changes for library modernization. - Update package.json scripts for better build and development processes, including new commands for Ladle and site preview. - Refactor TypeScript configuration (tsconfig.json) for stricter type checking and improved module resolution. - Set up CI workflows for automated testing, release, and size limit checks. - Add Ladle configuration for component previews and enhance timeline component tests for better accessibility. - Update Vite configuration to support library mode and improve build outputs. * Update CI and release workflows to use Node.js version 22 and remove deprecated publish step * Implement migration to vanilla-extract for styling and enhance ESLint configuration - Migrate styled-components to vanilla-extract across various components for improved performance and maintainability. - Introduce a new ESLint rule to restrict the use of styled-components, encouraging the use of vanilla-extract instead. - Update package.json to include new dependencies and adjust build configurations. - Add a migration status document to track progress on the transition to vanilla-extract. - Refactor multiple components to utilize the new CSS modules, ensuring consistent styling and improved accessibility. * Refactor timeline components and styles for improved maintainability and accessibility - Update CSS styles to utilize centralized variables for colors and z-index values across timeline components. - Enhance the Timeline component to accept a customizable height, improving layout flexibility. - Refactor TimelineView props to enforce required fields and streamline default values. - Adjust various components to ensure consistent styling and accessibility improvements. - Update snapshot tests to reflect changes in component structure and styling. * Enhance timeline component styles and functionality - Introduce a customizable height property for the Timeline component, allowing for flexible layouts. - Update styling logic to conditionally apply flex properties based on the provided height. - Remove unnecessary icon rotation in non-horizontal modes for a more consistent user experience. - Adjust snapshot tests to reflect changes in button class names and ensure accurate rendering. * Enhance timeline components with improved styling and focus management - Add custom scrollbar color to align with theme primary color for better visual consistency. - Allow dynamic alignment for timeline card titles based on props for improved layout flexibility. - Implement focus checks in navigation hooks to prevent actions when the component is not focused, enhancing accessibility and user experience. * feat(toolbar): flip to Vanilla Extract by default and remove styled-components usage; adjust sprinkles container props and fix popover recipe arg; add optional className props to ContentFooter * chore(toolbar): remove styled-components toolbar.styles.ts after VE flip * refactor(timeline): enhance styling and accessibility features - Update timeline component styles for improved visual consistency and user experience. - Adjust flex properties and heights for better layout flexibility in vertical and horizontal modes. - Implement focus management enhancements to ensure accessibility during item interactions. - Introduce a new MeasuredItem component for dynamic height measurement in vertical timelines. - Normalize toolbar button styles for a cohesive design across the application. * feat(timeline): enhance timeline UX with sticky toolbar, continuous line, and improved theming - Make timeline toolbar sticky using position: sticky instead of absolute/fixed - Fix broken timeline line by implementing continuous line with gradient effects - Improve date positioning in vertical alternating mode with proper padding - Enhance dark theme propagation across all Vanilla Extract components - Add comprehensive CSS custom properties for consistent theming - Update theme-bridge to automatically detect and handle dark mode - Ensure timeline points appear above continuous line with proper z-index - Add scroll container adjustments for sticky toolbar compatibility - Maintain all existing functionality while improving visual design * feat: enhance text overlay with minimize/maximize controls and fix alternating layout - Add minimize/maximize functionality for text overlay mode with smooth transitions - Improve text overlay positioning with better styling (backdrop blur, shadows, borders) - Fix vertical alternating mode layout by removing incorrect height: 0 for text overlay - Add isDarkMode support throughout timeline components for proper theming - Enhance visual styling with hover effects and improved readability * fix(types): resolve TypeScript strict mode errors across components - Add null safety checks and default values for optional props - Fix undefined/null handling in context providers and hooks - Update component prop types to handle strict mode requirements - Standardize callback prop handling with fallback functions - Fix type assertions and remove unsafe any types * refactor(config): update vanilla-extract plugin identifiers for environment-specific behavior - Modify vanilla-extract plugin configurations in Playwright, Vite, and Vitest to use environment-specific identifiers for better debugging and production builds. - Enhance CSS styles in popover and timeline components to utilize global styles and improve responsiveness. - Refactor toolbar styles to streamline child alignment and layout adjustments, ensuring consistent design across different screen sizes. * feat: complete migration from styled-components to vanilla-extract BREAKING: Remove styled-components dependency entirely - Replace all styled-components with vanilla-extract CSS-in-JS - Migrate timeline-point component from styled components to VE classes - Convert video component to use vanilla-extract styles - Deprecate all legacy .styles.ts files with migration notes - Update test files to remove ThemeProvider dependencies - Add minimize/maximize functionality to toolbar components - Preserve all existing functionality and theming capabilities Performance improvements: - Eliminate styled-components runtime overhead - Better CSS optimization through static extraction - Reduced bundle size with more efficient styling system Technical changes: - Replace styled-component imports with vanilla-extract classes - Update JSX to use className with VE recipes and styles - Maintain theme integration through CSS custom properties - Preserve all hover states, accessibility, and animations - Keep backward compatibility for all public APIs Testing: - All 395 tests pass with no regressions - Build succeeds without styled-components dependencies - Code quality maintained (ESLint, Prettier clean) * fix: resolve nested timeline rendering and icon positioning issues - Fix nested timeline visibility by enhancing wrapper styles - Add proper flex centering for timeline point icons - Improve icon sizing and positioning in timeline shapes - Fix CSS syntax error in visibility overrides - Ensure nested timeline items display correctly with proper spacing - Add icon-specific styles for images and SVGs - Counter-rotate icons inside diamond shapes for proper orientation * refactor: remove unused style files post vanilla-extract migration - Remove all .styles.ts and .styles.tsx files (replaced by .css.ts) - Remove legacy CSS files (*-legacy.css.ts) - Remove backup files (.bak, .backup) - Clean up 1806 lines of obsolete styling code * refactor: remove unused styles and consolidate CSS architecture - Remove 10 completely unused CSS files (3,055 lines) - Clean up 88 unused exports from timeline.css.ts - Consolidate toolbar styles into single file - Remove legacy .styles.ts files from elements/ - Improve styling architecture maintainability Files removed: - timeline-advanced.css.ts (476 lines) - timeline-main.css.ts (354 lines) - timeline-system-v2.css.ts (560 lines) - timeline-toolbar-ve.css.ts (404 lines) - toolbar-legacy.css.ts (283 lines) - toolbar-system-v2.css.ts (536 lines) - toolbar-system.css.ts (443 lines) - Plus 3 small .styles.ts files * chore: remove unused configuration files and documentation - Remove webpack.config.js (replaced by Vite for builds) - Remove .eslintrc.cjs (empty, using eslint.config.mjs) - Remove VE_MIGRATION_STATUS.md (completed migration tracking) - Remove open_issues_last_1_year.json (6MB GitHub export file) - Update vitest.config.mts to remove webpack.config.js exclusion * feat: enhance timeline components with improved UI controls and nested timeline rendering - Add text overlay minimize/maximize controls with professional icons - Implement card-based nested timeline rendering with center connecting line - Remove timeline points from nested timelines for cleaner visual design - Fix timeline point visibility and positioning across all modes - Improve button styling with consistent hover/active states throughout - Enhance mobile responsiveness for timeline controls and cards - Add comprehensive test coverage for timeline point visibility controls * fix: implement proper responsive breakpoint behavior for vertical alternating mode - Replace hardcoded isMobile detection based on mode with context-based responsive detection - VERTICAL_ALTERNATING mode now respects enableBreakPoint and responsiveBreakPoint props - Timeline automatically switches from alternating to stacked layout below breakpoint threshold - Maintains backward compatibility while enabling proper mobile-responsive behavior - Fixes previously ignored responsive breakpoint configuration (default: 1024px) * refactor: replace conditional prop spreading with pickDefined utility - Replace verbose `{...(condition ? { prop: value } : {})}` pattern with clean `{...pickDefined({ prop: value })}` utility - Add propUtils.ts with reusable prop handling utilities - Apply consistent pattern across 11+ component files - Remove unused text maximize/minimize icons, replace with plus/minus - Add dark mode theme class application - Memoize styles in nested timeline components for performance - Maintain TypeScript strict mode compatibility * - Replace verbose `{...(condition ? { prop: value } : {})}` pattern with clean `{...pickDefined({ prop: value })}` utility * feat: enhance horizontal timeline with smaller points and improved structure - Reduce timeline point size from 2rem to 1.5rem for better visual balance - Add memoized timeline point props similar to vertical timeline implementation - Improve timeline card structure with cleaner section organization - Fix visibility logic for horizontal_all mode to properly show all cards - Apply consistent code formatting across all components - Update test snapshots to reflect structural changes * - Improve font color handling in both normal and text overlay modes - Add proper dark mode support with computeCssVarsFromTheme integration - Fix content header to pass color props to TitleMemo and SubTitleMemo - Update text-or-content component with CSS variable fallbacks - Enhance text overlay ContentDisplay with proper color theming - Apply theme CSS variables to timeline card wrapper and points - Fix timeline card content wrapper missing dark mode support - Update details-text component to use CSS variables for backgrounds - Improve read more logic to be context-aware and robust - Use pickDefined utility for proper TypeScript optional props handling - Fix failing test to match new CSS variable implementation - Ensure proper contrast and readability across all timeline modes * fix: improve popover positioning and menu item UX - Add smart horizontal positioning to keep popovers within timeline container bounds - Implement dynamic position calculation (left/right/center) based on available space - Reduce menu item text sizes for better visual hierarchy - Enhance hover effects with subtle animations and improved spacing * refactor: modernize icon components and migrate styles to vanilla-extract - Add React imports and proper TypeScript typing to all icon components - Replace styled-components with vanilla-extract CSS modules - Improve search controls with consistent button styling - Fix timeline fullscreen mode theme support - Update demo app styles from styled-components to vanilla-extract - Enhance dynamic item loading behavior to focus on new items - Standardize icon component naming and test IDs * fix: resolve slideshow and keyboard navigation issues with comprehensive improvements - Fix double increment bug in slideshow progression causing skipped items - Resolve circular useEffect loop in main component state synchronization - Unify keyboard and slideshow navigation pathways for consistency - Add error boundary for crash prevention and better UX - Add performance optimizations with throttled scroll handlers - Add prop validation and memoized icon components - Extract slideItemDuration prop and fix timer initialization - Improve TypeScript types and remove any usage where possible * fix: resolve slideshow media deadlock and standardize icon dimensions - Fix slideshow getting stuck on video elements by resuming when video pauses/ends - Prevent slideshow from auto-starting on component render - Standardize icon sizing across components (16px toolbar, 20px buttons, 24px controls) - Add IconWrapper component and base styles for consistent icon rendering - Update MediaState interface to include 'ended' property for video completion - Remove inconsistent Feather CSS classes in favor of standardized inline styles 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> * feat: enhance accessibility and fix navigation issues - Add proper ARIA labels and roles to timeline components - Fix keyboard navigation at first/last cards with improved focus management - Reduce scroll duration from 1200ms to 600ms for better responsiveness - Fix inverted textDensity mapping (compactText now correctly maps to LOW) - Add titles to popover buttons for better accessibility - Fix custom icon z-index to prevent timeline overlap - Disable default icon bounce animations in toolbar - Fix navigation using items.length instead of itemsMap.size - Add comprehensive accessibility documentation to README - Update keyboard navigation docs with Home/End key support * feat: add light and dark theme implementations with extensive design tokens - Introduced `themes.css.ts` for defining light and dark themes using Vanilla Extract. - Added comprehensive design tokens for colors, spacing, typography, shadows, and more. - Created TypeScript definitions in `types.ts` for design system components and tokens. - Configured TypeScript build settings in `tsconfig.build.json` for type declaration generation. - Updated main `tsconfig.json` to support new paths and improved type declarations. - Enhanced Vite configuration to include visualizer for production builds and improved minification settings. * feat: implement sticky toolbar functionality across timeline components * chore: update Node.js version to 22.x and pnpm version to 10.15.1 across workflows; improve caching strategy * feat: add stylelint configuration and implement sticky toolbar feature in timeline components * feat: Add Google Fonts integration with FontProvider and utility functions - Implemented FontProvider component for loading and applying Google Fonts. - Created google-fonts utility module for managing font configurations and loading. - Added index file for exporting font utilities and components. - Updated timeline components to utilize new font features. - Enhanced button styles in fullscreen and timeline controls for better UX. - Refactored ContentDisplay component to use CSS classes for styling. - Improved timeline scrolling behavior by disabling auto-navigation during keyboard navigation. - Added responsive font size adjustments and utility styles for typography. - Updated theme popover z-index for better layering. - Introduced TypeScript configuration for development environment. - Enhanced Vite configuration for improved development experience. * feat: Integrate Google Fonts support across components and update typography styles * Refactor theme styles and improve code formatting - Updated spacing, font sizes, and border radius definitions in light and dark themes for consistency. - Enhanced semantic color definitions for better readability. - Improved formatting of the code for better clarity and maintainability. - Refactored prop migration utility functions for better readability and structure. - Updated validation functions to improve error messaging and code clarity. - Cleaned up throttle and debounce utility functions for consistency in formatting. * refactor: update timeline test locators and improve assertions for better clarity and accuracy * fix: adjust performance test timeouts and improve compatibility for Firefox * feat: Add customizable toolbar search configuration and position - Introduced `toolbarSearchConfig` to allow customization of search input dimensions in the timeline toolbar. - Added support for `toolbarPosition` to specify the toolbar's placement (top or bottom). - Enhanced the `GlobalContext` and `TimelineContextProvider` to handle new toolbar configurations. - Updated CSS styles for responsive search input handling. - Modified demo components to showcase the new toolbar search features. - Ensured backward compatibility with existing configurations. * refactor: Improve list item layout and styles for better responsiveness and clarity * Add comprehensive tests for timeline props and related test data - Created a new test file for timeline props with various display, navigation, slideshow, theme, content, media, scrollable, responsive, and toolbar props tests. - Added test data for timeline items and props to facilitate testing. - Introduced a script to run tests in different modes and browsers. * feat: Complete demo site redesign with modern UX and full-width layout - Add comprehensive demo site redesign with modern header, footer, and navigation - Implement Tailwind CSS v3 with proper PostCSS configuration - Create responsive sidebar navigation with categorized demo sections - Add HeroSection with gradient background and feature highlights - Fix full-width layout issues by removing conflicting CSS constraints - Integrate Google Fonts (Inter and Plus Jakarta Sans) for better typography - Resolve router navigation issues by removing conditional rendering - Ensure cross-browser compatibility with proper CSS prefixes - Update all demo pages to use consistent DemoPageLayout wrapper - Add proper responsive design for mobile and desktop experiences * feat: Enhance toolbar search configuration and update documentation * feat: Implement internationalization support for timeline component - Added comprehensive internationalization configuration to support multiple languages and text customization. - Introduced `i18n` prop in timeline components for managing user-facing text. - Created a new `useI18n` hook for handling text retrieval and interpolation. - Developed a text resolver utility to manage legacy and new text formats seamlessly. - Updated documentation to include internationalization guidelines and examples. - Enhanced demo components to showcase internationalization features. * feat: Expand internationalization support with new configuration options - Added `i18n` and `darkMode` properties to the props reference for enhanced configuration. - Introduced detailed interfaces for `I18nConfig` and `DarkModeConfig` to support multi-language and dark mode features. - Updated documentation to reflect new internationalization capabilities and examples. - Implemented tests to ensure proper integration of i18n features and fallback mechanisms. * fix: Adjust styles for timeline and popover components for better layout and alignmen * feat: Add Playwright testing workflow and ESLint rule for unused variables - Introduced a new Playwright testing workflow to automate browser testing on push and pull request events. - Added ESLint rule for `no-unused-vars` to enforce cleaner code practices. - Updated various components and styles for improved layout and responsiveness. - Refactored prop types to enhance clarity and maintainability across components. * upgrade packages * upgraded tailwind from 3 to 4 * feat(PopOver): update portal container for fullscreen support - Added logic to dynamically set the portal container to the current fullscreen element or fallback to document body. - Implemented event listeners for fullscreen change events to update the portal container accordingly. fix(timeline-card-media): update snapshot with border style - Added border style to video element in timeline card media snapshot. fix(timeline-horizontal-card): update snapshot with corrected styles - Removed redundant styles and ensured consistency in timeline horizontal card snapshot. * refactor: remove computeCssVarsFromTheme usage and related CSS variable logic - Eliminated computeCssVarsFromTheme function calls in timeline components to streamline theme handling. - Removed unused CSS variable styles from timeline-related CSS files. - Updated theme handling logic to only compute CSS variables for custom themes. - Switched minification strategy in Vite config from Terser to ESBuild for production builds. * chore: remove rollup configuration and add integration tests for build output and demo app - Deleted rollup.config.mjs as part of the build process refactor. - Added integration tests to validate build output, including ESM and CJS bundles, TypeScript definitions, and CSS assets. - Created a demo app for end-to-end testing of the built package, including TypeScript checks and successful builds. - Added necessary files for the demo app, including HTML, TypeScript, and Vite configuration. * Update Vite configuration for demo app and main project - Changed server port to 5555 in demo app's vite.config.ts to match Playwright config and added strictPort option to fail if the port is already in use. - Updated optimizeDeps in demo app's vite.config.ts to exclude 'react-chrono' from pre-bundling. - Modified rollupOptions in main project's vite.config.mts to include additional conditions for external dependencies, allowing for scoped packages of 'react', 'react-dom', and 'styled-components'. * feat: remeasure card size on textDensity changes for improved layout * feat: add borderless variant to timeline card and improve title responsiveness * refactor: update popover positioning logic and enhance timeline card styles * Update snapshots for timeline components and adjust Vitest configuration - Updated snapshot files for timeline card content, horizontal card, item title, and vertical item to reflect changes in class names and structure. - Added title attributes to timeline item title components for better accessibility. - Modified Vitest configuration to exclude specific integration tests that require a build/setup, ensuring a cleaner test run. * refactor: improve list and popover styles for better layout and responsiveness * updated packages fixed integration tests * feat: add v3.0 blog post, enhance integration tests for Vanilla Extract CSS - Create comprehensive v3.0 blog post (BLOG_V3.md) documenting all new features - Add DarkModeConfig interface in TimelineConfig.ts for better type organization - Update integration tests to validate Vanilla Extract CSS bundling and application - Add CSS verification tests checking for design tokens and hash-based class names - Configure static CSS filename (style.css) for consistent imports - Add CSS export to package.json for proper module resolution - Update demo app to explicitly import Vanilla Extract styles - Enhance integration test documentation with Vanilla Extract specifics * upgraded all packages * fix kitchen sink page layout * removed unused modules * chore: remove unused dependencies and cleanup build config - Remove styled-components and related packages (fully migrated to Vanilla Extract) - Remove Husky, lint-staged, and git hook automation - Remove unused dev dependencies (c8, intersection-observer, semver, etc.) - Update package size limits (110KB -> 250KB) - Clean up stylelint and build configurations - Remove console.log debug statements from production code - Add ESLint rule for unused vars with underscore ignore pattern * removing references to playwright as we will bring it back in the next minor release * updated the readme to make some sections terser * minor updates to the readme (removed the use case section) * removed deepscan badge as we are not using it anymore * updated readme and made the why section a little terser * add blank line for improved readability in README * Update README.md --------- Co-authored-by: githubprojectsprabhu <githubprojectsprabhu@gmail.com> Co-authored-by: Claude <noreply@anthropic.com> | 1 year ago | |
chore: enhance TypeScript configuration and Storybook setup - Added a new path alias for 'src/*' in tsconfig.json to simplify imports. - Updated Storybook configuration to include tsconfig-paths for better path resolution. - Introduced a new cssesc-wrapper.js file to streamline CSS escaping functionality. | 11 months ago |
The Ultimate Timeline Component for React Applications
Build stunning, interactive timelines with rich media support, accessibility-first design, and comprehensive customization options
Table of Contents
Quick Start
Timeline Modes
Features
API & Documentation
Quick Start
⚡ Get started in 30 seconds
Installation
# Using npm
npm install react-chrono
# Using yarn
yarn add react-chrono
# Using bun (recommended)
bun add react-chrono
Requirements: React 18.2+ or 19+ | Node.js 22+ | TypeScript 4.0+ (optional) | Modern browsers
Basic Usage
Minimal Setup - Your First Timeline
import { Chrono } from 'react-chrono';
const items = [
{ title: 'May 1940', cardTitle: 'Dunkirk', cardDetailedText: 'Allied evacuation from France' },
{ title: 'June 1944', cardTitle: 'D-Day', cardDetailedText: 'Normandy invasion begins' }
];
<Chrono items={items} />
Result Preview:

Common Configurations
Horizontal Timeline with Custom Theme
<Chrono
items={items}
mode="horizontal"
theme={{ primary: '#0079e6', cardBgColor: '#f5f5f5' }}
/>
Vertical Timeline with Media
const items = [
{
title: 'January 2024',
cardTitle: 'Product Launch',
cardDetailedText: 'Released version 3.0 with new features',
media: {
type: 'IMAGE',
source: { url: 'https://example.com/launch.jpg' },
name: 'Product launch event'
}
}
];
<Chrono items={items} mode="vertical" />
Alternating Timeline with Slideshow
<Chrono
items={items}
mode="alternating"
animation={{
slideshow: {
enabled: true,
duration: 3000,
type: 'fade'
}
}}
/>
Advanced Configuration with Grouped API ✨
The new grouped API organizes configuration into logical sections:
<Chrono
items={items}
mode="alternating"
layout={{
cardWidth: 450,
cardHeight: 'auto', // Automatic sizing based on content
responsive: { enabled: true, breakpoint: 768 }
}}
content={{
alignment: {
horizontal: 'center',
vertical: 'center'
}
}}
interaction={{
keyboardNavigation: true,
pointClick: true,
autoScroll: true
}}
display={{
borderless: false,
toolbar: { enabled: true, sticky: true }
}}
animation={{
slideshow: { enabled: true, duration: 4000, type: 'fade' }
}}
theme={{
primary: '#0079e6',
cardBgColor: '#ffffff',
cardTitleColor: '#1f2937'
}}
/>
💡 Try it live: Browse interactive examples in Storybook
Visual Examples
See React Chrono in action
|
Vertical Mode Scroll-friendly chronological flow
|
Alternating Mode Cards alternate left and right
|
|
Dark Mode Complete theme control
|
Horizontal All Dashboard view showing complete timeline
|
|
Timeline with Media Embed YouTube videos and images
|
|
Timeline Modes
React Chrono offers four layout modes, each optimized for specific use cases:
| Mode | Best For | Visual Style |
|---|---|---|
| Vertical | Feeds, news timelines, mobile experiences | Top-to-bottom scroll-friendly layout |
| Horizontal | Historical narratives, project phases | Left-to-right chronological flow |
| Alternating | Portfolios, company milestones | Cards alternate left and right of central axis |
| Horizontal All | Dashboards, comparisons | Shows all timeline items at once |
Use Case Guide
📱 Mobile-First Content → Use Vertical Mode
Perfect for feeds, news timelines, and mobile experiences where scrolling is natural.
<Chrono items={items} mode="vertical" />
📊 Historical Narratives → Use Horizontal Mode
Ideal for historical narratives and project phases where the journey matters.
<Chrono items={items} mode="horizontal" />
💼 Portfolios & Milestones → Use Alternating Mode
Great for portfolios and company milestones with balanced visual rhythm.
<Chrono items={items} mode="alternating" />
📈 Dashboards & Comparisons → Use Horizontal All
Perfect for dashboards, comparisons, and seeing the complete picture at once.
<Chrono items={items} mode="horizontal-all" />
Key Features
Rich Media Integration
|
Smart Loading & Performance
|
|
Interactive Features
|
Slideshow Mode Auto-playing presentations with customizable durations, transition effects, and progress indicators. Keyboard Navigation Full accessibility with arrow keys, Home/End for quick jumps, Escape for modals. Real-time Search Instantly highlights matching content across titles, descriptions, and metadata. |
|
Theming & Customization
|
Complete Theme Control
|
|
Internationalization
|
Global Ready
|
|
Advanced Features
|
Nested Timelines Create multi-level narratives where major events contain detailed sub-timelines. Custom Components Embed fully interactive React components within timeline cards. Responsive Design Fundamentally adapts to each device with smart font sizing and spacing. |
|
Essential Props
React Chrono requires minimal configuration to get started:
| Property | Type | Description |
|---|---|---|
items |
TimelineItem[] |
Array of timeline data |
mode |
string |
Layout mode: 'horizontal' | 'vertical' | 'alternating' | 'horizontal-all' |
theme |
Theme |
Customize colors and appearance |
📚 Need complete prop documentation? See our comprehensive Props Reference
Migration from v2 to v3
React Chrono v3.0 maintains full backward compatibility - your existing v2.x code will work without changes. However, we recommend migrating to the new grouped API for better maintainability and IDE support.
Quick Migration
v2.x (still works):
<Chrono
items={items}
cardWidth={400}
disableNavOnKey={false}
borderLessCards={true}
slideShow={true}
slideItemDuration={3000}
mediaHeight={400}
/>
v3.0 (recommended):
<Chrono
items={items}
layout={{ cardWidth: 400 }}
interaction={{ keyboardNavigation: true }}
display={{ borderless: true }}
animation={{
slideshow: {
enabled: true,
duration: 3000
}
}}
media={{ height: 400 }}
/>
Common Prop Mappings
| v2.x Prop | v3.0 Prop |
|---|---|
borderLessCards |
display.borderless |
disableNavOnKey |
interaction.keyboardNavigation (inverted) |
timelinePointDimension |
layout.pointSize |
slideShow |
animation.slideshow.enabled |
slideItemDuration |
animation.slideshow.duration |
mediaHeight |
media.height |
parseDetailsAsHTML |
content.allowHTML |
disableToolbar |
display.toolbar.enabled (inverted) |
What's New in v3.0
- 🎨 Grouped API - Props organized into logical groups (
layout,interaction,content,display,media,animation) - ⚡ Zero-runtime CSS - Migrated to Vanilla Extract for better performance
- 🌐 i18n Support - 60+ configurable text elements
- 🎭 Google Fonts - Per-element font control
- 🖼️ Fullscreen Mode - Cross-browser fullscreen support
- 📌 Sticky Toolbar - Always-accessible controls
🔗 Complete migration guide: Props Reference
What's New in v3.0
🎉 Major updates and improvements
Key Highlights
|
🏗️ Grouped API
Props organized into logical groups ( |
⚡ Performance Complete migration to Vanilla Extract for zero-runtime CSS and improved performance |
🎨 New Features Auto card height, content alignment, Google Fonts, i18n support, fullscreen mode, and more |
📋 Full changelog: See CHANGELOG.md for complete details
🔄 Backward Compatible: All v2.x props remain fully supported with automatic mapping to the new grouped API
Development Setup
Prerequisites
- Node.js 22+
- bun (recommended) or npm
Initial Setup
# Clone the repository
git clone https://github.com/prabhuignoto/react-chrono.git
cd react-chrono
# Install dependencies
bun install
Development Commands
# Start development server with hot reload
bun run dev
# Build for production
bun run build
# Run unit tests
bun test
# Lint and format code
bun run clean
Testing Framework
React Chrono uses a comprehensive testing approach:
- Unit Tests: Vitest with @testing-library/react
Contributing
We welcome contributions! Please see our Contributing Guide for details.
Quick Contribution Checklist
Built With Modern Technologies
|
Core Technologies
|
Development Tools |
Support the Project
Love React Chrono? Help us grow!
⭐ Star on GitHub | 🐦 Follow on Twitter | 🐛 Report Issues
Made with ❤️ by Prabhu Murthy and contributors



