-
Notifications
You must be signed in to change notification settings - Fork 178
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(app): Add resources page to more section #1631
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.
YAAAAAAHHHHH!!!!!!!
Codecov Report
@@ Coverage Diff @@
## edge #1631 +/- ##
=========================================
- Coverage 34.4% 34.18% -0.22%
=========================================
Files 338 343 +5
Lines 5526 5561 +35
=========================================
Hits 1901 1901
- Misses 3625 3660 +35
Continue to review full report at Codecov.
|
<p>Download a protocol to run on your robot</p> | ||
<OutlineButton | ||
Component="a" | ||
href="http://protocols.opentrons.com/" |
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.
Let's do https
by default
|
||
const TITLE = 'Protocol Library' | ||
|
||
export default function LibraryCard () { |
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.
Do we need separate components for KnowledgeCard and LibraryCard? Seems like we could get away with a ExternalResourceCard that takes children or a message prop and an external link
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.
Fair enough. Will change with https comment below
app/src/pages/More/index.js
Outdated
const {match: {path}} = props | ||
return ( | ||
<Switch> | ||
<Redirect exact from={path} to={'/menu/app'} /> |
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.
to
prop should use path
to build the route so we can change the top level path (/menu
) in only one place
<Redirect exact from={path} to={`${path}/app`} />
app/src/pages/More/index.js
Outdated
<Switch> | ||
<Redirect exact from={path} to={'/menu/app'} /> | ||
<Route | ||
path={'/menu/app'} |
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.
Should also use path
to build route
path={`${path}/app`}
Given the redirect above, it might be worth doing...
const appPath = `${path}/app`
...up top for the Redirect's to and the Route's path
app/src/pages/More/index.js
Outdated
component={AppSettings} | ||
/> | ||
<Route | ||
path={'/menu/resources'} |
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.
Should also use path
to build route
path={`${path}/resources`}
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.
🍹
@Kadee80 some small edits: Knowledge base should say: |
overview
This PR closes #1607 - adds resources page to more section of the app.
changelog
AppSettings
andResources
pages in/More
, refactor routesKnowledgeCard
andLibraryCard
to resources pagereview requests
Standards review. Please click around and make sure [more] NavButton is correctly highlighted. and nothing whitescreens.