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

AMBARI-26343 React Implementation: Authentication Components #3963

Open
wants to merge 1 commit into
base: frontend-refactor
Choose a base branch
from

Conversation

chenyuan99
Copy link

Ambari-Web React Implementation: Authentication Components

What changes were proposed in this pull request?

fix AMBARI-26343

How was this patch tested?

(Please explain how this patch was tested. Ex: unit tests, manual tests)
(If this patch involves UI changes, please attach a screen-shot; otherwise, remove this)

Please review Ambari Contributing Guide before opening a pull request.

@chenyuan99 chenyuan99 force-pushed the feature/AMBARI-26343-Ambari-Web-React-Implementation-Authentication-Components branch from 6d05153 to 268e795 Compare March 22, 2025 23:28
@chenyuan99
Copy link
Author

before login

image

after login

image

Ambari-Web React Implementation: Authentication Components
@chenyuan99 chenyuan99 force-pushed the feature/AMBARI-26343-Ambari-Web-React-Implementation-Authentication-Components branch from 268e795 to 40b2dcb Compare March 22, 2025 23:39
@chenyuan99 chenyuan99 marked this pull request as ready for review March 22, 2025 23:51
@JiaLiangC
Copy link
Contributor

Thanks @zRains cc

@JiaLiangC JiaLiangC requested a review from zRains March 23, 2025 02:38
Copy link

@nikita15p nikita15p left a comment

Choose a reason for hiding this comment

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

@chenyuan99 thanks for the PR. The changes in this PR are in the ambari-admin folder. However, AMBARI-26343 is for ambari-web. Please check https://issues.apache.org/jira/browse/AMBARI-26163 [Epic for Ambari Admin UI modernization]. Can you please create an issue there and link it in this PR?

@chenyuan99
Copy link
Author

Hi @nikita15p , yes it is for ambari-web, and the login component is part of the ambari-web, but i dont see there is merites to create three seperate react front end projects, react router will take care of the rest.

@zRains
Copy link
Contributor

zRains commented Mar 24, 2025

@chenyuan99 My understanding is that these frontend projects are being developed in a merged manner, similar to a Monorepo?

@chenyuan99
Copy link
Author

yes you are right, since react is a component based frontend framework, it is a good idea keep the components in the same place to make the components reusable

Copy link
Contributor

@zRains zRains left a comment

Choose a reason for hiding this comment

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

The current changes include mock code and lack relevant unit tests. Additionally, there are differences in the server-side responses, meaning that ambari-server will need corresponding changes @JiaLiangC. We can merge this first to facilitate further development.

)}
<div
className="py-3 d-flex justify-content-center sidebar-collapse icon-primary"
style={{ background: "#313d54" }}
Copy link
Contributor

Choose a reason for hiding this comment

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

I think using bg-[#313d54] would be a better choice. Reducing inline styles helps with managing and modifying styles more efficiently. Alternatively, you could define it as a variable in the Tailwind config file.

Copy link
Author

Choose a reason for hiding this comment

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

will update that

@nikita15p
Copy link

Reference: Sharing history on the design plan of modernisation work #3967 (comment)

@vishalsuvagia
Copy link
Contributor

vishalsuvagia commented Mar 27, 2025

Hi @nikita15p , yes it is for ambari-web, and the login component is part of the ambari-web, but i dont see there is merites to create three seperate react front end projects, react router will take care of the rest.

@chenyuan99, seems this is a design change and a diversion from existing implementation. Separation of modules exists since inception and re-birth of the project. Since this is a design change can you kindly share a document proposing and justifying the same.
Request to kindly create a document and attach the same to the jira ticket proposing and justifying the unification of different modules. This would also require a design think and discussion within the ambari community and also would be good if you can send a mail proposing the same.
The current branch was created with a proposal to re-write the existing implementation in the react framework only, can we take this up once the re-write of the existing modules is completed.
Thanks.

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.

5 participants