Skip to content

Conversation

nmdefries
Copy link
Collaborator

Description

  • In Display archived signals in separate tab on dashboard #253, the score explanation doesn't show up when switching from the "current" to the "archive" tab. It only shows up on the archive tab when switching between score types. Explicitly ask for score explanation to be shown when tab is changed.
  • Factor out score explanation display logic.
  • Move the archive tab suffix to a global var.

@nmdefries nmdefries requested a review from krivard April 6, 2023 17:25
Copy link
Contributor

@krivard krivard left a comment

Choose a reason for hiding this comment

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

Solid standard refactor

Comment on lines +692 to +695
return()
}
updateTargetChoices(session, choices)
showScoreExplanation(session, input$scoreType, DASH_SUFFIX)
Copy link
Contributor

Choose a reason for hiding this comment

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

(annotation for future-me)

this is the bit that (1) makes sure we only update targets and show scores on evaluations tabs, and (2) makes sure we show scores for the evaluations tabs

@nmdefries nmdefries merged commit d75c55a into dev Apr 6, 2023
@nmdefries nmdefries deleted the ndefries/score-explanations-on-tab-switch branch April 6, 2023 21:27
@krivard krivard mentioned this pull request Apr 26, 2023
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