Skip to content

feat(debug): Add collapse on load & hide toggle button options#1040

Merged
delucis merged 3 commits into
boardgameio:mainfrom
MathieuLoutre:debug-options
Dec 23, 2021
Merged

feat(debug): Add collapse on load & hide toggle button options#1040
delucis merged 3 commits into
boardgameio:mainfrom
MathieuLoutre:debug-options

Conversation

@MathieuLoutre

Copy link
Copy Markdown
Contributor

Add more options to debug panel as per #1039

Checklist

  • Use a separate branch in your local repo (not main).
  • Test coverage is 100% (or you have a story for why it's ok).

@delucis delucis left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks for this @MathieuLoutre! Nice code and works well.

Maybe I’d just suggest slightly clearer naming for the options API?

Instead of hidePanel and hideButton, how about collapseOnLoad and hideToggleButton?

@MathieuLoutre

Copy link
Copy Markdown
Contributor Author

No problem, the new names are more explicit which is good. I updated across but also wrote better tests (hopefully). Let me know if anything needs to change.

@delucis delucis changed the title Add options to hide panel on load and remove toggle button feat(debug): Add collapse on load & hide toggle button options Dec 23, 2021
@delucis delucis merged commit bd34bc3 into boardgameio:main Dec 23, 2021
@delucis

delucis commented Dec 23, 2021

Copy link
Copy Markdown
Member

Perfect — those tests are a big improvement 👍

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