-
Notifications
You must be signed in to change notification settings - Fork 20
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(about): View About info from PageSideBar #299
Conversation
Signed-off-by: Janelle Law <jalaw@redhat.com>
65398c6
to
c9f2809
Compare
What if instead of the nav-bar opening the about modal itself, the about-modal design was extracted into it's own component such that it could be used as a dedicated "about" page and also be fed into the current about-modal?
This looks to be a routing issue; there isn't a defined route to |
Nice, the About page also prevents the need to create extra routes or URL fragments. |
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.
I think this looks pretty good. As a follow-up, could you look into navigation item groups or separators and see what improvements can be made there? https://www.patternfly.org/v4/components/navigation/
@aptmac any comments on these latest commits? |
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.
Looks good to me!
Fixes #266.
Would appreciate some suggestions to improve this design since my current approach causes the bug listed below.
In addition to the existing masthead help icon, clicking the "About" nav link on the PageSideBar will display the AboutModal. Unlike the other nav links, users can view the AboutModal by clicking the nav link without logging in.
The url http://localhost:9000/about allows users to view/copy a link to the AboutModal. Followed this example to create the modal route: https://reactrouter.com/web/example/modal-gallery
Note: The example only displays their modal when the route matches “/img/:id”. Since I wanted to display the modal on top of any page, the
RouteWithTitleUpdates``path
prop is set tolocation.pathname
Bug: if you open a new tab and enter http://localhost:9000/recordings/about, the
modalBackground
- which renders the previous web page content in the background - is undefined. The<Switch>
will then render theNotFound
page. If I instead replace theRouteWithTitleUpdates``path
prop to/about
on line 204 and comment lines 146-148 inAppLayout
, the previous page content does not render in the background behind the modal.