Skip to content

feat(plugin): add auto-open toggle to plugin UI - #58

Open
bestcoderboy wants to merge 1 commit into
Ransomwave:devfrom
bestcoderboy:auto-open-toggle
Open

feat(plugin): add auto-open toggle to plugin UI#58
bestcoderboy wants to merge 1 commit into
Ransomwave:devfrom
bestcoderboy:auto-open-toggle

Conversation

@bestcoderboy

Copy link
Copy Markdown

this PR adds a new global setting to the Azul plugin, which lets you toggle whether the plugin's window should open automatically when a new Studio instance opens.

image

(the default is false, but this could be changed to true for backwards compatibility)

@coderabbitai

coderabbitai Bot commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: ee87c483-3414-4760-9372-4bae4c26f869

📥 Commits

Reviewing files that changed from the base of the PR and between f9189d6 and 0f4e551.

📒 Files selected for processing (3)
  • plugin/sync/ReplicatedFirst/AzulCompanionPlugin/App/UI.luau
  • plugin/sync/ReplicatedFirst/AzulCompanionPlugin/Config.luau
  • plugin/sync/ReplicatedFirst/AzulCompanionPlugin/SettingsStore.luau

📝 Walkthrough

Summary by CodeRabbit

  • New Features
    • Added an “Auto Open Modal” setting under Behavior preferences.
    • Users can enable or disable automatic modal opening.
    • The preference is saved and restored across sessions.
    • The dock widget now follows the selected setting when initialized.

Walkthrough

Adds an AUTO_OPEN_MODAL setting, persists it globally, and connects it to the modal’s initial state, dock widget enablement, Behavior settings toggle, and reactive configuration updates.

Changes

Auto-open modal setting

Layer / File(s) Summary
Configuration and persistence
plugin/sync/ReplicatedFirst/AzulCompanionPlugin/Config.luau, plugin/sync/ReplicatedFirst/AzulCompanionPlugin/SettingsStore.luau
Defines AUTO_OPEN_MODAL with a default of false and saves and reloads it in global settings.
UI auto-open behavior
plugin/sync/ReplicatedFirst/AzulCompanionPlugin/App/UI.luau
Adds reactive state and a Behavior toggle, applies the setting to initial modal and dock widget state, and synchronizes updates from configuration.

Estimated code review effort: 2 (Simple) | ~10 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly matches the main change: adding an auto-open toggle to the plugin UI.
Description check ✅ Passed The description accurately describes the new global auto-open setting and its default value.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

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