summaryrefslogtreecommitdiffstats
path: root/app/common
Commit message (Collapse)AuthorAgeFilesLines
...
* Extending certificate table with Issuer and Subject columns.Zbigniew Kurzynski2019-08-051-2/+14
| | | | | | | | | | | | | This commit introduce two new columns on certificate table. It should help user to differentiate multiple mTLS certificates. Date format was changed to 'medium' one to accommodate two new columns. Small corrections were made to action button paddings to make the icon better centered. Tested: GUI tests were done on Chromium v74.0.3729 browser. Desktop and mobile version. Signed-off-by: Zbigniew Kurzynski <zbigniew.kurzynski@intel.com> Change-Id: I660b74dd8b50f854ebbdad1890bbf99b3675f4cd
* Remove Associations property from inventory itemGunnar Mills2019-07-311-5/+26
| | | | | | | | | | | | | | | | | | | | | | | If the inventory item had a Assocations interface, it would have a Assocations property. This Assocations property showed on the inventory panel under the individual inventory item dropdown. There can be a lot of Associations, the chassis for example associates to a lot of sensors, and they are long, full D-Bus paths. Not very useful and can overwhelm the dropdown so remove the property. One day we might want something to associate an inventory item to an object (e.g. sensors). This would require design changes to accommodate this. Support both the old and new Associations interface. See https://github.com/openbmc/openbmc/issues/3584 Tested: Built an image and loaded on a Witherspoon. No longer see this property. Change-Id: Ib67e36c7536a42eb56e65b6dbe6fd8798976ee08 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
* Update icons to fix sizing and overflow issuesYoshie Muranaka2019-07-292-2/+7
| | | | | | | | | | | | Re-exported icon-control.svg and icon-replace.svg to resolve issues around sizing and overflow. These new icons will allow us to remove CSS 'hacks' in place to prevent unexpected focus state overflows and allow icon resizing by changing the width on the icon class name. Small scss updates were included to account for this fix. Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: I07bbe5bb0c82ee653f2342089c0c1373a51cc168
* Refactor power operationsYoshie Muranaka2019-07-292-30/+0
| | | | | | | | | | | | | | | | | | Refactored power operations to use checkHostStatus function that checks host_status property provided by dataService, instead of polling for host/chassis status. Added property to check when a power operation is in progress. This property will show/hide the in progress message and make other operations unavailable until the operation completes. We were previously checking whether the server_state property was set to 'Unreachable', which enables the Power on button in the middle of a reboot, since the server_state changes to 'Off' during reboot. - Removed unused $timeout service Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: I234749a9a875c7370b52bd23ed74d6e9617cf5e2
* Add 403 $location redirect to http interceptor serviceYoshie Muranaka2019-07-242-2/+18
| | | | | | | | | | | | This is a temporary solution to redirect any 403 responses to a dedicated 403 'Unauthorized' page. This could occur on inital navigation to a page or while attempting an operation. Once permission role mapping is defined, the code should be updated to handle 403 responses in context of user attempted actions. Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: Ia207f2bcdd87fb20888fe6a1588d0ccd310e484c
* Fix array index out of bounds exceptionGeorge Liu2019-07-221-6/+9
| | | | | | | | | | | | We should be verified string length when the phosphor-webui calls the getFirmwares function to handle the property value of ExtenVersion. because it is risky to get the first address of array when that is empty Tested: Built phosphor-webui and get a effective array of titlePart via console from WEBUI. Signed-off-by: George Liu <liuxiwei@inspur.com> Change-Id: Ife08d208eb7fbeb71284ae0700fb5d871343a298
* Clean up color valuesYoshie Muranaka2019-07-0926-494/+265
| | | | | | | | | | | | | This update will clean up slight color variations in the code base by creating and using Sass color variables instead of hex values. Available colors are defined in colors.scss. Any usage of CSS color properties should refer to the mapped color variables in colors.scss. - Removed tags.scss file since tag components no longer used Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: I045030a158469e59d07a9fa8cd8aa9f125f0d383
* Create certificate management pagebeccabroek2019-07-098-3/+193
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Displays certificates and the ability to add up to one of each type of certificate (as limited by the backend implementation). HTTPS certificate and LDAP client cert are implemented in this commit, with the ability to add more types as needed by adding them to the constants.js CERTIFICATE_TYPES array. Also provides the ability to replace a certificate once it is added. Resolves openbmc/phosphor-webui#43 Tested: loaded onto a witherspoon and able to view and replace both the HTTPS certificate and the LDAP certificate. GUI only allows to upload an LDAP certificate if one doesn't already exist. The GUI limits the user to one file per type as expected at this time and provides the appropriate validation messages. Alert messages appear above the table if the certificate is expired or within 30 days of expiring. Change-Id: I345267280ecd3cb257e9304886cde9ebb69b1240 Signed-off-by: beccabroek <beccabroek@gmail.com> Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com>
* Fix the opacity of the loading screenEd Tanous2019-07-021-3/+1
| | | | | | | | | | | | | | | | | Currently the loading screen has a 0.7 opacity, which leads to some strange behaviors at times when changing screens. Old scopes pop under new ones, leading to a page "jump" once the loading is complete. Making the loading page fully opaque and removing the transition effect reduces this behavior, and makes the page transitions feel cleaner. Tested: Loaded webui locally. Observed problem goes away when navigating between pages. Navigated between several pages to verify, including pages with a lot of static data. Signed-off-by: Ed Tanous <ed.tanous@intel.com> Change-Id: I5549d5c49901429f6e9c353524c6f7060725c2ea
* Rename option to enable Redfish EventlogGunnar Mills2019-06-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | IBM has a need for more granular options for turning panels off and on. Renamed redfishSupportEnabled, redfishEventLogDisabled. By default, it continues to be enabled. Redfish is used for user management already so this setting was a bit of misnomer (i.e. it did not "turn off" Redfish use). LDAP and Certificates, both in review, also use Redfish. Moved to "Disable" so that if not defined in the config.json, the panel is still visible. A meta layer has to overwrite the config.json with "redfishEventLogDisabled" : true to make the panel not appear on the navigation. Pushed a patch here to disable the Redfish Event Log page in the meta-openpower layer: https://gerrit.openbmc-project.xyz/c/openbmc/meta-openpower/+/22923 Pushed a patch here to remove the redfishSupportEnabled in Intel's layer: https://gerrit.openbmc-project.xyz/c/openbmc/meta-intel/+/22870 An improvement would be to not import if disabled. Tested: Built Witherspoon with 22923. Did not see "System logs" panel. Change-Id: I8722f43191ec73d21d6a181223d00256dbcd062f Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
* Capitalize System logs correctlyGunnar Mills2019-06-271-1/+1
| | | | | | | | | The other panels capitalize the first word only. E.g. Hardware status, Server power operations, and Manage power usage. Follow this standard. Change-Id: Icbbc2df25e1a3c9dd5e44db4c1d3f6a9f8252144 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
* Fix cold reboot errorYoshie Muranaka2019-06-261-5/+6
| | | | | | | | | | | | Cold reboot will check the host status by referring to the server_state property in the dataService instead of making API requests to check host/chassis status. TODO: Refactor other power control options to follow a similar pattern. Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: I74b1b78fa39caee514fbaea8492c8a5ad6f8145b
* Consolidate button stylesYoshie Muranaka2019-06-2121-265/+261
| | | | | | | | | | | | | | | | | | | | | | | | | This patchset will create consistent button styling according to the styleguide and remove redundant button styles by creating reusable button classes. This patchset also implements a consistent strategy for including icon assets. Currently, svg icons are imported as CSS background images or inlined into the markup. Inlining an svg is preferred, especially when used with buttons or links so the colors can be easily changed for different states (hover, focus, disabled) without having to request variants. The icon provider allows us to inline svgs without cluttering the markup. Webpack config was adjusted to use svg-inline-loader when resolving svgs that are used by the icon provider directive. - All svgs were optimized to remove unncessary information. - Removed unused svg color variants - Moved icons used by icon provider to separate directory to avoid Webpack parsing the files twice - Small changes to navigation icons Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: I1ca214b74fc502e6b6e760cfee88b48110237c43
* Add remote logging serverYoshie Muranaka2019-06-214-1/+109
| | | | | | | | | | | | | Remote logging enables the user to configure a remote server to stream out local logs. This feature will be available on the Event Log page. The user can add a remote server, edit/change an existing server configuration and remove/disable the remote server. Resolves openbmc/phosphor-webui#68 Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: I8284cbdbdaaf85f5c95f237efc72290c66904b40
* Sort sensors alphanumericallyAlexander Filippov2019-06-181-0/+5
| | | | | | | | | Sort the list of sensors in alphanumeric order. Relatives openbmc/openbmc#3386 Change-Id: Ie30f48417038a2cdf8c67de6ac357f078c8aaae7 Signed-off-by: Alexander Filippov <a.filippov@yadro.com>
* Fix Unknown Provider errorYoshie Muranaka2019-06-141-22/+24
| | | | | | | | | | | | This patchset will fix the Unknown Provider error caused by the toggle-flag directive by declaring the required $document dependency. Tested: Navigated to Event Log page and no longer seeing the error in the browser console. Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: I446f0a1d120526dfa250862018dfa09b289cae74
* Change button styles from rounded to straight cornersYoshie Muranaka2019-05-316-28/+38
| | | | | | | | | | | | | | This will create more visual consistency between the components in the GUI since there are elements, such as text fields and dropdowns that are styled with straight corners. - Removes border radius from buttons - Removes some redundant styles - Adds input types that aren't currently inheriting defined styles Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: I6ff1bde91e2e57df01484dd20003925cd914ffa2
* Fix tablet alignment issues for event logsYoshie Muranaka2019-05-291-0/+7
| | | | | | | | | | | | | | | | | This will make sure our event log content is properly aligned on tablet and desktop views. It will also make the date/time value on the server overview page always display underneath the 'BMC time' label in a destkop view–currently the date value will wrap to a new line if the string is too long. - Update markup to use Foundation grid layout classes on the server overview event log table Tested: Event log tables on server overview page and event log page Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: I7d765ebbe679f954e606d1d25e2182d983a7b3f3
* Fix the tabbing order in the primary and secondary navigationYoshie Muranaka2019-05-292-138/+157
| | | | | | | | | | | | | | The main navigation will follow a natural tabbing order. When the secondary menu is expanded with the keyboard, the first item in the secondary menu will be in focus. Tabbing after the last item in the secondary menu will return focus to the primary menu. - Restructures markup so secondary menu is nested in primary navigation Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: I4ecb17ef6721ee443310f81e1554620352c145a4
* Add .ng-leave and .ng-enter rulesets for page transitionDerick Montague2019-05-292-35/+82
| | | | | | | | | | | | | | | Adding ngAnimation dependency created added animation to pages during route or location changes. Added transitions to create an elegant transition. Tested: I navigated to every page including logging in and out in Chrome, Firefox and Safari to assure all browsers handle the transition consistently. Resolves openbmc/phosphor-webui#86 Signed-off-by: Derick Montague <derick.montague@ibm.com> Change-Id: I14fa1bd790e80f977b7a0ccceccc3eb20ce33ae6
* Remove unused errors.htmlGunnar Mills2019-05-233-40/+0
| | | | | | | | | | | | | | | | | | | Also removed errorModalDetails and displayErrorModal from dataService since they are no longer used. errors.html was only active when displayErrorModal was true. displayErrorModal was only true when activateErrorModal was called. activateErrorModal was removed in a previous commit. activateErrorModal's only use was removed here: https://github.com/openbmc/phosphor-webui/commit/a38a287ccaa97eddc9df7333e33357b14772d4c6#diff-65affd2488457363c5b9e9266258c3b8 Tested: Searched the repo. Built an image and loaded onto a Witherspoon. No regressions observed. Change-Id: I96e26dd3817d7b02bbce74b4cc093b75dab669ed Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
* Remove unused chassis_stateGunnar Mills2019-05-231-1/+0
| | | | | | | | | | Only display the server/host state on the GUI. Tested: Searched the repo for 'chassis_state'. Built an image, loaded on a Witherspoon, power on/off, and verified correct host state. Change-Id: Ibdefeef7744e08cd737410741a1402ccb9e69200 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
* Remove unused activateErrorModalGunnar Mills2019-05-232-25/+0
| | | | | | | | | | | | | | | activateErrorModal was unused. Also remove Constants.ERROR_MODAL since activateErrorModal was the only place which used it. https://github.com/openbmc/phosphor-webui/commit/a1d238f3a53db2ec3cc4c2fd52fe78738b37968b#diff-65affd2488457363c5b9e9266258c3b8 added activateErrorModal / deactivateErrorModal. https://github.com/openbmc/phosphor-webui/commit/a38a287ccaa97eddc9df7333e33357b14772d4c6#diff-65affd2488457363c5b9e9266258c3b8 removed its use. Tested: Searched the repo and when testing the GUI on a a Witherspoon, toasts worked as expected. Change-Id: I98107f397fab039123f8507cd7bbac2ef8e5fb7b Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
* Remove unused server_statusGunnar Mills2019-05-233-7/+0
| | | | | | | | | | | | dataService.server_status is unused. server_status was set to a HOST_STATE constants which are now unused. Removed the HOST_STATE constants also. Tested: Searched the repo for 'server_status' and 'HOST_STATE' Built an image, loaded on a Witherspoon, power on/off, and verified correct host state. Change-Id: I10a915852634277bb5261e113b9706857acf66d6 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
* Virtual media pagebeccabroek2019-05-233-19/+59
| | | | | | | | | | | | | | | | | | | | | | | | Adds page to manage virtual media devices. User selects file and pushes 'start' button to establish websocket connection. nbdServerService added to provide ability for user to navigate away from the page and return with the ability to see the current active sessions. Currently only supports 1 Virtual Media device. Resolves openbmc/phosphor-webui#40 Tested: uploaded ubuntu image file, started the connection and mounted virtual media device from host console. Able to see Ubuntu image file. Also uploaded file and navigated away from the page, checking that the websocket remained open and was sending / recieving messages. Finally, tested that when connection was stopped, 'USB disconnect' log was present in host console. Change-Id: Ia3155d27cbcfef94c2753dde1303a151e08847cc Signed-off-by: beccabroek <beccabroek@gmail.com> Signed-off-by: Gunnar Mills <gmills@us.ibm.com> Signed-off-by: Derick Montague <derick.montague@ibm.com>
* Remove unused hostShutdownGunnar Mills2019-05-171-23/+0
| | | | | | | | | | | | | hostShutdown in api-utils is not used. The Orderly shutdown on the power operations page calls APIUtils.hostPowerOff. The immediate shutdown calls APIUtils.chassisPowerOff. Tested: Did not. Searched the code and double checked the firmware panel and power operations panel. Change-Id: I6f0d209c3d2f13539bbe3ed2405221e902aaf590 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
* Fix activate image and reboot BMCDixsie Wolmers2019-05-131-18/+3
| | | | | | | | | | | | | - Change bmcReboot callback in apiutils.js to HTTP request that returns a promise that is resolved with response object - Remove emitted 'user-logged-in' as it is not needed to reboot BMC on firmware controller and bmc reboot controller - Add toast message for visual confirmation of successful BMC reboot Tested: On Server Configuration > Firmware page uploaded new image to activate and automatically reboot. After 2-3 minutes confirmed image activated and then BMC rebooted after image activation. Tested Server Control > Reboot BMC page by selecting Reboot BMC, confirmed BMC rebooted. Resolves openbmc/phosphor-webui#79 Signed-off-by: Dixsie Wolmers <dixsiew@gmail.com> Change-Id: Ied6809ad1ed6cc3c73ac5c818c7a06607810c396
* Fix system overview edit hostname form validationdixsie2019-05-082-3/+4
| | | | | | | | | | | | | | - Add pattern for no spaces - Fix character count - Prepopulate hostname in input field - Show error for invalid input - Improve form accessibility - Correct global disabled primary button style Resolves openbmc/phosphor-webui#71 Signed-off-by: Dixsie Wolmers <dixsiew@gmail.com> Change-Id: Ia0601ac7c52229d0606dc5b13397b468fa81426d
* Add dropdown caret to time owner dropdown on Date and Time SettingsYoshie Muranaka2019-05-073-25/+23
| | | | | | | | | | | | | | - Use background-image strategy to add caret to dropdowns - Standardize implementation by including mixin to dropdown__button class and removing styled pseudo element Resolves ibm-openbmc/dev#478 Tested: Running locally on Chrome only. Ran into network request errors for newly added svg assets when mounting overlay Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: I714c2515282676f368eafb2560177d2935680e23
* Revert "WebUI: Sensors page modifications"Gunnar Mills2019-05-011-39/+142
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 2f481e4cb83f0c72a9f3aad11431e4abcf5d632c. "/xyz/openbmc_project/sensors/power/" sensors (e.g. p0_vcs_power) and "/xyz/openbmc_project/sensors/current/" sensors (e.g. p0_vcs_current) are no longer on the GUI Sensors Page. Since all sensors do not map to Thermal or Power, the SensorCollection, /redfish/v1/Chassis/{ChassisId}/Sensors, needs to be implemented before we move the GUI sensors page over to Redfish. The SensorCollection contains all sensors not covered elsewhere in the model. The SensorCollection will contain all sensors under /current and all non-powersupply sensors under /power. IBM is planning on working on the SensorCollection, it will be sometime before the code is in because of this, reverting moving the GUI sensor page over to Redfish. Apologies on not catching this in the review. For more information see: https://redfishforum.com/thread/190/sensorcollection-contain-all-sensors-chassis https://redfish.dmtf.org/schemas/SensorCollection.json Tested: The current and power sensors are back on the Sensor page. Change-Id: Ia818fc05b49a8181b71f8756a6066c27e94dc46e Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
* Implement KVM in webuiEd tanous2019-04-161-5/+7
| | | | | | | | | | | | | | | This patchset adds the infrastructure to allow KVM sessions through the webui. A websocket capable VNC/RFB connection on the BMC is needed for KVM sessions. To access, navigate to Server control -> KVM. Tested: Ran obmc-ikvm on the BMC, added a KVM Handler to Phosphor Rest Server, and was able to establish a KVM session in the webui on a Witherspoon. Change-Id: I7dda5bec41d270ae8d0913697714d4df4ec3a257 Signed-off-by: Ed Tanous <ed.tanous@intel.com> Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
* Firmware page upload not working in some casesbeccabroek2019-04-111-18/+20
| | | | | | | | | | | | | | | | | | | | | | | | Upload was not working in some cases because of two separate issues. Inline onchange is no longer executed in Chrome. This removes the inline onchange event since it was updating a variable not being used anyway. This also updates the click-outside directive as it was missing [ ] brackets that were necessary and throwing an error in the console when loaded onto a witherspoon. see https://developer.chrome.com/extensions/contentSecurityPolicy and https://stackoverflow.com/questions/35126898/error-after-minifica tion-of-angular-js-error-injectorunpr-unknown-provider Resolves openbmc/phosphor-webui#77 Tested: Able to upload image onto Witherspoon. Click-outside directive worked when GUI was mounted on a Witherspoon Change-Id: I7b1c385751e114b2d31f516e391dd0737117ab42 Signed-off-by: beccabroek <beccabroek@gmail.com>
* Resolve accessibility isssuesDerick Montague2019-04-085-19/+25
| | | | | | | | | | | | | | | | | | - Remove unecessary aria-roles - Associate label elements with form elements - Remove extraneous markup on Network settings page - Update generic markup to use definition list when appropriate - Add aria-labels and aria-expanded to accordion triggers Tested: Accessibility issues tested in using Lighthouse in Chrome Developer tools Audit section and Dequeue Axe extension. Manually tested clicking on labels set focus on the form elements. Visually tested of the Network Settings page in Chrome, Firefox, and Safari to verify layout changes. Resolves openbmc/phosphor-webui#76 Signed-off-by: Derick Montague <derick.montague@ibm.com> Change-Id: Ib974c623e9d3b74e74e1f374c21e8191732ec26a
* WebUI: Sensors page modificationsAppaRao Puli2019-04-051-142/+39
| | | | | | | | | | | | | | Modified sensors page to use Redfish as backend. Also added threshold sensor values in page view. Tested By: Loaded webui page and tested all operations. - Sensors page load and layout. - Search Filter and Severity filters. - Export functionality. Change-Id: Ic799453ffcd17e9a69e073a12173b4e97a928458 Signed-off-by: AppaRao Puli <apparao.puli@linux.intel.com>
* User management: Remove disable redfish supportGunnar Mills2019-03-301-299/+81
| | | | | | | | | | | | | | | | | | | | | | | Removed redfishSupportEnabled = false for the user management page. The default is redfishSupportEnabled = true and no meta layers have redfishSupportEnabled = false so unused upstream. When redfishSupportEnabled = false, the /xyz/openbmc_project/user/<user>/action/SetPassword API is called. Neither bmcweb or phosphor-rest-server have a SetPassword API and so the user management page did not work when redfishSupportEnabled = false. The SetPassword API was removed when the new backend user management code was added, it was removed for security concerns. See https://github.com/openbmc/openbmc/issues/3454 for more info. Tested: On a Witherspoon, added users, updated roles and passwords, and deleted users. Change-Id: I3d9e30c0fc655fb23dee38fa5eeb52239c9faa64 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
* Update hex values to meet WCAG AA Guidelines for color contrastDerick Montague2019-03-282-5/+5
| | | | | | | | | | | | | | | - Change #3C6DF0 to #2D60E5 - Change #E62325 to #DA1416 Tested: I spot tested the Server Overview, the Event log and System logs pages to verify color changes and overall validate the update does not negatively impact the visual integrity of the app. Resolves openbmc/phosphor-webui#70 Signed-off-by: Derick Montague <derick.montague@ibm.com> Change-Id: I2315527a98937176b3e3a2a2118e1798fa4c9e5d
* WebUI: Support for configure failed login attemptsAppaRao Puli2019-03-271-0/+33
| | | | | | | | | | | | | | | | This commit adds the support for failed login attempts configuration. With this user can configure the number of failed login attempts and account lockout duration. This also adds provision to view other user account properties like MaxPassword, MinPassword etc. Tested By: Loaded the Webui and modified values like Failed login Attempts and Account lockout duration. Also tested other account properties view. Change-Id: I6abd5a16771956640ba6b6d81c1c7ad9503067b1 Signed-off-by: AppaRao Puli <apparao.puli@linux.intel.com>
* Fix login error messagebeccabroek2019-03-271-2/+2
| | | | | | | | | | | | | | | | Respose for invalid credentials changed and login page was no longer displaying the correct error message to the user when invalid credentials were entered. Resolves openbmc/phosphor-webui#72 Tested: Logged in with incorrect credentials and saw the correct message. Also logged in with an unreachable host and saw that that message was displaying correctly. Change-Id: I65cc6d6a061986568aded09555c5f75bcd59fe56 Signed-off-by: beccabroek <beccabroek@gmail.com>
* Center modals and fix sizingbeccabroek2019-03-261-23/+24
| | | | | | | | | | | | | | | | | | Previously the modals were not centered on the screen and the size of the modal was set to 50% of the screen, leading to a lot of white space within modals with less content. This sizes the modal based on the amount of content within and centers the modal. Also adds the grey modal overlay to the 'confirm network settings' modal to be consistent with the other pages. Resolves openbmc/phosphor-webui#35 Tested: Viewed all modals currently in GUI (Firmware page, network page, and overview page) and modals were sized correctly and appeared with the modal overlay in the background. Change-Id: Ie35d179810d36b8bcbbf39dc1302e773387fa788 Signed-off-by: beccabroek <beccabroek@gmail.com>
* WebUI: Adding Filters support to system logsAppaRao Puli2019-03-192-0/+78
| | | | | | | | | | | | | | Adding Filter support to system logs page - Severity filter. - Date filter with start and end date. - Filter by Sensort Type. Tested By: Loaded System logs page with type selection 'Event' and check all filters. Change-Id: I41eba4cd59c0f3c2933637bf0e207a3eca3214f1 Signed-off-by: AppaRao Puli <apparao.puli@linux.intel.com>
* WebUI system logs implementationAppaRao Puli2019-03-194-10/+78
| | | | | | | | | | | | | | | | | | | | This commit implements the webui logs page which will show all system logs depends on user selection( SEL or Event or Oem). This is based out of redfish systems log services. - View logs with pagination. - Search filter for logs view. - Sort option with Type, Id, Severity, Date. - Clear logs. - Export logs. UnitTest: - Existing bmcweb send the system logs of EntryType "Event". So Loaded UI, selected Type "Event" and validated all the above mentioned operations. Change-Id: I0384e475f7913ca66b6db5d64831583fb382f8d5 Signed-off-by: AppaRao Puli <apparao.puli@linux.intel.com>
* Secondary button text colorbeccabroek2019-03-111-1/+1
| | | | | | | | | Changes color of secondary button text to be more readable. Resolves openbmc/phosphor-webui#66 Change-Id: I3d7622a3556139a8c984590bcc8db5c34cefc73e Signed-off-by: beccabroek <beccabroek@gmail.com>
* Set SOL Screen dynamicallyYang Cheng2019-03-061-1/+44
| | | | | | | | | | | | | | | | | | | | | | | To make EWS SOL Screen size match the real BIOS console, need to set the screen dynamically. Web page get terminal resolution from config.json and calculate frame width and height base on the resolution and fontsize. Web page use this width and height to change the screen size. If no related configuration in config.json the SOL Screen will keep the original size before this code change. Tested By: Add "customConsoleDisplaySize": {"width": 100, "height": 32} to config.json, and open EWS Server Serial over LAN console page, the size of console client can match 100*32 characters. Set console redirection to 100*32 in BIOS setup page, the page show correctly in this SOL client in EWS. After enter OS, the linux console can show correctly in SOL client. After remove "customConsoleDisplaySize" in config.json, the size of console client in EWS show the same as the code change in this patch. Change-Id: I09bfe4e67db1387abcd57ee3a13b912957cf95b0 Signed-off-by: Yang Cheng <cheng.c.yang@linux.intel.com>
* Hardware: Filter out associationsGunnar Mills2019-03-051-0/+7
| | | | | | | | | | | | | | | Don't display associations on the "Hardware status" page. All and only associations have the "endpoints" property, use this is to filter. An example of an association is from the BMC inventory item to BMC software images. Tested: Loaded on a Witherspoon and no longer see the "Activation" item on the page. This "Activation" item was an association. All other items appear as normal. Change-Id: I6e6e24737b0a19e91dbd7eb691dd3d78f1b4c12c Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
* Add Custom Key for SOL on webuiYang Cheng2019-03-042-0/+139
| | | | | | | | | | | | | | | | | | | | | | To support VT100+ extensions for SOL on webui, add custom key into xtermjs to handle key Backspace, DEL, HOME, END, INSERT, PAGE UP, PAGE DOWN, F1 - F12. Tested By: After added item "customKeyEnable": true, "keyType" : "VT100+" into iconfig.json. Under EFI SHELL: Backspace, DEL, HOME, END, INSERT, PAGE UP, PAGE DOWN, F1 - F12 keys can work as local keyboard in Web SOL. Under linux with $TERM=vt100+: Backspace, DEL, HOME, END, INSERT, PAGE UP, PAGE DOWN, F1 - F12 keys can work as local keyboard in Web SOL. If not add "customKeyEnable" or "keyType", into config.json, Backspace, DEL, HOME, END, INSERT, PAGE UP, PAGE DOWN, F1 - F12 keys can work correctly in linux OS with $TERM=vt220 in SOL. Other keys such as a-z can always work in SOL no matter "customKeyEnable" or "keyType" is inserted into config.json. Change-Id: Ifb196ec37080781033c0d6a3b0688baa7d0080b5 Signed-off-by: Cheng C Yang <cheng.c.yang@linux.intel.com>
* Clean up headersbeccabroek2019-02-194-28/+15
| | | | | | | | | | | | | | Updates headers to match style guide and makes them consistent throughout pages in the GUI. Removes instances where a header element existed and a different header style was being applied. For example, <h2 class="h4"> Tested: Ran GUI locally and verified that headers look consistent and have the appropriate sizing while using Chrome, Firefox and Safari. Change-Id: I187136298ed2bfd36c40c2b80d5a4f20947cbe56 Signed-off-by: beccabroek <beccabroek@gmail.com>
* Fix layout for responsive design: HeaderRyan Arnell2019-02-152-9/+11
| | | | | | | | | Get rid of "BMC host/IP address" & "server info" text, make the buttons tighter and make more buttons visible in header so that the information is more useful to users in tablet view. Change-Id: I6b4166390b1828fca265e7bb56f51106b4e6f21b Signed-off-by: Ryan Arnell <iffy.ryan@ibm.com>
* Fix login and overview pages in Safaribeccabroek2019-02-121-1/+1
| | | | | | | | | | | | | | Bootstrap 4 columns in Safari are not working as expected, causing issues with the layout on the login and overview pages. Small CSS change resolves issue, see https://github.com/twbs/bootstrap/issues/24219 Tested: Layout appears to be fixed using Safari. No pages are affected visually by the change when using Chrome or Firefox. Change-Id: I79bf6ef3734703e4f610ee7f95b75625538761c2 Signed-off-by: beccabroek <beccabroek@gmail.com>
* Add role alert to toastsbeccabroek2019-02-062-10/+28
| | | | | | | | | | For accessibility reasons, 'role="alert" is required for toast messages. This notifies screen readers that an error or success message has appeared. Adds a service layer for toast messages that adds the role attribute to the message. Change-Id: Ic4dbf5556337eea589de5692c1b4c3323e771813 Signed-off-by: beccabroek <beccabroek@gmail.com>
* Form validation on login pagebeccabroek2019-02-027-101/+47
| | | | | | | | | | | | | | | | | | Using ngMessages, adds form validation to login page. Also creates a directive, hasError, to be used to validate form field by passing in a boolean. This is a proposed pattern to be used moving forward, as form validation is added to additional pages. Validation error messages are shown on $touched and on submit. Unreachable Server and Invalid username and password error messages remain until input is no longer $pristine after form submission. In addition, this removes unneeded and unused css styling Resolves openbmc/phosphor-webui#47 Change-Id: I7a067af67ac74d4cf2977d10f66445720ecae9eb Signed-off-by: beccabroek <beccabroek@gmail.com>
OpenPOWER on IntegriCloud