244 Commits
Author SHA1 Message Date
Matt GodboltandClaude 22eb230090 Add UI testing checklist document
- Create TestingTheUi.md with comprehensive UI testing guidelines
- Reorganize Bootstrap5Migration.md to remove duplication and reference the new UI testing document
- Add reference to UI testing document in README.md for developers

The UI testing checklist serves as a permanent resource for testing UI components
when making significant frontend changes, extracted from the Bootstrap migration
testing process.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-04-23 22:20:19 -05:00
Matt Godbolt d52fe19d97 Migration notes 2025-04-23 22:04:41 -05:00
Matt Godbolt 03ea884d14 Fix up settings dialog; also fix some duplicate IDs 2025-04-23 20:47:31 -05:00
Matt GodboltandClaude cf32bda36c Complete Bootstrap 5 migration
- Replace .form-row with .row in theme files
- Remove superfluous custom class usage in template files
- Add logical border properties for better RTL support
- Update migration documentation with completed tasks

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-04-23 15:24:10 -05:00
Matt GodboltandClaude 616b22047e Fix Bootstrap 5 styling issues
- Update to fix all remaining Bootstrap 5 migration issues from the checklist
- Replace .close with .btn-close in CSS with filter: invert(100%) for dark themes
- Update .badge-pill to .rounded-pill
- Fix TomSelect dropdown styling and sizing for long compiler names
- Fix popular arguments dropdown alignment
- Update compiler selector and true dark theme close buttons
- Update form-row to row in conformance view

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-04-23 14:55:48 -05:00
Matt GodboltandClaude c84690a146 Update Bootstrap5Migration.md with additional test criteria
- Add popular arguments dropdown alignment issue to bugs section
- Add compiler name wrapping issue to bugs section
- Expand final testing checklist with dropdown-specific test sections
- Ensure all previously reported issues are covered in the test plan

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-04-23 11:15:26 -05:00
Matt Godbolt 07c42613d0 Merge remote-tracking branch 'origin/main' into mg/bootstrap5 2025-04-23 10:52:18 -05:00
Matt Godbolt 03fb43066a More library hacking notes (cc @partouf in case I made any obvious blunders) 2025-04-23 10:51:05 -05:00
Matt GodboltandClaude 3999713c7c Update Bootstrap5Migration doc with fixed issues and testing steps
- Mark recently fixed issues as complete
- Add detailed testing steps for runtime tools, emulation features, diff view, and TomSelect styling
- Expand testing plan to cover all the issues we've addressed

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-04-20 12:52:21 -05:00
Matt GodboltandClaude 2121964c25 Fix Bootstrap 5 event handling and modal issues
- Add setElementEventHandler utility to replace jQuery's off().on() pattern
- Update Runtime Tools window's modal event handling to fix settings not saving
- Update Emulation functionality with proper modal initialization
- Fix event listeners in compiler-overrides, alert, libs-widget, and compiler-picker-popup
- Update alert.ts to use new utility for all modal events
- Update Bootstrap5Migration.md with newly identified issues

