Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v10.2.x] Stat: Add panel option to control wide layout #78012

Merged
merged 1 commit into from
Nov 10, 2023

Conversation

grafana-delivery-bot[bot]
Copy link
Contributor

Backport e9e7e0b from #77018


This PR explores adding a panel editor option for stat panel to give users a way back to old "wide layout" functionality of the stat panel.

For context, we recently removed the wide layout functionality based on user feedback. See this PR.

Doing so resulted in backlash from other users as their existing panel designs broke.

This PR hopes to find the middle ground - adding a new panel editor option to the stat panel that allows user to explicitly control whether or not they want wide layout enabled. Adding another panel editor option isn't super ideal, though this option only is enabled when text mode is set to Value and name.

A key question to consider here is what the default value of wideLayout should be (true vs false). Either way users from one camp or the other will need to make manual changes to their stat panels to fix their designs. IMO given the majority of stat panels created at this point have been with the wide layout functionality, a default value of true makes the most sense.

TODO (once initial approach is verified)

  • Rethink naming
  • Add doc changes
stat.demo.mov

Orientation behavior (no impact)

orientation.impact.mov

Stat panel test dashboard
Stat!-1695827506475.json.txt

Fixes https://github.com/grafana/support-escalations/issues/7886
Fixes #77092

Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>
Co-authored-by: drew08t <drew08@gmail.com>
(cherry picked from commit e9e7e0b)
@grafana-delivery-bot grafana-delivery-bot bot added this to the 10.2.x milestone Nov 10, 2023
@grafana-delivery-bot grafana-delivery-bot bot requested review from leeoniya and nmarrs and removed request for a team November 10, 2023 17:44
@grafana-delivery-bot grafana-delivery-bot bot added add to changelog area/frontend area/panel/stat backport A backport PR product-approved Pull requests that are approved by product/managers and are allowed to be backported type/docs labels Nov 10, 2023
@grafana-delivery-bot grafana-delivery-bot bot requested review from joshhunt, tskarhed and jackw and removed request for a team November 10, 2023 17:44
@nmarrs nmarrs self-assigned this Nov 10, 2023
@nmarrs nmarrs enabled auto-merge (squash) November 10, 2023 17:45
@nmarrs nmarrs merged commit 601b5dd into v10.2.x Nov 10, 2023
25 checks passed
@nmarrs nmarrs deleted the backport-77018-to-v10.2.x branch November 10, 2023 17:54
@aangelisc aangelisc modified the milestones: 10.2.x, 10.2.1 Nov 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
add to changelog area/frontend area/panel/stat backport A backport PR product-approved Pull requests that are approved by product/managers and are allowed to be backported type/docs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants