You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Added
Production Readiness & Enterprise SLA Dashboard (site/src/about/production-readiness.html, site/sitemap.xml):
Published a dedicated Production Readiness & Enterprise SLA documentation dashboard at /docs/about/production-readiness.html.
Added enterprise support SLA tier commitments: Enterprise Tier (99.9% uptime, <1 hr critical response), Team Tier (99.5%, <4 hr response), and Community Tier (best-effort, public issue tracker).
Integrated real-time verified production readiness metrics: 100% test pass rate (37/37 test suites), 0 external runtime dependencies, WCAG 2.2 Level AA accessibility compliance, and MIT open-source licensing.
Published the 14-Point Production Component Quality Checklist standard governing API design, accessibility, multi-platform parity, lifecycle teardown, and security.
Added cross-framework architectural comparison matrix benchmarking Boodoo against Bootstrap 5, Tailwind CSS v3/v4, and Material UI across bundle size, build requirements, SSR safety, and mobile native primitives.
Automated Production Readiness & Sitemap Tests (tests/site-docs.test.mjs, site/sitemap.xml):
Added automated test assertion in tests/site-docs.test.mjs verifying production readiness documentation route presence, HTTPS canonical URL integrity, navigation metadata, and sitemap synchronization.
Integrated esbuild for multi-format JavaScript artifact generation, producing pure ESM (dist/js/boodoo.esm.js), CommonJS (dist/js/boodoo.cjs), and browser UMD (dist/js/boodoo.js) bundles with true .map source maps.
Automated .d.ts TypeScript declaration emission directly to dist/js/boodoo.d.ts upon build completion.
Automated Public API Parity Enforcement (tests/package-smoke.test.mjs):
Added automated test #11 in tests/package-smoke.test.mjs strictly asserting export parity across the 45-symbol public API across source entry (js/boodoo.js), ESM bundle (dist/js/boodoo.esm.js), CommonJS bundle (dist/js/boodoo.cjs), and TypeScript declarations (dist/js/boodoo.d.ts).
Comprehensive Runtime Component Lifecycle Test Suite (tests/components.test.mjs):
Added 282 lines of automated tests verifying:
Auto-init idempotency and re-entry protection (document._boodooAutoInit).
Tooltip native title attribute caching, removal during activation, and restoration on dispose().
WAI-ARIA radio group semantics, aria-checked states, and arrow key navigation for Rating components.
DataTable companion expandable detail row (.data-table-row-detail) preservation during column sorting and comprehensive dispose() listener teardown.
Full lifecycle teardowns across BottomSheet, Carousel, ChipInput, ContextMenu, Sidebar, and DataTable.
Sass & Less Modular Preprocessor Subpath Exports (package.json):
Exposed modular subpath exports for preprocessors (./scss, ./scss/*, ./less, ./less/*), supporting standard package-specifier imports in build tooling without deep relative file paths.
Replaced legacy regex minification with industrial-grade esbuild syntax lowering and identifier mangling.
Reduced production minified bundle dist/js/boodoo.min.js from ~179 KB to ~113 KB (~27.1 KB gzip / ~23.4 KB brotli), achieving a 35% reduction in production transfer footprint.
Updated all performance benchmark tables in README.md, site/src/about/production-readiness.html, and documentation portals.
Unified Late-Load Lifecycle & Data API Architecture (js/src/base-component.js, js/src/*):
Enhanced initDataApi in js/src/base-component.js with SSR-safe checks and fallback when document.readyState === 'loading'.
Migrated 10 late-loaded interactive components (ContextMenu, DataTable, OTP, Rating, ChipInput, ImageCompare, FloatingBar, PasswordMeter, Sidebar, TreeView) to route through initDataApi, providing guaranteed auto-initialization in Single Page Applications, dynamic imports, async script injection, and client-side hydration (Next.js, Astro, Vite).
Refactored js/boodoo.d.ts to use internal declare class declarations paired with a single consolidated named export { ... } block, eliminating duplicate export collisions in TypeScript consumers and bundlers.
Refined React Native component prop interfaces and type definitions in react-native/index.d.ts.
DataTable (js/src/data-table.js): Implemented full dispose() override detaching column header sort listeners, select-all checkbox change listeners, table click and change delegation handlers, and nulling table element references.
ChipInput (js/src/chip-input.js): Implemented dispose() override unbinding input keydown, blur, and container click handlers, nulling element references.
Sidebar (js/src/sidebar.js): Implemented dispose() override removing collapse toggles, backdrop elements, window resize listeners, and resetting body classes.
ContextMenu (js/src/context-menu.js): Implemented dispose() override unbinding contextmenu trigger listeners and document click dismiss handlers; scoped fallback menu resolution (querySelector / closest) with console warning for unresolved targets.
Offcanvas (js/src/offcanvas.js): Cleared pending transition timeouts (_showTimeout) in dispose() and added element existence guards inside emulateTransitionEnd callbacks to prevent modifying disposed instances.
DataTable Detail Row Preservation During Column Sorting (js/src/data-table.js):
Resolved bug where sorting tabular data displaced or orphaned expandable detail rows (.data-table-row-detail). The sorting algorithm now captures companion detail rows and appends them immediately following their parent row during DOM reordering.
Tooltip Original Title Caching & Restoration (js/src/tooltip.js):
Fixed native browser tooltip collision by caching the original title attribute in _originalTitle and stripping title from the DOM element during tooltip activation, then cleanly restoring the attribute upon component dispose().
Rating Component WCAG 2.2 AA Accessibility & Roving Focus (js/src/rating.js):
Fixed missing accessible semantics: added role="radiogroup" to the container, role="radio" and aria-checked to individual stars, and roving tabindex (tabindex="0" on the active star, -1 on inactive stars).
Added full keyboard control supporting ArrowRight / ArrowUp to increment rating and ArrowLeft / ArrowDown to decrement rating with boundary clamping and live event emission.
Fixed unconstrained global shortcut listener that hijacked Ctrl+K/Cmd+K unconditionally on script load. Replaced with instance-level named handlers (_bindShortcut / _unbindShortcut) managed through explicit initialization.
Custom Elements Double-Initialization Prevention (js/src/custom-elements.js):
Added re-entry guard (this._initialized) inside connectedCallback() across custom web components to prevent redundant re-initialization when elements are moved or reattached within the DOM.
Replaced invalid setAttribute('aria-current', null) (which serialized as the string "null", leaving the attribute active) with standard removeAttribute('aria-current').
Global Runtime Auto-Init Idempotency Guard (js/boodoo.js, js/src/base-component.js):
Guarded autoInit() with document._boodooAutoInit to prevent duplicate global document listener registrations when the script bundle is re-evaluated or included multiple times.
Added typeof document.addEventListener === 'function' check in initDataApi for SSR and synthetic test environments.
Screen-Reader Live Region Alert Role (js/src/a11y.js):
Updated a11y.announce assertive announcements to set role="alert" while retaining role="status" for polite announcements, ensuring immediate screen-reader invocation.
Dead Code and Build Artifact Cleanup (js/src/carousel.js, js/boodoo.js):
Removed obsolete empty global click listener in carousel.js and redundant base-component.js import in boodoo.js.
Pruned root stray artifacts (test-out.css.map, scratch/modularize-less.mjs) and untracked generated site/docs/ from git.
Removed committed fallback API credentials, enforcing mandatory CDN_APP_ID and CDN_APP_SECRET environment variables with fail-fast validation in release automation.
CI Least-Privilege Hardening (.github/workflows/ci.yml):
Enforced explicit top-level permissions: { contents: read } across GitHub Actions workflows, adhering to the principle of least privilege for the default GITHUB_TOKEN.
Safe HTML Entity Encoding & Popover XSS Hardening (js/src/util.js, js/src/tooltip.js):
Refactored documentation search modal results from dynamic onclick mutations of window.location.href to semantic, accessible <a> elements with verified relative path attributes.