Skip to content

Update admin lte theme core and styles#16

Merged
marioserrano09 merged 2 commits intomasterfrom
5.4.x
Aug 24, 2025
Merged

Update admin lte theme core and styles#16
marioserrano09 merged 2 commits intomasterfrom
5.4.x

Conversation

@marioserrano09
Copy link
Contributor

This pull request updates the theme version for the Dynamical theme in both the Maven configuration and the Java source code to ensure consistency across the project. The changes are limited to version bumps and do not introduce any new features or functional modifications.

Version updates:

  • Updated the version field in sources/pom.xml to 5.4.1 to reflect the new release version.
  • Updated the dynamiatools.version property in sources/pom.xml to 5.4.1 for dependency management consistency.
  • Updated the VERSION property in the DynamicalTemplate class in sources/src/main/java/tools/dynamia/themes/dynamical/DynamicalTemplate.java to 5.4.1.

…al styles

Signed-off-by: Mario Serrano <mario@dynamiasoluciones.com>
Signed-off-by: Mario Serrano <mario@dynamiasoluciones.com>
Copilot AI review requested due to automatic review settings August 24, 2025 10:14
@marioserrano09 marioserrano09 merged commit 8735c2f into master Aug 24, 2025
1 check failed
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 pull request updates the AdminLTE theme from version 5.2.0/5.1.3 to 5.4.1 across multiple template files and static resources. The changes focus on updating version query parameters for CSS and JavaScript files to ensure proper cache busting, along with updating the core AdminLTE JavaScript library to a newer release candidate version.

Key changes include:

  • Updated version query parameters from various older versions (5.1.3, 5.2.0) to 5.4.1 across all template files
  • Removed unused CSS and JavaScript dependencies in login-related templates
  • Updated AdminLTE core JavaScript from v4.0.0-alpha3 to v4.0.0-rc3 with significant enhancements including new accessibility features

Reviewed Changes

Copilot reviewed 11 out of 37 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
loginRecovery.zul Updated CSS/JS version parameters to 5.4.1 and removed unused dependencies
login.zul Updated version parameters to 5.4.1 and removed bootstrap.min.js dependency
index.zul Updated version parameters to 5.4.1, removed popper.min.js and bootstrap.min.js, added manifest link
accountNew.zul Updated version parameters to 5.4.1 and removed unused dependencies
accountCanceled.zul Updated version parameters to 5.4.1 and removed most unused dependencies
app.js Completely removed legacy AdminLTE v2 JavaScript file
adminlte.js Updated to AdminLTE v4.0.0-rc3 with new accessibility manager and enhanced features
adminlte.extra-components.min.css Removed legacy AdminLTE v3.2.0 extra components CSS file

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment on lines +113 to +114
<script src="${contextPath}/static/js/jquery.min.js?v=5.4.1" type="text/javascript"/>
<script src="${contextPath}/static/js/adminlte.min.js?v=5.4.1" type="text/javascript"/>
Copy link

Copilot AI Aug 24, 2025

Choose a reason for hiding this comment

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

There are extra trailing spaces after the closing script tag that should be removed for consistent formatting.

Suggested change
<script src="${contextPath}/static/js/jquery.min.js?v=5.4.1" type="text/javascript"/>
<script src="${contextPath}/static/js/adminlte.min.js?v=5.4.1" type="text/javascript"/>
<script src="${contextPath}/static/js/jquery.min.js?v=5.4.1" type="text/javascript"/>
<script src="${contextPath}/static/js/adminlte.min.js?v=5.4.1" type="text/javascript"/>

Copilot uses AI. Check for mistakes.
Comment on lines 71 to +74
<!-- FastClick -->
<script src="${contextPath}/js/fastclick.min.js"/>
<!-- AdminLTE App -->
<script src="${contextPath}/js/adminlte.min.js"/>
<script src="${contextPath}/js/adminlte.min.js?v=5.4.1"/>
Copy link

Copilot AI Aug 24, 2025

Choose a reason for hiding this comment

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

FastClick is still being loaded in this template while it was removed from other templates. This creates inconsistency and FastClick is generally no longer needed for modern browsers. Consider removing this dependency for consistency.

Copilot uses AI. Check for mistakes.
Comment on lines 78 to 80
<!-- Tooltipster -->
<script src="${contextPath}/js/tooltipster.bundle.min.js" />
<script src="${contextPath}/js/tooltipster.bundle.min.js?v=5.4.1" />

Copy link

Copilot AI Aug 24, 2025

Choose a reason for hiding this comment

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

Tooltipster is still being loaded in this template while it was removed from other templates. This creates inconsistency in dependency management across similar template files. Consider removing this dependency for consistency.

Copilot uses AI. Check for mistakes.
Comment on lines +36 to +43
globalThis.setTimeout(() => {
target.style.height = '0';
target.style.paddingTop = '0';
target.style.paddingBottom = '0';
target.style.marginTop = '0';
target.style.marginBottom = '0';
}, 1);
window.setTimeout(() => {
globalThis.setTimeout(() => {
Copy link

Copilot AI Aug 24, 2025

Choose a reason for hiding this comment

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

[nitpick] Using globalThis instead of window for setTimeout is more modern and works across different JavaScript environments, but ensure this change is compatible with the minimum browser support requirements for the application.

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.

1 participant