Skip to content
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: modified UI to use patternfly #78

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

ilan-pinto
Copy link
Member

No description provided.

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

openshift-ci bot commented Jul 20, 2023

[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

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 <[email protected]>
@ilan-pinto
Copy link
Member Author

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

@ilan-pinto ilan-pinto requested review from TomerFi and IlonaShishov and removed request for zvigrinberg and vbelouso 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
Copy link
Member

@TomerFi TomerFi left a comment

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.

.vscode/launch.json Show resolved Hide resolved
Comment on lines 10 to 13
"typescript.tsc.autoDetect": "off",
"cSpell.words": [
"klusterlet"
]
Copy link
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
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.

src/providers/contextWebProvider.ts Show resolved Hide resolved
src/providers/contextWebProvider.ts Outdated Show resolved Hide resolved
// get the loader instance
let load = loader.Load.getLoader();

Copy link
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
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
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.

webview-ui/src/comp/Klusterlet.tsx Outdated Show resolved Hide resolved
webview-ui/src/comp/Placements.tsx Outdated Show resolved Hide resolved
webview-ui/src/comp/SubscriptionStatuses.tsx Outdated Show resolved Hide resolved
webview-ui/tsconfig.json Outdated Show resolved Hide resolved
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
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?

Copy link
Member Author

@ilan-pinto ilan-pinto Oct 18, 2023

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
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 <[email protected]>

fixed PR comments

Signed-off-by: Ilan Pinto <[email protected]>
.gitignore Show resolved Hide resolved
.vscode/launch.json Show resolved Hide resolved
// get the loader instance
let load = loader.Load.getLoader();

Copy link
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
- global
Copy link
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.

@@ -7,5 +7,4 @@
"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"
Copy link
Member

@TomerFi TomerFi Oct 23, 2023

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 on lines 10 to 13
"typescript.tsc.autoDetect": "off",
"cSpell.words": [
"klusterlet"
]
Copy link
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.

@@ -0,0 +1,3 @@
{
Copy link
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.

@@ -9,14 +9,27 @@
"sourceMap": true,
"rootDirs": [
"src",
"test"
"test",
"styles"
Copy link
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 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
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

PR needs rebase.

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 join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants