-
Notifications
You must be signed in to change notification settings - Fork 60
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
web-wallet: Add possibility to serve the web wallet from a sub folder #1366
Conversation
45a7d8b
to
0e76de8
Compare
0e76de8
to
fb8fe48
Compare
fb8fe48
to
6b03dfd
Compare
1ec9f93
to
4650a86
Compare
4650a86
to
d83ed52
Compare
6adc421
to
2a41111
Compare
2a41111
to
6aca489
Compare
Sorry for the delayed review – I honestly ran away from reviewing it a few days ago. 😆 But should have explained why, so I will do it now instead. First, it would have helped if we had more information in the issue description – my understanding is that the Wallet is currently served as part of Rusk, so I assume it's in a subfolder – maybe it's not the case. What is the problem that the issue needs to solve and what is needed in a technical aspect to get us there? From what I can see, the idea is to add a dynamically set base path when a redirection is happening. I am personally not a fan of the newly proposed components – the When it comes to the Anchor, if we had the right interface, which allows us to explicitly set if the reference is external or not, it would have been much easier to handle the issue – we could just append the base path if not external, or don't append otherwise. I saw that What I do like is that the handling of the redirect is handled on a component/navigation level – so that the developer doesn't have to think about it during development (as in, calling a method to append the base path each time a reference is passed to a component/goto function). Let's agree on the components and if we need the new ones at all, as well as why we need this change in the first place. Then I will have a more careful look at the PR. |
It is an anchor: the
The point here was to have the developer not think at all about which component to import, and so I just wrapped the "@dusk/components" into a version specific for the app. [...]
We can discuss about having an The point here is: is there a simpler approach to achieve the same? |
Sorry, I missed that bit that the App components are part of the app's components library, instead of what's supposed to be the shared components. However, even with that, it's still error-prone, because a developer can still import the components from the shared library, especially as no other component follows the convention
I am personally not aware of such – it's combination of calling a method to append the base path and hijacking the |
But this is a thing that a reviewer can catch easily.
I was hoping to have some facilitation from the framework / bundler, but, with the combination of the two that we are using I didn't see one. Unless I missed something. |
Resolves #1362