-
-
Notifications
You must be signed in to change notification settings - Fork 18
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
feat(settings modal) #111
feat(settings modal) #111
Conversation
This feels a little bit off to me. How would you feel about a more general settings area? I kind of agree with you that we shouldn't need to have document features outright. Instead, we could disguise documentation as settings. If we decide allowing something like Enable advanced visibility mode
<small>This lets you hide or show components based on a specific selector you define.</small>
<input x-modal="ignoreSelector"> |
Looks good to me 👍 As long as the users can learn about it through the UI it's all good. Shall I close this or do you want to push those changes to this PR? |
I can push here. It's just boilerplate stuff though at the moment. Could we easily extract the panel.html file into separate files to manage it a little better? What would you suggest? |
I pushed the files here. Take a look and let me know if you want anything changed or removed |
🤔 there's a couple of options
We would need to mess around with the build setup in order to do that, probably by pre-processing the HTML. Probably removing the HTML from rollup copy step and running the templating library/some static site generator instead or creating a custom rollup plugin
None of the 3 are ideal, 1. is best for performance (HTML would be fully generated at build time) but 2. and 3. will probably be easier to set up. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's up with the massive package-lock diff?
Otherwise looks fine to me
I ran |
Co-authored-by: Hugo <HugoDF@users.noreply.github.com>
Co-authored-by: Hugo <HugoDF@users.noreply.github.com>
Weird, that didn't happen when I did the npm install are we running different versions of npm or something? I'm on v6 something |
In any case, let's add a Cypress test for show/hide of the modal, merge this and we can edit the modal content in/after #109 ? |
I can add one now. If I can get it working.
I say let's go with #1 then. Do you want me to set this up? Might not be until the weekend though. Want to use https://edge.adonisjs.com/ ? |
@KevinBatdorf not too fussed if I'm honest, I think we can add some JS to the rollup config that will do the template compilation But let's keep it as a separate bit of functionality, it's not technically a blocker for anything, just nicer development experience as the panel gets larger |
If that's more convenient. I think having it clean and separate early on will keep it from getting unwieldy fast. Especially if we plan to start adding more features like event monitoring, Spruce integration, etc |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Last few comments
You're right about the pre-processing, we can create an issue to make it more visible/easy to track/discuss
Can you check it again? I changed the IDs and updated the test |
Nice one @KevinBatdorf |
One for @KevinBatdorf would be great to get some design feedback from @stephenoldham as well
Demo: