-
Notifications
You must be signed in to change notification settings - Fork 0
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
MM-231 Support config for which tab in sidebar is selected on map startup #236
Conversation
Prettier is a code linker/formatter with strong opinions and little configurability, used by some people on this project.
…ce defs A purely stylistic change.
Specifically - showAboutPanel and showDirectoryPanel. This fixes a cut-and-pasta error.
Then disable prettier then redo changes to config schema
6247039
to
928fd8c
Compare
Experimenting with rebase and how it interacts with PRs. I've:
Pushing this back, beware, the branch will have moved. But this PR has adapted accordingly. Good. |
… typesafe Use typescipt's typing to restrict the possible values of defaultPanel to one of the allowed ones. Ran into a problem triggering ERR_REQUIRE_ESM with the d3 library, just by changing the imports... turns out this is a thorny thing to solve, so avoided it by not importing the things. Instead I needed to list the allowed panel IDs in the documentation manually, rather than programatically. But ESM modules are "the future" so we probably need to convert Mykomap to support it (and support CommonJS for cases that need that, probably using Babel transpilation)
I've added some typesafety - seems sensible and idiomatic in this case. Tweaked and regenerated the docs accordingly. Everything appears to work as before, tests pass. |
I think this is ready to merge? If @rogup you are ok with what I've done above? |
ed6f529
to
07af693
Compare
07ec2fa
to
07af693
Compare
@wu-lee thanks for making those changes. I think this is probably ready to merge, once I've tested it on the DotCoop and ICA maps |
Closes #231