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

Buttons render incorrectly when controls out of order #8

Open
joshbenner opened this issue Jun 27, 2021 · 1 comment
Open

Buttons render incorrectly when controls out of order #8

joshbenner opened this issue Jun 27, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@joshbenner
Copy link

Buttons occasionally render incorrectly, showing the wrong content as well as render artifacts. This seems to be related to listing the controls out of order, as the behavior can be prevented by ordering the keys in the configuration.

devdeck-artifacts

Configuration producing this behavior:

decks:
- name: devdeck.decks.single_page_deck_controller.SinglePageDeckController
  serial_number: redacted
  settings:
    controls:
    - key: 0
      name: devdeck_slack.slack_deck.SlackDeck
      settings:
        api_key: 'redacted'
        actions:
          - action: online
            key: 0
          - action: away
            key: 1
          - action: status
            key: 2
            text: BRB
            emoji: ':stopwatch:'
    - key: 7
      name: devdeck.controls.clock_control.ClockControl
    - key: 1
      name: devdeck.controls.timer_control.TimerControl
@jamesridgway jamesridgway added the bug Something isn't working label Jul 3, 2021
@jamesridgway
Copy link
Owner

Hi @joshbenner

Thanks for reporting the issue. I've seen this before myself, I'm not 100% convinced the issue is to do with key ordering, as my config has the keys in order and I have still seen the problem. However, 1.0.11 has now been released which will render the keys in order, regardless of how they appear in the config. So this should allow us to rule this out as a factor.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants