Skip to content
This repository was archived by the owner on Jul 24, 2025. It is now read-only.

feat: modified UI to use patternfly - #78

Open
ilan-pinto wants to merge 3 commits into
open-cluster-management-io:mainfrom
ilan-pinto:patternfly-main
Open

feat: modified UI to use patternfly#78
ilan-pinto wants to merge 3 commits into
open-cluster-management-io:mainfrom
ilan-pinto:patternfly-main

Conversation

@ilan-pinto

Copy link
Copy Markdown
Member

No description provided.

@openshift-ci
openshift-ci Bot requested review from vbelouso and zvigrinberg July 20, 2023 12:20
@openshift-ci

openshift-ci Bot commented Jul 20, 2023

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ilan-pinto

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Signed-off-by: Ilan Pinto <ilpinto@redhat.com>
@ilan-pinto

Copy link
Copy Markdown
Member Author

@IlonaShishov, can you run a quick test on this branch?

using patternfly react

Signed-off-by: Ilan Pinto <ilpinto@redhat.com>
@ilan-pinto
ilan-pinto requested review from IlonaShishov and TomerFi and removed request for vbelouso and zvigrinberg July 25, 2023 10:29
@ilan-pinto
ilan-pinto force-pushed the patternfly-main branch 2 times, most recently from faaf134 to 92c5166 Compare July 26, 2023 13:22

@TomerFi TomerFi left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ilan-pinto Very good work, sorry it took me so long to review this, you can take it up with my manager. ;-)
Honestly, very good work. Me being the 'yeke' that I am, most of my comments/change requests are semantics only.

Comment thread .vscode/launch.json
Comment thread .vscode/settings.json Outdated
Comment on lines +10 to +13
"typescript.tsc.autoDetect": "off",
"cSpell.words": [
"klusterlet"
]

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As a former cscpell user myself, on multiple occasions, I clicked the "add to project settings" instead of "add to user settings". :-)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I accidently marked line 10 too, but I only meant the cSpell.words array. I think you also deleted "typescript.tsc.autoDetect": "off" when resolving this. Sorry.

Comment thread src/providers/contextWebProvider.ts
Comment thread src/providers/contextWebProvider.ts Outdated
// get the loader instance
let load = loader.Load.getLoader();

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you can configure VSCode to auto-delete stuff like this on-save.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how? what is the problem?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The spaces your IDE allows you to mistakenly add to line endings in files you open. VSCode has an option to auto delete these when you hit save.

Comment thread webview-ui/src/comp/Klusterlet.tsx Outdated
Comment thread webview-ui/src/comp/Placements.tsx Outdated
Comment thread webview-ui/src/comp/SubscriptionStatuses.tsx Outdated
Comment thread webview-ui/tsconfig.json Outdated
Comment thread package.json
Comment on lines +189 to +192
"@patternfly/react-core": "^4.276.8",
"@patternfly/react-styles": "^4.92.6",
"@patternfly/react-table": "^4.113.0",
"@types/d3-shape": "^3.1.1",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I noticed you added the patternfly dependencies to both the root project.json and the webui one. Is this necessary?

@ilan-pinto ilan-pinto Oct 18, 2023

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

to be honest, i am not sure.
only after adding it to both spaces it worked.
but it could that should have added part of in root and rest in other folder

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think they should go only in webui, I also see other dependencies that exist only in webui and not the root, and it works well. Can you please try building while keeping this only in webui?

@ilan-pinto
ilan-pinto force-pushed the patternfly-main branch 3 times, most recently from f42c771 to ac4cc5b Compare October 18, 2023 11:14
Signed-off-by: Ilan Pinto <ilpinto@redhat.com>

fixed PR comments

Signed-off-by: Ilan Pinto <ilpinto@redhat.com>
Comment thread .gitignore
Comment thread .vscode/launch.json
// get the loader instance
let load = loader.Load.getLoader();

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The spaces your IDE allows you to mistakenly add to line endings in files you open. VSCode has an option to auto delete these when you hit save.

Comment on lines +9 to +10
- default
- global

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think global should suffice. New ManagedClusters are only members in the default set until they are moved to their own set.

Comment thread .vscode/settings.json
"out": true // set this to false to include "out" folder in search results
},
// Turn off tsc task auto detection since we have the necessary tasks as npm scripts
"typescript.tsc.autoDetect": "off"

@TomerFi TomerFi Oct 23, 2023

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"typescript.tsc.autoDetect": "off" was here before this PR, see my next comment.

Comment thread .vscode/settings.json Outdated
Comment on lines +10 to +13
"typescript.tsc.autoDetect": "off",
"cSpell.words": [
"klusterlet"
]

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I accidently marked line 10 too, but I only meant the cSpell.words array. I think you also deleted "typescript.tsc.autoDetect": "off" when resolving this. Sorry.

Comment thread test-workspace/.vscode/settings.json Outdated
@@ -0,0 +1,3 @@
{

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see you did. Regardless, it's not quite necessary.
We're ok with a test-workspace inside the test folder, we use it for testing and we crafted our .gitignore to ignore just its content.
But you accidentally copied test/test-workspace folder to test-workspace. Simply delete test-workspace from the root (only from the root) and we're good.

Comment thread tsconfig.json
"src",
"test"
"test",
"styles"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we don't, can you try removing it and build?

Comment thread package.json
Comment on lines +189 to +192
"@patternfly/react-core": "^4.276.8",
"@patternfly/react-styles": "^4.92.6",
"@patternfly/react-table": "^4.113.0",
"@types/d3-shape": "^3.1.1",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think they should go only in webui, I also see other dependencies that exist only in webui and not the root, and it works well. Can you please try building while keeping this only in webui?

@openshift-merge-robot

Copy link
Copy Markdown

PR needs rebase.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants