Skip to content

Add advanced option to hide Strict Mode preferences#1643

Merged
hovancik merged 1 commit into
trunkfrom
hide-strict
Sep 15, 2025
Merged

Add advanced option to hide Strict Mode preferences#1643
hovancik merged 1 commit into
trunkfrom
hide-strict

Conversation

@hovancik
Copy link
Copy Markdown
Owner

No description provided.

@hovancik hovancik requested a review from Copilot September 15, 2025 09:19
Copy link
Copy Markdown
Contributor

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 PR adds a new advanced option to hide the Strict Mode preferences section from the preferences window, similar to other existing corporate installation features.

  • Adds hideStrictModePreferences setting to hide strict mode UI elements
  • Implements UI logic to conditionally hide strict mode preferences
  • Documents the new feature for administrators

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
app/utils/defaultSettings.js Adds new hideStrictModePreferences setting with default value false
app/preferences.html Adds data-strict-mode attributes to strict mode UI elements for targeting
app/preferences-renderer.js Implements logic to hide strict mode elements and adjust spacing
README.md Documents the new advanced option for corporate installations
CHANGELOG.md Records the new feature in the changelog
.github/copilot-instructions.md Adds linting instruction (unrelated to main feature)

document.querySelectorAll('[data-strict-mode]').forEach(element => {
element.classList.add('hidden')
})
document.querySelector('#enablePostponeLong').closest('div').style.marginBottom = '56px'
Copy link

Copilot AI Sep 15, 2025

Choose a reason for hiding this comment

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

The magic number '56px' should be replaced with a CSS class or a named constant to improve maintainability and make the spacing intention clearer.

Suggested change
document.querySelector('#enablePostponeLong').closest('div').style.marginBottom = '56px'
document.querySelector('#enablePostponeLong').closest('div').classList.add('mb-56px')

Copilot uses AI. Check for mistakes.
@hovancik hovancik merged commit cb52b96 into trunk Sep 15, 2025
9 checks passed
@hovancik hovancik deleted the hide-strict branch September 15, 2025 09:21
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