-
Notifications
You must be signed in to change notification settings - Fork 22
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
Convert Providers screen to Console page #33
Conversation
Manage columns visibility and order Provided functionalities:
Reference-Url: https://github.com/openshift/console/blob/master/frontend/public/components/modals/column-management-modal.tsx |
defaultColumns, | ||
}: ManagedColumnsProps) => { | ||
const { t } = useTranslation(); | ||
const [editedColumns, setEditedColumns] = useState(columns); |
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.
we should save the preferred columns on localStorage
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.
We can add this in follow up.
@rszwajko can you add a signature so DCO will be happy ? |
Codecov ReportBase: 100.00% // Head: 100.00% // No change to project coverage 👍
Additional details and impacted files@@ Coverage Diff @@
## main #33 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 1 1
Lines 8 8
=========================================
Hits 8 8 Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
The rebased version remains on a separate branch - https://github.com/rszwajko/forklift-console-plugin/tree/providersV3 |
Forced pushed to rebase on top of PR #64 that was extracted from this PR. |
4ee1bbc
to
4950d37
Compare
Force pushed to extract details page to separate PR - see #69 |
e4d5a14
to
f8731b0
Compare
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 learned a lot reviewing this one! Thanks!
In general, I know including import type XYZ from '';
or import { type XYZ, ABC } from '';
isn't required, but I've found it easier to read stuff when it is included. Maybe a linting rule can be added... ;-)
Nothing major to point out on my side. I think maybe we can trend towards a bit more straight forward data transforms in general go forward. The goal would be easy to read to verify data flow in headspace instead of having to rely on a debugger.
7f441b3
to
c1b409d
Compare
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.
Everything looks great. I just have the few style comments to followup on.
6f1a19c
to
6fa0b5a
Compare
Code changes: 1. use StandardPage list component 2. entity list is produced by merging results from k8s API and exsting Forklift inventory REST API. 3. actions in the table (kebab actions) are provided via extension point 'console.action/provider' 4. use existing actions for Add/Edit/Delete/Select Network Functional changes: 1. display all providers in one table 2. use only 'Ready' condition to describe the state of the provider 3. disable rich content in Network/Storage columns until the design for the details page is known Signed-off-by: Radoslaw Szwajkowski <[email protected]>
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
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.
The code LGTM, but when I tried to run in (crc target with Red Hat MTV 2.3.3 installed, yarn start
and yarn start:console:oauth
) a bunch of things went wrong.
The biggest is that no i18n text is showing up:
There is also an error no model for "Provider"
, but I'm not sure if it is related. Error details:
resourcePath: no model for "Provider" [react_devtools_backend.js:4026:25](moz-extension://52dc58e9-0fb5-4f21-b1bb-87e6c7a939b5/build/react_devtools_backend.js)
overrideMethod react_devtools_backend.js:4026
g main-chunk-8319c9271b351f114a18.min.js:1
v main-chunk-8319c9271b351f114a18.min.js:1
na vendors~main-chunk-5a9b3755878e2066e765.min.js:173504
Hs vendors~main-chunk-5a9b3755878e2066e765.min.js:173504
wc vendors~main-chunk-5a9b3755878e2066e765.min.js:173504
Cc vendors~main-chunk-5a9b3755878e2066e765.min.js:173504
_c vendors~main-chunk-5a9b3755878e2066e765.min.js:173504
pc vendors~main-chunk-5a9b3755878e2066e765.min.js:173504
Vi vendors~main-chunk-5a9b3755878e2066e765.min.js:173504
unstable_runWithPriority vendors~main-chunk-5a9b3755878e2066e765.min.js:173817
Hi vendors~main-chunk-5a9b3755878e2066e765.min.js:173504
Vi vendors~main-chunk-5a9b3755878e2066e765.min.js:173504
qi vendors~main-chunk-5a9b3755878e2066e765.min.js:173504
sc vendors~main-chunk-5a9b3755878e2066e765.min.js:173504
Aa vendors~main-chunk-5a9b3755878e2066e765.min.js:173504
unsubscribe useBaseQuery.js:62
NotifyManager notifyManager.js:62
notifyFn notifyManager.js:10
flush notifyManager.js:77
flush notifyManager.js:76
batchedUpdates$1 React
flush notifyManager.js:75
(Async: promise callback)
scheduleMicrotask utils.js:322
flush notifyManager.js:74
batch notifyManager.js:30
dispatch query.js:392
setData query.js:85
onSuccess query.js:336
resolve retryer.js:58
(Async: promise callback)
run retryer.js:116
Retryer retryer.js:156
fetch query.js:332
executeFetch queryObserver.js:199
onSubscribe queryObserver.js:40
subscribe subscribable.js:16
useBaseQuery useBaseQuery.js:60
jc vendors~main-chunk-5a9b3755878e2066e765.min.js:173504
unstable_runWithPriority vendors~main-chunk-5a9b3755878e2066e765.min.js:173817
Hi vendors~main-chunk-5a9b3755878e2066e765.min.js:173504
Ec vendors~main-chunk-5a9b3755878e2066e765.min.js:173504
pc vendors~main-chunk-5a9b3755878e2066e765.min.js:173504
Vi vendors~main-chunk-5a9b3755878e2066e765.min.js:173504
unstable_runWithPriority vendors~main-chunk-5a9b3755878e2066e765.min.js:173817
Hi vendors~main-chunk-5a9b3755878e2066e765.min.js:173504
Vi vendors~main-chunk-5a9b3755878e2066e765.min.js:173504
N vendors~main-chunk-5a9b3755878e2066e765.min.js:173817
onmessage vendors~main-chunk-5a9b3755878e2066e765.min.js:173817
(Async: EventHandlerNonNull)
<anonymous> vendors~main-chunk-5a9b3755878e2066e765.min.js:173817
r runtime~main-bundle-4bd849060ba298736393.min.js:1
<anonymous> vendors~main-chunk-5a9b3755878e2066e765.min.js:173504
r runtime~main-bundle-4bd849060ba298736393.min.js:1
<anonymous> vendors~main-chunk-5a9b3755878e2066e765.min.js:173504
r runtime~main-bundle-4bd849060ba298736393.min.js:1
<anonymous> vendors~main-chunk-5a9b3755878e2066e765.min.js:7053
r runtime~main-bundle-4bd849060ba298736393.min.js:1
<anonymous> main-chunk-8319c9271b351f114a18.min.js:1
r runtime~main-bundle-4bd849060ba298736393.min.js:1
<anonymous> main-chunk-8319c9271b351f114a18.min.js:1
r runtime~main-bundle-4bd849060ba298736393.min.js:1
d runtime~main-bundle-4bd849060ba298736393.min.js:1
c runtime~main-bundle-4bd849060ba298736393.min.js:1
<anonymous> vendors~main-chunk-5a9b3755878e2066e765.min.js:1
Code changes:
exsting Forklift inventory REST API.
point 'console.action/provider'
Functional changes:
the details page is known
Several PR were extracted from this PR. Most important are #69 and #64.