summaryrefslogtreecommitdiff
path: root/src/views/Control
AgeCommit message (Collapse)AuthorFilesLines
2021-08-10IA update: Update control section to operationsSandeepa Singh23-1779/+0
This is the third update to the information architecture changes and has the following changes: - The control section has been updated to operations - The server led page has been removed - The firmware page is moved to operations section Signed-off-by: Sandeepa Singh <sandeepa.singh@ibm.com> Change-Id: I2e23da447890d7bee51892e1f782d5f2db6dded4
2021-06-23kvm: Disconnect on page unload/refreshLei YU1-0/+5
Disconnect the VNC when page is unloaded. Otherwise, it creates a new VNC connection on every page load/refresh, and it causes the KVM failure when it reaches the max connections. Tested: Refresh the KVM page, go to other pages and go back to KVM page, verify the KVM works fine and the connection is closed and re-connected, and verify there is no extra connections. obmc-ikvm[233]: 18/06/2021 10:46:26 Got connection from client 127.0.0.1 obmc-ikvm[233]: 18/06/2021 10:46:26 0 other clients Signed-off-by: Lei YU <yulei.sh@bytedance.com> Change-Id: Iffb3cf34a357e247d4b2aabe8dc17080b50c8da4
2021-05-18Replace use of the term host with serverDerick Montague5-38/+38
This patchset focuses on the global store use for server power operations and impacts several pages in the interface. For consistency, both in the UI and the code base, we are replacing the term host with server. This change impacts both the user and the developer experience. Maintaining consistency in naming allows both developers and users to form a mental model of the overall system and will help remove confusion when interacting with the UI and editing the interface. Testing: 1. Tested shutdown, power on, and reboot and verified the icons and page sections in the site header and the server power operations page update as expected during power operations. 2. Verified the one-time boot operations alert is displayed to the user when changing the boot settings on the server power operations page 3 Tested factory reset and validated the correct information message is displayed to the user with the server power off and on when performing the factory reset functions. 4. Verified the SOL Console status icon updates correctly during power operations. 5. Verified the alert message is displayed on the firmware update page when the server is powered on. Signed-off-by: Derick Montague <derick.montague@ibm.com> Change-Id: I88499a746364ab80f16a8b350d550407d094e95d
2021-05-11Hide and show boot settings override fieldSukanya Pandey2-7/+13
-Hide and show boot settings override field as this field will be available in few systems. -Visibility of this field is dependent on API value which is "BootSourceOverrideTarget@Redfish.AllowableValues" from API "/redfish/v1/Systems/system/" Signed-off-by: Sukanya Pandey <sukapan1@in.ibm.com> Change-Id: Ibfd5d6b1f08e23ddc8d7deb0f6943ab6dd5b3756
2021-05-06Fix toast message for VM Legacy successful mountAlicja Rybak1-1/+1
Add new toast message string serverConnectionEstablished for succesfully mounted image in Legacy mode. Previously serverClosedSuccessfully toast was showed. Tested: Verified that Server connection established toast message shows in webui after mounting image in legacy mode. Signed-off-by: Alicja Rybak <alicja.rybak@intel.com> Change-Id: I79b8bc3243ecc1a29a28f2441d499454747676c2
2021-04-09RW checkbox in "Load image from external server" works opposite wayMichalX Szopinski1-1/+1
Signed-off-by: MichalX Szopinski <michalx.szopinski@intel.com> Change-Id: I1670aa0775a2276963f72ea8a7e8bb0b15c27ee0
2021-03-18Increase SOL console columnsSukanya Pandey1-33/+2
- Terminal window will occupy the full space of its container. Signed-off-by: Sukanya Pandey <sukapan1@in.ibm.com> Change-Id: Ib739b0dc492c7bbd946e49b21815fc8038179163
2021-03-09Add factory reset pageDerick Montague3-0/+232
This new page will be included in the Control section of the primary navigation. The user will be able to choose between two different reset actions. The user can make the following calls: - /redfish/v1/Systems/system/Bios/Actions/Bios.ResetBios - /redfish/v1/Managers/bmc/Actions/Manager.ResetToDefaults Signed-off-by: Derick Montague <derick.montague@ibm.com> Change-Id: I32a10dbce27a03fb84e24d7eae7c44eef9cffea5
2021-02-23Reduce amount of calls for the KVM window 'resize' functionKonstantin Aladyshev1-2/+8
-Use 'beforeDestroy' hook to stop listening on the route change, -Use lodash to throttle the calls. Signed-off-by: Konstantin Aladyshev <aladyshev22@gmail.com> Change-Id: I08781417e3e789dcf3532fbe697efb1403f81fda
2021-02-23Refit SoL terminal on window resizeKonstantin Aladyshev1-0/+14
'xterm' addon used in the "Serial over LAN (SOL) console" page doesn't resize terminal screen on window size change. If the initial window is small after its increase in size there would be gaps in the terminal screen workspace. To solve this use fit addon when window size is changed. For optimization add throttle for the event function and remove listener on page destroy. See https://github.com/openbmc/webui-vue/issues/53 for details. Signed-off-by: Konstantin Aladyshev <aladyshev22@gmail.com> Change-Id: Id3895d43012e8c711a182026cb40aaa64234f9bf
2021-02-23Add test hooks to Power server operations pageSurenNeware1-3/+12
Signed-off-by: Suren Neware <sneware9@in.ibm.com> Change-Id: I541bbf5d75bd1316f1ba3182c6fb37b24894430a
2021-02-02Add power restore policy pageSukanya Pandey2-0/+82
- This page will show how the system boots once power is restored after a power disturbance. - API used to fetch the JSON: /redfish/v1/JsonSchemas/ComputerSystem/ComputerSystem.json - API used to fetch the current policy and to save updated policy: /redfish/v1/Systems/system/ Signed-off-by: Sukanya Pandey <sukapan1@in.ibm.com> Change-Id: I203bd3c5d26071b882cce6b9950cdb3fb1deb212
2021-01-09Add translated cancel title to all modalsSukanya Pandey3-0/+6
Signed-off-by: Sukanya Pandey <sukapan1@in.ibm.com> Change-Id: I24ea692467077eddc7a74b86a9ba56d49818404b
2021-01-08Fix lint warningDerick Montague1-3/+1
The template was removed because it did not meet the vue/no-lone-template rule. It is not clear the reason this template element was added. Signed-off-by: Derick Montague <derick.montague@ibm.com> Change-Id: I26b0f5f6eab94afdeee52e142d2507994c3849b4
2020-12-09Fix loading hangYoshie Muranaka1-1/+6
Import and add loading property to pages that are disabling forms based on LoadingBarMixin loading property. Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: I1669bff2572422327566a3afe023633eb0b729f4
2020-12-02Fix server LED switch value on errorYoshie Muranaka1-3/+1
Add error state handling in the ServerLed store to make sure the UI accurately reflects the state if there is an error. Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: I7f3647df9f5a32e241005eb7058a7cda1e0ba36a
2020-12-02Refactor server LED indicator variable namingDerick Montague1-12/+10
- Make name consistent between both Overview and Server LED views Signed-off-by: Derick Montague <derick.montague@ibm.com> Change-Id: I36601b603bfeb4e9f2b782641dd2813882466c21
2020-12-01Update indicator LED switch using another propertySurenNeware1-6/+4
- Update indicator LED redfish endpoint based on 'LocationIndicatorActive' property. - Updated both ServerLED and Overview page. Signed-off-by: Suren Neware <sneware9@in.ibm.com> Change-Id: Id47133e4834b658d49911be87d93f7985519a6d2
2020-11-23Add new style for form file componentSurenNeware1-11/+18
- Now only add file button will be visible. - And selected file name will come down to the button. - Changed form file component from custom type to plain. Signed-off-by: Suren Neware <sneware9@in.ibm.com> Change-Id: Ib59135691495c4dddfdbbae0e4228b55cdfda2a8
2020-11-13Align button iconsDixsie Wolmers3-23/+6
- Fixes button icon and text alignment - App header buttons to be addressed separately - Button documentation will be addressed in separate commit - Aligns form input buttons: datepicker, clear search, and password toggle - Moves title from icon to button for icon only buttons - Aligns validation icon with form input buttons Signed-off-by: Dixsie Wolmers <dixsie@ibm.com> Change-Id: Ie28d7d7dd7303ab6bf1897d1fa569e1580cc2f9d
2020-11-12Resolve custom-event-name-casing lint warningsSukanya Pandey2-2/+2
Signed-off-by: Sukanya Pandey <sukapan1@in.ibm.com> Change-Id: I9eea4eac3b8cacc216fc9ad1011e51622622e75f
2020-11-04Resolve vue/no-lone-template lint warning messageSukanya Pandey1-25/+23
Signed-off-by: Sukanya Pandey <sukapan1@in.ibm.com> Change-Id: Ib2a7bdff5b4075f56f5beda5eb5861645ffa211b
2020-11-03Update linting packages to use latestDerick Montague11-105/+107
- 99% of changes were small syntax changes that were changed by the lint command. There were a couple of small manual changes to meet the property order patterns established as part of the vue:recommended guidelines. There are rules that were set from errors to warnings and new stories are being opened to address those issues. Testing: - Successfully ran npm run serve - Successfully ran npm run lint - Verified functionality works as expected, e.g. success and failure use cases - Resolved any JavaScript errors thrown to the console Signed-off-by: Derick Montague <derick.montague@ibm.com> Change-Id: Ie082f31c73ccbe8a60afa8f88a9ef6dbf33d9fd2
2020-10-19Update relative path imports to use '@' aliasSurenNeware2-4/+4
- Add '@/' instead of '../../../' Signed-off-by: Suren Neware <sneware9@in.ibm.com> Change-Id: Ida1dc26f2bd62f38914a74b729ee8fd143c360ac
2020-10-05Add changes related to SOL pageSukanya Pandey2-43/+111
-Changes incorporated can be referred through below link: -https://github.com/openbmc/webui-vue/issues/25 Signed-off-by: Sukanya Pandey <sukapan1@in.ibm.com> Change-Id: I39d79259e0470d11c15e596908eefee7a799262a
2020-09-29Fix responsiveness of KVMMateusz Gapski2-48/+113
More info: https://github.com/openbmc/webui-vue/issues/24 Signed-off-by: Mateusz Gapski <mateuszx.gapski@intel.com> Change-Id: I150e7816ea08f462300566276ddbfc117e9f2e0c
2020-09-16Add loading image from external serverMateusz Gapski2-10/+213
Signed-off-by: Mateusz Gapski <mateuszx.gapski@intel.com> Change-Id: Ie9793b25fdee0f438d64aafe0978d75025800cb8
2020-09-09Hide loader on Reboot BMC pageYoshie Muranaka1-0/+4
Added beforeRouteLeave component guard to make sure loader bar is hidden before navigating to a new page. This will make sure that the loading bar always starts from 0, if the user navigates to another page before the inital load completes. Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: I16e57203123069160575f4c288bdbc5bad44e669
2020-09-01Changed switch to checkbox in boot settings formSurenNeware1-5/+2
- On the Server power operations page changed the switch to checkbox since it has save button. Signed-off-by: Suren Neware <sneware9@in.ibm.com> Change-Id: I9def65f11012c535956b875107c28e351754f4e2
2020-08-28Add VirtualMedia pageMateusz Gapski2-0/+155
More info: https://github.com/openbmc/webui-vue/issues/7 Signed-off-by: Mateusz Gapski <mateuszx.gapski@intel.com> Change-Id: I68f2074e77301c68c425f1e661988c751224b713
2020-08-28Add info type alert to the messageSurenNeware1-7/+10
- Add info type alert to the message when Server power operation is in progress. - Changed bootstrap b-alert component to our custom alert component to remove bootstrap dependency. Signed-off-by: Suren Neware <sneware9@in.ibm.com> Change-Id: Ic1c02f06303969d81f5d35914c45c5d373b73356
2020-08-28Implement consistent save button patternDixsie Wolmers1-6/+1
- UX audit determined that we will always keep the primary form action (save/submit) enabled Signed-off-by: Dixsie Wolmers <dixsie@ibm.com> Change-Id: Ie340f8deb673463c21149b645d6d5686806ebac9
2020-08-21Add last reset time to reboot bmc pageDixsie Wolmers1-1/+27
- Timestamp is displayed to inform user of last power operation Signed-off-by: Dixsie Wolmers <dixsie@ibm.com> Change-Id: Ia4d95bced701b04f1099d020ee062f06d16ae8dc
2020-08-21Add last reset time to server power operations pageDixsie Wolmers2-13/+45
- Timestamp is displayed to inform user of last power operation Signed-off-by: Dixsie Wolmers <dixsie@ibm.com> Change-Id: I14c23ff56b3a0cf134c0ad2d831290971d93e293
2020-08-12Update server power operations viewable actionsYoshie Muranaka1-4/+1
The server power operations page should show power operations if the server is in an error state. This update will make sure options are visible as long as the status is not 'off' or an operation is in progress. Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: I8d1211bd1ccaa8b5ec69a0dda4556eb97fc40e91
2020-07-29Disable elements on page during loadingMateusz Gapski1-56/+58
Pages: Network settings, Date and time, LDAP, Manage power usage More details: https://github.com/openbmc/webui-vue/issues/15 Signed-off-by: Mateusz Gapski <mateuszx.gapski@intel.com> Change-Id: I02c5aaff180a4ce445b7135403a169a8db3704da
2020-07-28Add test hooks to server LED pageSurenNeware1-0/+1
-Added test id to switch component. Signed-off-by: Suren Neware <sneware9@in.ibm.com> Change-Id: I86f7f6d24f2ec70623d9c537755f5760052046cd
2020-07-28Update form fields to match style guideDixsie Wolmers1-7/+1
Updates inputs, select, form field background color, validation text size, and field focus state. New styles have a darker form field background color. Form fields on dark backgrounds will remain white. Signed-off-by: Dixsie Wolmers <dixsie@ibm.com> Change-Id: Ifa14a57f764335b196b129e6614d7a1f1c27d7ad
2020-07-27Add code to refactor the server LED componentSurenNeware1-10/+20
-Resolved issue with toast notification appearing on page load. Signed-off-by: Suren Neware <sneware9@in.ibm.com> Change-Id: I03e76951bf9e4f92eb6a6a6fcffa09ef1be2f811
2020-07-27Add ability to customize theme stylesYoshie Muranaka2-3/+0
Showcases how different themes/styles can be supported using .env variables. If an environemnt name is specified during the build process, an overrides file will be pulled in to allow modifications to color and font definitions. This commit includes possible style modifications with the openpower env name as an example. To see the openpower changes, add the variable definition VUE_APP_NAME="openpower" to your .env.development.local file or build using 'npm run build -- --mode openpower' - Moves helper imports into vue config to allow for specific import order - Removed helper imports in SFCs Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: Iaf7a59c24fda06a7b74e23f2f042fb3300cb2056
2020-07-22Add test hooks to server power operationsSukanya Pandey1-3/+19
Signed-off-by: Sukanya Pandey <sukapan1@in.ibm.com> Change-Id: Ie5d9ffe1bf6ce7850824344cf5c413666fb2071b
2020-07-22KVM consoleMateusz Gapski3-0/+132
- The kvm console with using novnc library Signed-off-by: Mateusz Gapski <mateuszx.gapski@intel.com> Change-Id: Icfb7643595d8c17231ca3671753d6de971525bd3
2020-07-20Add test hooks to manage power usageSukanya Pandey1-1/+7
Signed-off-by: Sukanya Pandey <sukapan1@in.ibm.com> Change-Id: Ifbbb7b9c23e2be28dec61471db090462272b1ffe
2020-07-15Add test hook to Reboot BMC pageYoshie Muranaka1-1/+6
Adds data attribute test hook to single reboot button on page Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: I82b64c69472e31efc866a0c4f10699fe38369694
2020-07-09Add code for Serial Over LANSukanya Pandey3-0/+131
- The output of serial connection of the hosts on the workstation terminal. - The library used is xterm which will provide the terminal to show the data. Signed-off-by: Sukanya Pandey <sukapan1@in.ibm.com> Change-Id: I6000cae42f237fffe216e2079cf2a6c39db236fd
2020-07-06Add Toast Notification to ServerLED pageSurenNeware1-4/+8
- Added Toast notification when Server LED turning On/Off. Signed-off-by: Suren Neware <sneware9@in.ibm.com> Change-Id: I8dda963275f7083ae5c8804831c1bb676d7bbcc4
2020-06-17Manage power usage loaderSukanya Pandey1-2/+15
-Show the loading bar while making the call to the APIs during both GET and PATCH call. Signed-off-by: Sukanya Pandey <sukapan1@in.ibm.com> Change-Id: I96db90a676ded1684218dcddc227ca151f712dc2
2020-06-16Add page LoaderSurenNeware1-1/+11
- Add page Loader to Server LED page - Tested responsive layout on supported viewport sizes Signed-off-by: Suren Neware <sneware9@in.ibm.com> Change-Id: I0ca198c8ee1354f66a677746c29c8cb45f361eab
2020-05-21Add manage power usage pageSukanya Pandey2-0/+141
-The page is used to control the power. -Maximum power can be set between 1 to 10000. -The API used to get and set the power limit:/redfish/v1/Chassis/chassis/Power Signed-off-by: Sukanya Pandey <sukapan1@in.ibm.com> Change-Id: I1cab4876e9149d92de75014d7680ac11410ca4fe
2020-05-20Add ServerLED pageSurenNeware2-0/+54
Added ability to turn on/off Indicator LED. Signed-off-by: Suren Neware <sneware9@in.ibm.com> Change-Id: Ia59eb0214530906dea840ff18ff22fc913870bb9