Skip to content

Hide developer options when toolbarMode="viewer"#13623

Merged
sfc-gh-dmatthews merged 1 commit intodevelopfrom
fix]-hide-developer-options-from-settings-in-viewer-mode
Jan 17, 2026
Merged

Hide developer options when toolbarMode="viewer"#13623
sfc-gh-dmatthews merged 1 commit intodevelopfrom
fix]-hide-developer-options-from-settings-in-viewer-mode

Conversation

@sfc-gh-dmatthews
Copy link
Copy Markdown
Contributor

Describe your changes

When client.toolbarMode="viewer", the developer options are hidden from the top level of the app menu, but not in the settings dialog. This PR hides the developer options (Run on save) in the settings dialog, consistent with the toolbarMode configuration option.

This was mentioned in a forum post: https://discuss.streamlit.io/t/hide-development-options-in-settings-panel/120571

Screenshot or video (only for visual changes)

image

GitHub Issue Link (if applicable)

Testing Plan

  • Explanation of why no additional tests are needed
  • Unit Tests (JS and/or Python)
  • E2E Tests
  • Any manual testing needed?

Contribution License Agreement

By submitting this pull request you agree that all contributions to this project are made under the Apache 2.0 license.

Copilot AI review requested due to automatic review settings January 17, 2026 08:37
@snyk-io
Copy link
Copy Markdown
Contributor

snyk-io bot commented Jan 17, 2026

Snyk checks have passed. No issues have been found so far.

Status Scanner Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues
Licenses 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Jan 17, 2026

✅ PR preview is ready!

Name Link
📦 Wheel file https://core-previews.s3-us-west-2.amazonaws.com/pr-13623/streamlit-1.53.0-py3-none-any.whl
📦 @streamlit/component-v2-lib Download from artifacts
🕹️ Preview app pr-13623.streamlit.app (☁️ Deploy here if not accessible)

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 hides developer options from the settings dialog when client.toolbarMode="viewer", making the settings dialog behavior consistent with the app menu. Previously, developer options were hidden from the top-level app menu in viewer mode but were still visible in the settings dialog.

Changes:

  • Modified settingsCallback in App.tsx to conditionally pass allowRunOnSave to the settings dialog based on both the backend configuration and the showDevelopmentOptions check

@sfc-gh-dmatthews sfc-gh-dmatthews added security-assessment-completed change:bugfix PR contains bug fix implementation impact:users PR changes affect end users labels Jan 17, 2026
Copy link
Copy Markdown
Collaborator

@lukasmasuch lukasmasuch left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@sfc-gh-dmatthews sfc-gh-dmatthews merged commit 43fb4e1 into develop Jan 17, 2026
74 of 76 checks passed
@sfc-gh-dmatthews sfc-gh-dmatthews deleted the fix]-hide-developer-options-from-settings-in-viewer-mode branch January 17, 2026 19:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

change:bugfix PR contains bug fix implementation impact:users PR changes affect end users

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants