Commit graph

15 commits

Author SHA1 Message Date
Sanne Raymaekers
af5f734328 App: Drop permission check 2021-11-29 20:59:15 +01:00
Jacob Kozol
b71aa75df3 src: replace React Router history with navigate
React Router v6 now has useNavigate() instead of useHistory.
useNavigate() is equivalent to useHistory().push();
2021-11-18 19:06:56 +01:00
Jacob Kozol
c6f2ed227f Router: change the Switch component to a Routes component
In React Router v6 the Switch element is replaced by Routes. All links
inside a <Routes> are relative and routes can be placed in any order
now.
2021-11-18 19:06:56 +01:00
Jacob Kozol
f1d00b3b2d App: update app and routes
The App and Routes components are updated for compatibility with React
Router v5 and to follow updates made to RedHatInsights'
frontend-starter-app. Mainly, we no longer map our Routes to another
component and our main components are lazy loaded instead of mapped to
an asyncComponent. Also, the App component is rewritten to use react
hooks and remove unneccessary bloat.
2021-11-18 19:06:56 +01:00
Jacob Kozol
8871bd8373 App.js: enable patternfly utilities
Importing the patternfly-addons.css file enables patternfly utility
classes.
2021-11-12 19:12:17 +01:00
Sanne Raymaekers
1b9cf6df7b src: Remove SmartComponents/PresentationalComponents split
Just have a directory per component.
2021-04-22 10:23:51 +02:00
Sanne Raymaekers
b43b938f28 app: Allow the IdentifyApp call to fail 2021-03-31 15:01:04 +01:00
Sanne Raymaekers
b0614ae750 CreateImageWizard: Notification on successful compose response 2021-03-09 21:41:17 +00:00
Sanne Raymaekers
971399aaeb App: Wait for user active session before checking permission 2021-03-02 16:28:28 +01:00
Sanne Raymaekers
3414607a48 App: Show under construction page if getversion fails 2021-02-09 15:48:57 +01:00
Sanne Raymaekers
eca63afeed src: Replace Main with React.Fragment in App.js
We shouldn't apply any style at this point, and let any style be
determined by the page we're embedded in.
2020-12-16 17:24:39 +01:00
Jenn Giardino
00d81f0444 Fix styles for <Main> in App.js
`<Main>` doesn't really belong in App.js given the html it renders,
but there's some additional thing happening with this component
that requires it to be here to support tests. This update addresses
the extra padding that it creates by being used at this level.

Closes #17
2020-11-04 12:24:17 +01:00
Jacob Kozol
1d46f5a618 src: move main component to App component
The Main component in the LandingPage component has been moved to the
App component. This is required so the tests can mock the store without
any insights information.
2020-10-22 10:23:08 +02:00
sanne raymaekers
f62384485b Rename to image-builder-frontend 2020-09-14 12:16:35 +02:00
sanne raymaekers
f93d36b972 copy from RedHatInsights/insights-frontend-starter-app template
Copied removing unused parts, and includes some initial changes.
2020-04-15 12:46:02 +02:00