Commit Graph
234 Commits
Author SHA1 Message Date
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
Patrick Quist 26c6f8eb95 Update SupportedEmulators.md 2025-04-08 18:12:04 +02:00
Stephen HeumannandMatt Godbolt 5a72fa0659 Add support for ORCA/C (#7368)
[ORCA/C](https://github.com/byteworksinc/ORCA-C) is a C compiler that
natively runs on and targets the Apple IIGS. ORCA/C and the programs it
generates can be run on modern Linux systems by using an emulation tool
called [Golden Gate](https://goldengate.gitlab.io).

This adds support for ORCA/C (run via Golden Gate) in Compiler Explorer.
It uses its own assembly format and objdumper (provided by Golden Gate),
so support for those is added. An extra configuration option was also
added to support execution via an emulator, bypassing the usual check
that executables can run natively. Asm docs for the WDC 65C816 processor
were also added.

ORCA/C and Golden Gate are not Free Software, but their rights holders
have given permission for them to be used on Compiler Explorer. Tarballs
for them can be supplied privately. See infra PR:
compiler-explorer/infra#1521

---------

Co-authored-by: Matt Godbolt <matt@godbolt.org>
2025-02-18 10:28:10 -06:00
Mats Jun Larsen bcd6394435 Ensure that content type for formatting requests is JSON (#7327)
Ideally I'd add a middleware or something else that requires JSON, but I
suppose this is fine for now.

cc @dkm
2025-01-29 10:46:56 -06:00
Alex Sweet a0bdab9f13 Set demanglerType=win32 in Windows sample props (#7270) 2025-01-15 06:35:28 +01:00
Ofek a101e2d9f2 Fix MSVC's handling of /link options, fix and modernize some docs (#7260)
<!-- THIS COMMENT IS INVISIBLE IN THE FINAL PR, BUT FEEL FREE TO REMOVE
IT
Thanks for taking the time to improve CE. We really appreciate it.
Before opening the PR, please make sure that the tests & linter pass
their checks,
  by running `make check`.
In the best case scenario, you are also adding tests to back up your
changes,
  but don't sweat it if you don't. We can discuss them at a later date.
Feel free to append your name to the CONTRIBUTORS.md file
Thanks again, we really appreciate this!
-->
2025-01-11 18:16:04 +02:00
Mats Jun Larsen d9093faf18 Replace ts-node with tsx (#7205)
Migrates tooling to TSX (as advised by nodejs) until we are on Node 22
where we can `--watch --experimental-strip-types`
2024-12-10 00:18:46 +09:00
Mats Jun Larsen c256b922f7 Migrate site templates to yaml config (#7189)
Does some winter cleaning on the site-template stuff :)

1. Migrated away from the custom conf format to plain old yaml
2. Made the images and image files match with the name from the yaml
file. (It's not a problem to have spaces in file paths, nor urls so I
don't see why we shouldn't)
3. Updated the relevant documentation

There is a small breakage in the api response for the meta field. It now
returns `{"screenshot_dimensions":{"width":1000,"height":800}}` which I
believe is a lot more useful than
`{"meta.screenshot_dimensions":"1000x800"}`

Besides, I don't believe this endpoint has any third-party consumers
that rely on the metadata since it's a rarely known feature anyways
2024-12-08 00:59:58 +09:00
Ofek Shilon 407e0f9e83 Unhide another word in markdown 2024-10-27 08:40:25 +02:00
Alcaro 910f35e1d8 Unhide secret words (#7026) 2024-10-26 23:23:05 +02:00
goto40 03ce528a0a feat: added ability to receive a base64 with compressed clientstate, #6918 (#6919)
I encountered a problem with large URLs when using the "clientstate" API
with base64 strings: see #6918

* I found that it was quite easy to include this feature, just by
searching for `/clientstate/`.
* I "tested" my feature interactively with `npm run dev` and this
[link](http://localhost:10240/zclientstate/eNq1VduK2zAQ/ZXBhWITJc6lVye7sBT6uIWl9CUOiyJPYm1syUjyZsOSf+/Idm5tWuhD7YCs0cyZM5doXgOL1kqtbJDA/DWQGa0jBkHB1brma6RtIHq9gERW10Y0glTFMYiqMrhCg0pgArlzlU3iGNXg/GAgdBlvYxLFQivHpUITl5mtuErVG6lEUWcIM6mtM8jL23PhAdLw7WAtXV4va4vGw6ByDfBGbzbadnixlWpdYD9Hnh2dDPKqIlDFS6StQLAuwxe48es0Vf51WFYFdzgTBbcW7m6BgpNrpQ2Cy6WFNDiopAHkFBeDlTZ0hlDqkrik6lnLDCojlRtnITG0Du7e8ghegR6Cu/KEN1ztwO0qhLsoVV5EqCFBgCR+wyktM+ADfPHhhsNoCr2eJMhW91z/qdV/OtcfNfpPF/r+obiTROjawYy0Q8lIhb4osjSYeqpfer3xJAE+p6PFyXZ/+ryASIOUkhhM22PS2v8WKYHeawc211uVwE7XILgCX0ejC9jmUuSQyRIo1dmOKiXFJeUjClfZb+ZNFbDUZgcF33lS4ddvD98f7u7jL5RWn56Sui48JsJLMu74fHHzOmJjNmHv2Hv2gX1kn9jnfRcHr50G3rYJviRJ20yhtyODSdRkKke5zh2Drcxc3todWoBHTXN1vG299OaWwXxldAmDwQCcjs5ckcbo5I12nUPOOtGqLorHtrSsyX/JN/hYcWnCIYNR1DKyWKBwYPQWhlSZecKGyWhBJVJX6tbv989Ld6DuqUTTS27jP3K7JDKKfpXRVTK5JEe0iBQbJZN/Jzb2xPY+s4RnkP6TApsOKOheoTq4nMyPtaM0U1vzpX5uz5LG7HppZ7JNrJe0abaN6KDVNeahBNfFtweEthMfC1y52783zb8TmtDvV0fGY7ae/qOXUzhXnPgBQVdyJQs0zSxZkABfUJBf0w2XwzntukkTCD9nHp2p1cYjFHJ5NNaV6+ZS0CciNzSFxsNgf+bnW+2q2v2QVi4LP5cIBvcLen8CkW8rEQ==).

I have no insights in the underlying architecture, but I already have
**some comments on my PR** (and I am willing to work on these, if I get
some feedback/hints):

* the **decompression happens synchronously** (`zlib.inflateSync`). This
can be changed easily, once I understand how async operations are done
for the compiler explorer software.
* the link is `/zclientstate/` (in addition to `/clientstate/`) - I am
open for alternatives...
* I have **not added automated tests** (could be done, give me a
hint/example)

The modified SW worked for me! I hope to get some feedback... **This
would enable larger code-examples to be sent via clientstate as before
with smaller URLs**.
2024-10-02 07:58:51 -05:00