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

Shut down modal #281

Merged
merged 24 commits into from
Mar 26, 2023
Merged

Conversation

aman1376
Copy link

@aman1376 aman1376 commented Mar 21, 2023

Changes Proposed

Created a popup when the shut down button is clicked.

Screenshot (56)
Screenshot (57)

Check List

  • The title of my pull request is a short description of the changes
  • This PR relates to some issue:
  • I have documented the changes made (if applicable)
  • I have covered the changes with unit tests

@aman1376
Copy link
Author

@chad11111 please have a look.

return (
<header className="app-header">
{
signOut && <SignOutpopup/>
Copy link
Contributor

Choose a reason for hiding this comment

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

please use the popup component.

Copy link
Author

Choose a reason for hiding this comment

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

@chad11111 for that i would need to install the reactjs-popup dependency do you want me to do this way?

Copy link
Contributor

Choose a reason for hiding this comment

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

No, don't install anything we wrote our own modal.

Have a look here.
https://github.com/komodorio/helm-dashboard/tree/helm-dashboard-v2/dashboard/src/components/modal

@@ -4,9 +4,13 @@
"description": "",
"main": "index.js",
"dependencies": {
"@emotion/react": "^11.10.6",
Copy link
Contributor

Choose a reason for hiding this comment

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

why do we need this?

@@ -4,9 +4,13 @@
"description": "",
"main": "index.js",
"dependencies": {
"@emotion/react": "^11.10.6",
"@emotion/styled": "^11.10.6",
Copy link
Contributor

Choose a reason for hiding this comment

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

why do we need this?

Copy link
Author

Choose a reason for hiding this comment

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

@chad11111 i used material-ui for the icon so for that i needed to install these

Copy link
Contributor

Choose a reason for hiding this comment

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

"@emotion/react": "^11.10.6",
"@emotion/styled": "^11.10.6",
"@mui/icons-material": "^5.11.11",
"@mui/material": "^5.11.13",
Copy link
Contributor

Choose a reason for hiding this comment

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

do we need this ? cant we just use icons ?

Copy link
Author

Choose a reason for hiding this comment

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

@chad11111 i'll try to check with icons i am not sure about that. i am comfortable with material-ui and its a bit more styled but if you want me to do with icons i'll look into it.

Copy link
Contributor

Choose a reason for hiding this comment

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

We dont want to use mui.
Please only use the icons.

@chad11111 chad11111 self-requested a review March 21, 2023 22:43
@chad11111
Copy link
Contributor

@aman1376 You have some conflicts :( sorry about that.

chad11111 and others added 24 commits March 24, 2023 13:21
* Update README

Componenet library section

* Update dashboard/README.md

---------

Co-authored-by: chad11111 <[email protected]>
* Status Element

* added status and button

* Added revisionCard, and conditional rendering for version upgrade/downgrade and time since revision started.

* adding all changes before push

* Revisioning of revision card and of status

* Added refresh button to revision card

* Adding tabbar

* Extracted age logic in revisioncard component

* trying to get storybook to work and adding comments to revision card getRevisionAgeJSX auxiliary function.

* Configured storybook with a few samples

* Added info in Revision Card story, and showcased special badged.

* Added a special button example in storybook

* Easy Entry for storybook

* Response to review. extracted revisioncard props into an interface and created global.tsx for global types.
Added textinput.tsx and a story to display it.

* Removed unecessary css import.

* Corrected stories to enable passing interface props.

* refactored statuscode in Status.tsx

* Fixed props passing bug.

* Extracted getAge to timeUtils.

* Fixed BadgeProps

* Refactored stories.

* fixed bug in timeUtils.tsx

* Fixed problem with storybook. Now comps are showing.

* Reduced weird bloated package.json and made sure story-book still works.
* Increment chart versions [skip ci]

* Minor UI fixes (komodorio#234)

* Add username and password support to Repo add feature (komodorio#228)

* Add username and password support to Repo add in UI

* Add support for Username and Passowrd in Add Repo API

* Display resource health aggregate icons on list of releases (komodorio#235)

* Display aggregate resource health status

* Reuse old API request, show icons

* Take progress indication from deployment conditions

* Improve status

* Cleanup

* Fixups

* Squares approach

* Improve console message in case no k8s connection possible

* Count API docs in user analytics

* Create first Generic Modal + add storybook script

* change default modal button style

* Create anum for button styles

* fix type in console log

* Make the title completely customizable

* change story name

* Make the title optional

* implement auto scroll when height bigger than 500

* fix story example

* Change buttons in modal stories

* fix type

* Revert "Merge branch 'komodorio:main' into create-an-empty-global-modal"

This reverts commit e6aae0b, reversing
changes made to e37c6fe.

* Add className prop for fully customization

* Change buttonStyle to variant

* add id to ModalAction

* Add modal to portal div

* Add background with opacity

* change from type to interface

* fix modal margin

* Add it for the modal storybook

---------

Co-authored-by: komodor-bot <[email protected]>
Co-authored-by: Harshit Mehta <[email protected]>
Co-authored-by: Andrey Pokhilko <[email protected]>
* skeleton for helm-dashboard-v2

* made-necessary changes
@aman1376
Copy link
Author

@chad11111 pls have a look

@chad11111 chad11111 merged commit 07fc302 into komodorio:helm-dashboard-v2 Mar 26, 2023
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