This fixes the following issues identified during testing:
- Runtime tools window not saving settings
- Emulation functionality not working correctly

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-04-20 11:19:19 -05:00
Matt GodboltandClaude d95e330c18 Fix history modal functionality for Bootstrap 5
The history modal wasn't showing code diffs when radio buttons were clicked
because the event listener for 'shown.bs.modal' was using jQuery's .on() method,
which doesn't work with Bootstrap 5's native DOM events. Fixed by:
1. Using native DOM addEventListener instead of jQuery .on()
2. Also updated the BootstrapUtils.showModal call to use the DOM element
3. Updated migration doc to mark several issues as fixed

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-04-19 22:52:56 -05:00
Matt GodboltandClaude 4a234c96c9 Add modal accessibility investigation to Phase 12 future work
- Note browser warning about aria-hidden and focus management
- Add plan to investigate Bootstrap 5.3's inert attribute support
- Document accessibility improvements as part of future jQuery removal phase

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-04-19 22:34:34 -05:00
Matt GodboltandClaude f31614cfc4 Update Bootstrap5Migration.md with fixes and learnings
- Mark conformance view and Bootstrap 4 jQuery code patterns as fixed
- Add learnings about grid class renaming (.form-row → .row)
- Add notes about preferring CSS selectors for component initialization
- Enhance jQuery Plugin Methods Removal section with more details

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-04-19 21:52:50 -05:00
Matt GodboltandClaude 765433b1bc Update Bootstrap5Migration.md with beta testing feedback
- Add "Bugs to Fix" section listing issues reported during beta testing
- Expand Final Testing Checklist with detailed test cases for reported issues
- Include issues related to: close buttons, history view, dropdown sizing, placeholder text visibility, conformance view functionality, and library menu appearance

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-04-19 16:37:44 -05:00
Matt Godbolt a1a1cd74cc Improve accessibility for Bootstrap 5 migration (Phase 9)
- Update sr-only classes to visually-hidden for Bootstrap 5
- Add aria-live regions for dynamic content (compiler output)
- Add semantic role attributes to improve screen reader experience
- Enhance form controls and buttons with descriptive aria-labels
- Improve description of dynamic UI changes for assistive technology
2025-04-19 13:27:58 -05:00
Matt Godbolt bca0150b42 Update SCSS variables and theming for Bootstrap 5 (Phase 8)
- Add navbar container padding fix for proper alignment
- Review custom SCSS for Bootstrap 5 compatibility
- Verify z-index variables don't conflict with Bootstrap 5
- Update migration document to reflect progress
2025-04-18 18:24:30 -05:00
Matt Godbolt 33662a6b0d Update navbar structure to Bootstrap 5 standards (Phase 7)
- Add container-fluid wrapper for proper responsive behavior
- Update navbar classes and alignment to Bootstrap 5 standards
- Improve spacing for better mobile experience
- Update badge classes from badge-primary to bg-primary
- Organize navigation components with proper spacing
2025-04-18 18:16:40 -05:00
Matt Godbolt edeaa5335f Update form system to Bootstrap 5 standards (Phase 6)
- Replace .checkbox with .form-check pattern
- Update select elements to use .form-select
- Replace .form-group with .mb-3 for spacing
- Update input groups to remove unnecessary wrappers
- Add proper label-input associations for accessibility
- Update textarea elements to use .form-control
2025-04-18 18:07:22 -05:00
Matt Godbolt 043527c487 Move Phase 5 tests to Final Testing Checklist for acceptance criteria 2025-04-18 17:42:13 -05:00
Matt Godbolt 70fa8f63e6 Update Phase 5 component status (Card, Collapse, Button Group) 2025-04-18 17:34:37 -05:00
Matt Godbolt 3bc2a9486f Update Phase 5 status to reflect completed component migrations 2025-04-18 17:32:00 -05:00
Matt Godbolt a215e97f82 Condense and update Bootstrap 5 migration document 2025-04-18 17:29:21 -05:00
Matt GodboltandClaude 756727662b Fix sponsors window styling for Bootstrap 5
The deprecated btn-block class was removed in Bootstrap 5, causing styling
issues in the sponsors window. Fixed by:

1. Using Bootstrap 5's recommended approach of wrapping buttons with d-grid
2. Adding the btn base class to all buttons
3. Using Bootstrap 5's CSS variables for font sizing
4. Adjusting heights for better display of corporate and legendary sponsors

Updated Bootstrap5Migration.md with details about the btn-block removal
and the approach taken to fix the sponsors display.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-04-18 17:22:18 -05:00
Matt GodboltandClaude 5288769106 Fix IDE mode border styling and update migration docs
Temporarily fixes the IDE mode border styling issues by adding
.list-group-flush to minimize the border lines in tree.pug.
Updates the Bootstrap5Migration.md document to note this is a
temporary solution and a more comprehensive redesign should be
considered in a future phase.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-04-18 16:25:35 -05:00
Matt GodboltandClaude 835d179f7c Fix TomSelect dropdown arrows and simplify input groups for Bootstrap 5
This fixes the TomSelect dropdown issues by:
1. Adding custom CSS to restore the dropdown arrow using CSS triangles
2. Removing unnecessary input-group-prepend and input-group-append wrapper divs
   that are no longer needed in Bootstrap 5's input group structure

Also updates the Bootstrap5Migration.md with a comprehensive final testing
checklist and documents the key learnings about input group structure changes.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-04-18 16:08:17 -05:00
Matt GodboltandClaude a3e27bc296 Fix right-aligned dropdown positioning for Bootstrap 5
Replace .dropdown-menu-right with .dropdown-menu-end for proper dropdown
positioning in Bootstrap 5. This fixes the issue where dropdown menus on
the right side of the page were being clipped.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-04-18 14:58:58 -05:00
Matt GodboltandClaude f1ea1360e1 Fix Templates view layout for Bootstrap 5
The Templates view had become very long and thin after migrating to Bootstrap 5.
This fix adds appropriate minimum widths to the template list columns and modal
dialog to ensure proper layout proportions.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-04-18 14:45:54 -05:00
Matt GodboltandClaude daec2e2238 Update Bootstrap5Migration.md to mark font dropdown as fixed
🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-04-18 14:37:15 -05:00
Matt Godbolt c56fa79743 Update Bootstrap5Migration.md to document tooltip conflict fix 2025-04-18 13:58:41 -05:00
Matt Godbolt 99e98c3234 Fix share dialog in Bootstrap 5 migration
- Update event handling to use native DOM event listeners
- Import Modal and Tooltip classes directly
- Properly type and cast modal events
- Add null check for relatedTarget
- Fix tooltip handler in displayTooltip method

This addresses the share dialog issue where links weren't being populated.
2025-04-18 09:06:53 -05:00
Matt GodboltandClaude a34a96c906 Fix sponsors modal error and toast close button
- Remove data-bs-toggle="modal" from sponsors button in index.pug
- Fix toast close button in alert.ts to use BS5 btn-close class
- Update migration documentation with lessons learned
- Add sponsors window styling to known issues list

The sponsors modal error occurred because the button had a toggle attribute
but no matching target. Since the modal content is loaded dynamically via AJAX,
we use our own JavaScript-based modal creation instead of Bootstrap's auto handling.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-04-17 19:08:10 -05:00
Matt GodboltandClaude 5ffc80e6a6 Update Bootstrap 5 migration document with key learnings
- Correct misconceptions about JavaScript initialization requirements
- Add 'Key Learnings From Implementation' section detailing our discoveries
- Document findings about data attributes, close buttons, and tabs
- Clarify that many components work with data attributes alone
- Record lessons learned for future phases of the migration

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-04-17 18:53:45 -05:00
Matt GodboltandClaude 534d85b95b Add TomSelect and IDE mode styling issues to migration document
- Document missing TomSelect dropdown arrows and styling issues
- Document IDE mode border line styling problems
- Update next actions section with these new issues to investigate

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-04-17 18:40:41 -05:00
Matt GodboltandClaude b28e5b76df Fix additional Bootstrap 5 data attributes
- Update data-toggle and data-placement to data-bs-toggle and data-bs-placement in compiler-overrides.ts
- Update documentation to mention data-placement attribute changes
- Document additional fixes made to JavaScript widgets

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-04-17 18:09:16 -05:00
Matt GodboltandClaude 7737df5a02 Fix dialog appearance in Bootstrap 5
- Update close buttons in all modal templates
- Change from Bootstrap 4's .close with &times; to Bootstrap 5's .btn-close
- Fix dialog appearance by using proper Bootstrap 5 button styling
- Update both popups templates and index.pug
- Update Bootstrap migration documentation

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-04-17 18:04:50 -05:00
Matt GodboltandClaude b1021a2b73 Fix tab navigation in Bootstrap 5 modals
- Update data-toggle="tab" to data-bs-toggle="tab" in modal templates
- Fix dialogs to properly switch between tabs without page reloads
- Update migration documentation to reflect fixed issues

This fixes navigation issues where clicking on tabs in dialogs
would cause page reloads instead of switching tabs.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-04-17 17:58:48 -05:00
Matt GodboltandClaude c6312951a3 Improve Bootstrap component instance management
- Add getPopoverInstance, getModalInstance, getDropdownInstance methods to safely access existing component instances
- Add showPopover, hidePopover, showModalIfExists convenience methods for common operations
- Fix incorrect usage of initPopover by properly using getPopoverInstance for operating on existing instances
- Update all code in executor.ts, cfg-view.ts, conformance-view.ts, and compiler-version-info.ts to use instance getters
- Simplify code in cfg-view.ts to eliminate redundant jQuery wrapping

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-04-17 16:37:09 -05:00
Matt GodboltandClaude 3d5bf13cd8 Update dropdown handling in panes to use Bootstrap5 compatibility layer
- Updated tree.ts to use BootstrapUtils for dropdown toggle
- Updated compiler.ts to use BootstrapUtils for hiding/managing dropdowns
- Updated editor.ts to use BootstrapUtils for dropdown toggle
- Updated Bootstrap5Migration.md to mark dropdown handling as complete

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-04-17 15:57:50 -05:00
Matt GodboltandClaude 003e13e77f Update main.ts to use Bootstrap compatibility layer
- Updated main.ts to use BootstrapUtils for modal initialization
- Updated popover initialization in initShortlinkInfoButton
- Updated Bootstrap5Migration.md to mark these tasks as complete

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-04-17 15:21:55 -05:00
Matt GodboltandClaude ec1ffb0701 Phase 4: Update libs-widget to use Bootstrap compatibility layer
- Updated libs-widget.ts to use BootstrapUtils for modal initialization
- Maintained the original pattern of event registration and modal showing
- Updated migration plan to track progress

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-04-17 15:17:15 -05:00
Matt GodboltandClaude cad2dec4cb Phase 4: Update more widget components to use Bootstrap compatibility layer
- Updated site-templates-widget.ts to use BootstrapUtils for modals
- Updated runtime-tools.ts to use BootstrapUtils for modals
- Updated compiler-overrides.ts to use BootstrapUtils for modals
- Updated timing-info-widget.ts to use BootstrapUtils for modals
- Updated history-widget.ts to use BootstrapUtils for modals
- Updated migration plan to track progress

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-04-17 15:07:34 -05:00
Matt GodboltandClaude 2a9b21b573 Phase 4: Update more components to use Bootstrap compatibility layer
- Updated compiler-picker-popup.ts to use BootstrapUtils for modal handling
- Updated load-save.ts to use BootstrapUtils for modal handling
- Updated migration plan to mark Phase 4 progress
- Ensured import order is consistent using the linter

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-04-17 14:58:37 -05:00
Matt GodboltandClaude e2eaadfda3 Phase 4: Begin JavaScript API compatibility layer for Bootstrap 5
- Added bootstrap-utils.ts as a temporary compatibility layer:
  - Clear documentation that this is temporary and will be removed after migration
  - Support for modals, toasts, tooltips, and dropdowns
  - Ensures consistent migration path for Bootstrap 5 JavaScript API changes
- Updated key files to use the compatibility layer:
  - Changed alert.ts to use BootstrapUtils for modals and toasts
  - Changed sharing.ts to use BootstrapUtils for tooltips and dropdowns
- Added plan to remove the compatibility layer in Phase 12 after migration
- Updated migration plan documentation to track progress

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-04-17 14:50:47 -05:00
Matt GodboltandClaude f53ee0c36d Phase 3: Update Bootstrap data attributes
- Changed all data- attributes to use Bootstrap 5 naming convention with bs- prefix:
  - data-toggle → data-bs-toggle
  - data-target → data-bs-target
  - data-dismiss → data-bs-dismiss
- Verified that data-ride and data-spy attributes are not used in the codebase
- Updated migration plan to mark Phase 3 as completed
- Added summary of Phase 3 changes to Current Progress section

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-04-17 14:30:42 -05:00
Matt Godbolt c5acd4eadd Add testing notes to Bootstrap 5 migration plan
- Added 'Notes for Human Testers' sections for Phases 1-4
- Included specific components to check for each phase
- Highlighted key differences and potential issues to watch for
- Provided guidance for thorough testing across the migration
2025-04-17 14:19:52 -05:00
Matt Godbolt 2bbf937742 Bootstrap 5 migration: Phase 2 CSS class updates
- Updated directional utility classes (ml/mr → ms/me)
- Updated floating utility classes (float-left/right → float-start/end)
- Updated badge-pill to rounded-pill
- Updated progress tracking in migration plan

Part of the Bootstrap 5 migration in docs/Bootstrap5Migration.md
2025-04-17 14:16:35 -05:00
Matt Godbolt e14dac7615 Mark Phase 1 of Bootstrap 5 migration as completed 2025-04-17 14:07:49 -05:00
Matt Godbolt a14febce16 Bootstrap 5 migration: Phase 1 dependency updates
- Update Bootstrap from 4.6.2 to 5.3.5
- Replace popper.js with @popperjs/core
- Update Tom Select theme from bootstrap4 to bootstrap5
- Update import statements in main.ts and noscript.ts
- Add workflow requirements in CLAUDE.md

Part of the migration plan in docs/Bootstrap5Migration.md
2025-04-17 14:03:30 -05:00
Matt GodboltandClaude 35ed458127 Add Bootstrap 5 migration plan
Create comprehensive migration plan for Bootstrap 4 to 5.3.5 upgrade.
The plan includes phases for dependency updates, class name changes,
component migration, and thorough testing.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-04-17 13:46:17 -05:00
Matt Godbolt 58fec88694 Add a little more clarity on how libraries work 2025-04-15 10:34:06 -05:00