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

Remove AngularJS controller of blank screen #6538

Merged

Conversation

Desvelao
Copy link
Member

@Desvelao Desvelao commented Mar 20, 2024

Description

This pull request removes the AngularJS controller of blank screen.

Changes:

  • Remove AngularJS controller of blank screen view
  • Change the redirection to use the navigateToApp method exposed by the platform core plugin
  • Enhance the button of the blank screen view

Issues Resolved

#6536

Test

Legend:
⚫: none
🟢: pass
🟡: warning
🔴: fail
⚪: not applicable

UI

Test Chrome Firefox Safari
Force a blank screen error (see source code) and the error should be displayed in the UI.

Details

⚫ Force a blank screen error (see source code) and the error should be displayed in the UI.

Chrome - ⚫

Firefox - ⚫

Safari - ⚫

Check List

  • All tests pass
    • yarn test:jest
  • New functionality includes testing.
  • New functionality has been documented.
  • Update CHANGELOG.md
  • Commits are signed per the DCO using --signoff

- Remove AngularJS controller of blank screen view
- Remove usage of controller in the html template
- Move logic to manage the error message to the BlankScreen component
@Desvelao Desvelao self-assigned this Mar 20, 2024
@Desvelao Desvelao linked an issue Mar 20, 2024 that may be closed by this pull request
@Desvelao Desvelao marked this pull request as ready for review March 20, 2024 12:37
@JuanGarriuz JuanGarriuz self-requested a review March 26, 2024 08:53
@JuanGarriuz
Copy link
Member

Test

Evidence

image

JuanGarriuz
JuanGarriuz previously approved these changes Mar 26, 2024
Copy link
Member

@JuanGarriuz JuanGarriuz left a comment

Choose a reason for hiding this comment

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

LGTM!!

JuanGarriuz
JuanGarriuz previously approved these changes Apr 2, 2024
…o feat/6536-remove-angularjs-controller-blank-screen
JuanGarriuz
JuanGarriuz previously approved these changes Apr 3, 2024
Copy link
Contributor

github-actions bot commented Apr 4, 2024

Wazuh Core plugin code coverage (Jest) test % values
Statements 31.12% ( 286 / 919 )
Branches 29.88% ( 107 / 358 )
Functions 28.1% ( 86 / 306 )
Lines 30.71% ( 278 / 905 )

Copy link
Contributor

github-actions bot commented Apr 4, 2024

Wazuh Check Updates plugin code coverage (Jest) test % values
Statements 76.44% ( 172 / 225 )
Branches 58.65% ( 61 / 104 )
Functions 61.7% ( 29 / 47 )
Lines 76.44% ( 172 / 225 )

@Desvelao
Copy link
Member Author

Desvelao commented Apr 4, 2024

@asteriscos, I was researching about the repeated mounts of the Blank Screen component but I did not find the cause. If we consider it, we could need a deep analysis with more time.

Copy link
Contributor

github-actions bot commented Apr 4, 2024

Main plugin code coverage (Jest) test % values
Statements 11.99% ( 4152 / 34602 )
Branches 7.77% ( 1764 / 22693 )
Functions 10.7% ( 881 / 8228 )
Lines 12.18% ( 4043 / 33169 )

@asteriscos asteriscos merged commit f6d4ef8 into 4.9.0 Apr 4, 2024
4 checks passed
@asteriscos asteriscos deleted the feat/6536-remove-angularjs-controller-blank-screen branch April 4, 2024 08:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Remove discover] Refactor angularJS blank-screen-controller.js
3 participants