-
Notifications
You must be signed in to change notification settings - Fork 8
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!: config is always visible on landing page #496
base: main
Are you sure you want to change the base?
Conversation
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.
self review
|
||
const isRequestToViewConfigPage = isConfigPage(window.location.hash) | ||
return isRequestToViewConfigPage | ||
return isRequestToViewConfigPage && isSubdomainGatewayRequest(window.location) |
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.
only render this individual config page on subdomain requests explicitly for /#/ipfs-sw-config
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.
self review after changes
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.
Nicer addition.
LGTM. Also tested locally.
Co-authored-by: Daniel Norman <1992255+2color@users.noreply.github.com>
Title
feat!: config is always visible on landing page
Description
This change adds the config section to the main landing page (i.e. helper-ui.tsx) and removes the config gear icon in the header, and direct access to an isolated config page (unless on a subdomain)
Some heading text was also added to the config to make it more clear that it is a config section.
Fixes #486
Notes & open questions
We still have a page accessible at /#/ipfs-sw-config for subdomain users to be able to edit the config, and a test for that now.
Change checklist