Skip to content

Conversation

@lmajano
Copy link

@lmajano lmajano commented Jan 1, 2026

Description

Please include a summary of the changes and which issue(s) is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.

Please note that all PRs must have tests attached to them

IMPORTANT: Please review the CONTRIBUTING.md file for detailed contributing guidelines.

Issues

All PRs must have an accompanied issue. Please make sure you created it and linked it here.

Type of change

Please delete options that are not relevant.

  • Bug Fix
  • Improvement
  • New Feature
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Checklist

  • My code follows the style guidelines of this project cfformat
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

Copilot AI review requested due to automatic review settings January 1, 2026 02:14
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This is a major refactoring/modernization PR that updates the DocBox documentation generator with significant improvements to the HTML output strategy, including Bootstrap 5 migration, enhanced UI/UX features, comprehensive documentation additions, and test infrastructure updates.

Key Changes

  • UI Modernization: Complete migration to Bootstrap 5.3.2 with modern design system including dark mode support, improved navigation, and enhanced search functionality
  • Strategy Documentation: Extensive JavaDoc-style documentation added to XMI and JSON strategies explaining architecture, usage patterns, and data structures
  • Test Infrastructure: Multiple test files updated with runner improvements, coverage configuration, and test case modifications
  • Template Enhancements: New features including method search, tabbed interfaces, visibility badges, and improved accessibility

Reviewed changes

Copilot reviewed 79 out of 131 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
tests/specs/XMIStrategyTest.cfc Tests completely disabled with early return
tests/specs/JSONAPIStrategyTest.cfc Removed directory validation test
tests/specs/HTMLAPIStrategyTest.cfc Removed custom tag test, modified assertion text
tests/specs/DocBoxTest.cfc Removed strategy injection test, updated exception names
tests/specs/CommandBoxStrategyTest.cfc Added debug statement, removed validation test
tests/runner.cfm Enhanced with coverage settings and new parameters
tests/run.cfm Added theme support and JSON strategy generation
tests/index.cfm Complete rewrite with modern structure and BoxLang support
tests/coldbox.cfm New file for ColdBox documentation generation
tests/Application.cfc Added ColdBox resource mapping
tests/resources/MockStrategy.cfc New mock strategy for testing
strategy/uml2tools/XMIStrategy.cfc Extensive documentation and script modernization
strategy/json/JSONAPIStrategy.cfc Comprehensive documentation and BoxLang compatibility
strategy/api/themes/frames/resources/templates/* Multiple new/updated templates with Bootstrap 5
strategy/api/themes/frames/resources/static/* New CSS, JavaScript libraries, and theme assets

Comment on lines +21 to +22
// Todo activate later
return;
Copy link

Copilot AI Jan 1, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The XMI strategy tests have been completely disabled with a return statement and a TODO comment. This removes test coverage for the XMI strategy functionality. If these tests are being temporarily disabled due to known issues, consider using xit() or xdescribe() instead of an early return, which provides better visibility in test reports.

Copilot uses AI. Check for mistakes.

var fileContents = fileRead( testFile );

debug( fileContents )
Copy link

Copilot AI Jan 1, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A debug statement has been left in the test code. This should be removed before merging as it will clutter test output in production.

Copilot uses AI. Check for mistakes.

var fileContents = fileRead( testFile );

debug( fileContents )
Copy link

Copilot AI Jan 1, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing semicolon after the debug function call. According to JavaScript coding standards in the guidelines, all statements should be properly terminated with semicolons.

Copilot uses AI. Check for mistakes.
var allClassesHTML = fileRead( allClassesFile );
expect( allClassesHTML ).toInclude(
"HTMLAPIStrategyTest",
"frameless SPA design",
Copy link

Copilot AI Jan 1, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The test assertion text has been changed from "HTMLAPIStrategyTest" to "frameless SPA design". This appears to be testing for the wrong string value. The test should verify that HTMLAPIStrategyTest.cfc is documented in the list of classes, not check for UI design terminology.

Copilot uses AI. Check for mistakes.
var modifiers = 'public private remote package abstract final static required';

// Template syntax components (bx: prefixed)
var templateComponents = 'argument function set return if else elseif try catch finally import while break continue include property rethrow throw switch case defaultcase output query';
Copy link

Copilot AI Jan 1, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unused variable templateComponents.

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants