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

CoreUI 3 #449

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from
Draft

Conversation

walterdeboer
Copy link

@walterdeboer walterdeboer commented Mar 14, 2023

Description

Upgrade CoreUI from 2 to 3, nodejs to 18, and several other dependencies

image

Addressed Issue

Closes: #445, fixes #470

Additional Details

Had some trouble with the original UI layout, so the UI changed a little unfortunately

Checklist

@walterdeboer walterdeboer force-pushed the feature/445 branch 11 times, most recently from 877bc2f to da08169 Compare March 18, 2023 10:21
package.json Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
@walterdeboer walterdeboer force-pushed the feature/445 branch 3 times, most recently from 1f12fbf to e1f2d38 Compare March 18, 2023 12:19
@walterdeboer walterdeboer marked this pull request as ready for review March 18, 2023 12:42
@walterdeboer walterdeboer changed the title CureUI 3 COreUI 3 Mar 30, 2023
@walterdeboer walterdeboer changed the title COreUI 3 CoreUI 3 Mar 30, 2023
@walterdeboer walterdeboer force-pushed the feature/445 branch 4 times, most recently from cf679fa to 2a0d8b4 Compare March 31, 2023 14:08
@valentijnscholten
Copy link
Contributor

Thanks @walterdeboer . I am no front-end dev, but I like updates to newer/latest versions. Any chance you tested it or could test it with a newer NodeJS? Would be nice to fix #470 in one go :-)

@nscuro nscuro added this to the 4.9 milestone Apr 15, 2023
@walterdeboer
Copy link
Author

@valentijnscholten I remember I had some trouble bringing it back to node 14. I guess it will work, but I'll have another look to see what it does with 18 or 20...

@walterdeboer walterdeboer marked this pull request as draft July 2, 2023 07:49
@walterdeboer walterdeboer force-pushed the feature/445 branch 6 times, most recently from 12eb3f8 to aabdf72 Compare July 7, 2023 08:29
@walterdeboer walterdeboer marked this pull request as ready for review July 7, 2023 08:31
@walterdeboer
Copy link
Author

walterdeboer commented Jul 7, 2023

@nscuro I followd the coreui admin templates more closely so a bigger difference in the styling. I've adjusted the spacing and cleaned up some scss. Also found and fixed #539 Please shoot again! :-)

@nscuro
Copy link
Member

nscuro commented Jul 7, 2023

Thanks so much @walterdeboer, I'll go through all your remaining open PRs this weekend!

@nscuro
Copy link
Member

nscuro commented Jul 8, 2023

@walterdeboer, I can confirm that the login page, the footer positioning, and the broken vulnerability analysis view are fixed. Thanks!

While testing more, I found the following issues.

Policy violation analysis is broken

This one seems to be similar to the vulnerability analysis problem (which I can confirm you have fixed).

policy-violations-analysis-pr

Switching tabs is causing UI glitches

Not entirely sure why this may be happening, but it looks like the whole UI is refreshed on each tab switch. Tables appear to be loaded twice, but I am not seeing duplicate network requests being made.

tab-switch-pr

For comparison, this is how it behaves on master:

tab-switch-master

I observed a similar behavior when navigating through the administration panel.

settings-navigate-pr

Metrics tooltips are barely visible

Tooltips on metrics widgets are missing their background, and the increased front size is causing ugly line breaks.

metrics-tooltip-pr

This is how it behaves on master:

metrics-tooltip-master

Some metrics bars are missing color

In the project overview, the bars below the severity chart are not colored.

metrics-pr

This is how it looks on master:

metrics-master

"Sticky" breadcrumbs

After visiting a project's page, the breadcrumb stays around when visiting different pages.

breadcrumb-pr

Logo on top bar is hidden when toggling sidebar

Just a very minor thing, but the DT logo appears to be located on the sidebar instead of the "top" bar. Thus, when toggling the sidebar, the logo disappears.

menu-toggle-top-pr

This is how it behaves on master:

menu-toggle-top-master

Breadcrumb bar is fixed

Again, just a minor thing I noticed but is not necessarily a bug, just wanted to take note of it. The breadcrumb bar position is now fixed, it does not disappear when scrolling down.

top-bar-scroll-pr

This is currently happening on master:

top-bar-scroll-master

General size difference

I mentioned this earlier, but the sizing still feels a bit off. It looks better when zooming out to 90%. Also note how the table content triggers a horizontal scroll bar to appear at 100%. This is not happening with current master.

size-comparison

@walterdeboer
Copy link
Author

walterdeboer commented Jul 8, 2023

@nscuro

  • Policy violation analysis -> I'm guessing it's fixed by my last commit, but I'll check
  • Switching tabs is causing UI glitches -> no clue yet, I'll dive into it
  • Metrics tooltips are barely visible & Some metrics bars are missing color -> I'll check the CSS
  • Breadcrumb bar is fixed -> This is due to the new admin templates, they're in the Header now. I'think I'll move them
  • "Sticky" breadcrumbs -> now they're in the header the refresh didn't look good, but the fix broke it. Will be fixed when I move them I guess
  • Logo on top bar is hidden when toggling sidebar -> This is due to the new admin templates. It should now show the logo with text in the center when the small logo hides (not always I notice..). I'd like to leave it like this, following the admin templates as close as possible. I'll make sure the logo is always visible somewhere
  • General size difference -> I thought I found it, but I'll give it another go

It will take some more time.. Maybe move this to 4.10?

@nscuro
Copy link
Member

nscuro commented Jul 8, 2023

It will take some more time.. Maybe move this to 4.10?

Yes, good idea.

Please let me know if you need help with anything, I do realize this is a big undertaking.

@nscuro nscuro modified the milestones: 4.9, 4.10 Jul 8, 2023
@walterdeboer
Copy link
Author

I've moved the fix for #539 to #540

@walterdeboer
Copy link
Author

And I moved the fix for #470 to #541

Walter de Boer added 4 commits July 10, 2023 23:58
…late , Node 18 & 20

Signed-off-by: Walter de Boer <walterdeboer@dbso.nl>
Signed-off-by: Walter de Boer <walterdeboer@dbso.nl>
Signed-off-by: Walter de Boer <walterdeboer@dbso.nl>
Signed-off-by: Walter de Boer <walterdeboer@dbso.nl>
@nscuro nscuro added the needs milestone Issues or PRs that are pending a milestone assignment label Oct 26, 2023
@nscuro nscuro removed this from the 4.10 milestone Oct 26, 2023
@rkg-mm
Copy link
Contributor

rkg-mm commented Dec 22, 2023

Whats the status on this, is this still being worked on? does it need more work, if yes what is missing?

@msymons
Copy link
Member

msymons commented Mar 4, 2024

@walterdeboer, are you able to complete the work that you have done here? Is there any help that you need?

Having CoreUI (and Vue) up to date will make it easier to onboard new contributors.

@walterdeboer
Copy link
Author

@walterdeboer, are you able to complete the work that you have done here? Is there any help that you need?

Having CoreUI (and Vue) up to date will make it easier to onboard new contributors.

I’m sorry but I’ve abandoned this undertaking. It’s quite a big job and I don’t find the time anymore. I do confirm the importance of this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs milestone Issues or PRs that are pending a milestone assignment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Upgrade Core UI to version 3 Upgrade to NodeJS 18 or 20
5 participants