summaryrefslogtreecommitdiff
path: root/src/store
AgeCommit message (Collapse)AuthorFilesLines
2021-08-20Move PowerControlStore to ResourceManagement folderDixsie Wolmers2-1/+1
Store module structure should match the view folder structure The Power page is under the Resource management section, so the store should also be in a similarly named folder. This makes it easier to find when looking for the correct store. Signed-off-by: Dixsie Wolmers <dixsie@ibm.com> Change-Id: Iada30056eb738b91f35dc4c6b9b42b6b2be8d55c
2021-08-10IA update: Update access and control sectionSandeepa Singh6-77/+60
This is the fifth commit of the information architecture changes and has the following changes: - The icon for access and control has been updated - Access and control section has been updated to security and access section - Security settings page has been updated to policies page and moved to security and access section - Client sessions page has been updated to sessions page - Local user management page has been updated to user management page - SSL certificates page has been updated to certificates page Signed-off-by: Sandeepa Singh <sandeepa.singh@ibm.com> Change-Id: Ie93cee9002742ecf7d33615636f4f159f4395fc4
2021-08-10IA update: Update configuration to settingsSandeepa Singh5-18/+12
This is the fourth update to information architecture changes and has the following changes: - The configuration section is updated to settings - The date and time settings page is updated to date and time - The network settings page is updated to network - The power restore policy page in operations section is moved to settings section Signed-off-by: Sandeepa Singh <sandeepa.singh@ibm.com> Change-Id: I6f5ab25f5227530be430bd39a4d9629b3bf09d8b
2021-08-10IA update: Update control section to operationsSandeepa Singh9-16/+13
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-08-10IA update: Update health sectionSandeepa Singh11-16/+16
This is the second update to information architecture changes and has the following changes: - Health section is updated to hardware status section - Hardware status page is updated to inventory and LEDs page - Route for sensors page has been updated Signed-off-by: Sandeepa Singh <sandeepa.singh@ibm.com> Change-Id: Ia1ba3a15a243a00f59a2ec646132436eb355a999
2021-08-10IA update: Add logs and update overview iconDerick Montague3-1/+1
This is the first patchset of the information architecture changes. These changes are the result of several months of design research with users to improve the existing information architecture (IA). More information can we found in the Github story. This patchset will add a Logs section and move event logs and dumps from the Health section to the new Logs section. It will also update the icon used for the Overview page. Github story: https://github.com/openbmc/webui-vue/issues/56 Testing: 1. IBM build: - Logs contained Event logs and dumps - Both pages rendered when clicking link 2. Intel build - Logs contained Event logs only - Logs page rendered when clicking link 3. Tested default build - Logs contained Event logs only - Logs page rendered when clicking link Signed-off-by: Derick Montague <derick.montague@ibm.com> Change-Id: I4621837202cf5ad3469d6ea460d9a5bdc79c8816
2021-07-28Add export all and delete all buttons to event logsDixsie Wolmers1-4/+7
- Uses new table action button style above table. - Adds ability to export all and delete all logs. - Disables toolbar table action buttons when table is empty. - Event logs file name is not translated to avoid potential translation issues in the future, users can rename the file - Adds toast messages for delete all - Updates resolve logs toast messages to use `tc` count Signed-off-by: Dixsie Wolmers <dixsie@ibm.com> Change-Id: Idda2ae309e4248db60f89f68669e6e3b9f2cb832
2021-07-28Add missing keys for en-US translationsDixsie Wolmers1-2/+2
- Updated power supplies to use identifyLed key - Updated system store identify LED toasts - Corrected DHCP key capitilization - Did not make changes to factory reset modal keys, they are being used dynamically with `${}` in the key. Same for Power restore policy `$t{powerState}` Signed-off-by: Dixsie Wolmers <dixsie@ibm.com> Change-Id: I19eeac4085326a2d18d90945028def88ec5ed991
2021-07-27Add hardware status power supply missing propertiesDixsie Wolmers1-3/+9
Adds efficiency percent, identify LED, manufacturer, hardware type, health and spare part number. Adds section divider in expanded row. Signed-off-by: Dixsie Wolmers <dixsie@ibm.com> Change-Id: I74e146a233f5d3dda849db11e937cb9dea5bcbd7
2021-07-22Add download additional data functionalityDixsie Wolmers1-0/+2
Adds ability to download event log additional data data by row. The download attribute is not used to rename the file because it causes the download to fail in Chrome (Chromium bug for base64 files). Signed-off-by: Dixsie Wolmers <dixsie@ibm.com> Change-Id: I92164adc0a8ccf1bd6ed23cc5891a04fac47685b
2021-07-21Fix inconsistent power statusLei YU1-8/+5
The webui was using a websocket to subscribe the events from BMC for server status and logging. It uses a debouncer of 2.5 to limit the events, however, it causes the loss of the events, so the power change status event could be missed by the webui, causing the `Power` status is not really consistent. There was an issue in the property change handler as well that it assumes the `CurrentHostState` is there. However, certain event could be fired without `CurrentHostState` change, e.g. the "ForceWarmReboot" will get an host event of `RequestedHostTransition` without `CurrentHostState`'s change, the code will get an undefined `CurrentHostState` and the `Power` status becomes undetermined. Remove the 2.5 debouncer, and only set the power status when `CurrentHostState` is really received to fix the issue. Tested: Verify the `Power` status is consistent with the server status. Signed-off-by: Lei YU <yulei.sh@bytedance.com> Change-Id: I732069fff954a2b8b1de4848115641903a8bc904
2021-07-21Add POST code logs pageSandeepa Singh2-0/+41
This page will be included in the Health section of the primary navigation. The user will be able to export and download POST code logs. Signed-off-by: Sandeepa Singh <sandeepa.singh@ibm.com> Change-Id: I26cf1e01bfdfcf298f24f2c7dd9633ab7d31f1b5
2021-07-08Add system table missing propertiesSukanya Pandey1-1/+32
- Design is updated for system table. - Missing properties are added, added properties are: Hardware type, Location number, Memory summary data, Processor summary data and submodel. - Also adding functionality of toggling identify led switch Signed-off-by: Sukanya Pandey <sukapan1@in.ibm.com> Change-Id: I0e5143638ce2254f9b4fd2c8c520544c1db8d342
2021-07-01Add chassis table missing propertiesSandeepa Singh1-0/+34
- Added the following properties: Name, Location number, Identify led, Manufacturer, Chassis type, Asset tag, Max power watts, Min power watts - Design has been updated for chassis table Signed-off-by: Sandeepa Singh <sandeepa.singh@ibm.com> Change-Id: Id2ef82573a4d17059dc9f4929155aa05cabef2aa
2021-07-01Add BMC table missing propertiesSandeepa Singh1-2/+34
- Added the following properties: Name, Spare part number, Manufacturer type, Manager type, BMC date and time, Last reset time, Identify led Signed-off-by: Sandeepa Singh <sandeepa.singh@ibm.com> Change-Id: I6d84f867f3c272f3989f76c86f054f143b8b1bbd
2021-06-29Add processors table missing propertiesSandeepa Singh1-0/+43
- Add following missing properties: Name, Spare part number, Model, Processor type, Processor architechure, Version, Health rollup, Asset tag, Min speed MHz, Max speed MHz, Total cores, Total threads, Instruction set, Identify Led - Design of the table has been updated - Waiting for the following to be merged to test the Identify Led: https://gerrit.openbmc-project.xyz/c/openbmc/bmcweb/+/37045 Signed-off-by: Sandeepa Singh <sandeepa.singh@ibm.com> Change-Id: If6eeb3b0afea6510f7ea53e2d66cbf1d123b3217
2021-06-28Add fans hardware status missing propertiesDixsie Wolmers1-1/+16
Adds identify LED, name - hardware type, health rollup, fan speed, and location number properties to table. Signed-off-by: Dixsie Wolmers <dixsie@ibm.com> Change-Id: I5f209b853ab70becf4c4289e871da1ce279d1ac3
2021-06-28Resolve a bug in LDAP pageSandeepa Singh1-10/+22
-Issue was, while the Enable checkbox is disabled, click on the save settings button, and then the page is getting disabled. Signed-off-by: Sandeepa Singh <sandeepa.singh@ibm.com> Change-Id: Ib7cab16d99dab5296e7bafff1cdb936a4a535c6b
2021-06-09Add event log resolve and unresolve log functionalityDixsie Wolmers1-0/+92
Displays resolved or unresolved status, adds ability to filter by resolved or unresolved, and adds ability to resolve or unresolve one or more logs. Move event type table field to expanded row. Signed-off-by: Dixsie Wolmers <dixsie@ibm.com> Change-Id: Ie5761753a7660a714f98c238d8d89aa018719dcf
2021-06-09Remove hardcoded chassis in power suppliesMichalX Szopinski1-4/+24
According to our conversation on community meeting we want to remove all hardcoded chassis names in request URL. This change corrects the "Power supplies" table in "Hardware Status" view. Signed-off-by: MichalX Szopinski <michalx.szopinski@intel.com> Change-Id: I5219c68b71477adee5f6785c58808eeaa5d35986
2021-05-18Replace use of the term host with serverDerick Montague4-32/+32
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-13Add check for allowableActions in firmware storeDerick Montague1-1/+1
Using optional chaining to test that TFTP is included in the allowaableActions property to prevent an error being thrown if that property is not present. Signed-off-by: Derick Montague <derick.montague@ibm.com> Change-Id: If0009810aaf3b9abd23fcdc41606fbdbcf17a347
2021-05-12Remove trailing forward slash from api endpointDerick Montague1-1/+1
For consistency, I have removed the trailing / on the get boot settings request. This keeps the file value listed in the browser developer tool's network interface consistent in naming and makes debugging a better experience. Signed-off-by: Derick Montague <derick.montague@ibm.com> Change-Id: I8f2e5b58e12bba1c17c8a483f638e1d727883c6a
2021-03-23Add event log detailsSukanya Pandey1-1/+11
- Add ability to expand and collapse table rows to show event log entry details - Add the following properties to display in the UI, Name, Modified date Change-Id: I3c90ce301878947e402eb87ca135dba0c47e84d5 Signed-off-by: Sandeepa Singh <sandeepa.singh@ibm.com>
2021-03-09Add factory reset pageDerick Montague2-0/+34
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-03-01Move Dumps page components to main view and store directoriesYoshie Muranaka1-0/+117
This commit will move away from storing env specific component views and store modules in the env directory. This will help simplify the file structure for dotenv customizations. The env directory will only store modifications to the main store register, router definitions, and app navigation. Pages that are "hidden" by default, like dumps, would still need to be imported and registered in the specific environments. Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: Ia5ad76235e00127281f3fa564cb89ec2ca2e0f25
2021-03-01Update the default firmware pageYoshie Muranaka1-130/+92
- Minor updates made to the general layout and styles - Changes to some page copy - Moves update firmware form to bottom of page - Adds dynamic TFTP upload option - Adds dynamic card layout for BMC and host firmwre - 2 cards for combined - 4 cards for separate - Removes FirmwareSingleImage components that were used for IBM builds Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: Ib5465ecc30dd1505824bf41c82d33b7655d5e598
2021-02-10Correct client sessions displayed dataSurenNeware1-2/+2
- Used ClientID data property for client ID and ClientOriginIPAddress for IP address. Signed-off-by: Suren Neware <sneware9@in.ibm.com> Change-Id: Ib39f5cafe407cb9abc2aec802935bf2dab62486a
2021-02-08Add DHCP enable to Network Settings pageDixsie Wolmers1-0/+3
- Adds ability to disable or enable DHCP from UI. - Displays DHCP addresses in table. - Displays only Static addresses in Static table Note for testing: - If BMC does not have a DHCP server on the network when enabling DHCP then system will go down (no IP addresses will be available) Signed-off-by: Dixsie Wolmers <dixsie@ibm.com> Change-Id: I4a9e6e13a80bcac8233e4382c0f4accc59c8adb8
2021-02-04Add property check on Server power operations pageYoshie Muranaka1-2/+4
Check for LastResetTime value before attempting to create a Date object. The error causes the page to hang when attempting different actions from the page. Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: Ia2d754e430d1d3ad69f04d3c350c68ca35fa5375
2021-02-04Change system indicatorLED propertySurenNeware1-1/+1
- Changed system IndicatorLED property to use LocationIndicatorActive and updated SystemStore for same. Signed-off-by: Suren Neware <sneware9@in.ibm.com> Change-Id: I0083034b7a8993074262a1e2b60c5829f8519dbe
2021-02-02Add power restore policy pageSukanya Pandey2-0/+74
- 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
2020-12-16Show asset name in the app headerSukanya Pandey1-9/+15
Signed-off-by: Sukanya Pandey <sukapan1@in.ibm.com> Change-Id: If5394604d6c91b3604eaadb33178376fe6da672c
2020-12-16Add client sessions pageSukanya Pandey2-0/+82
- This page will show the list of sessions that are currently connected to the BMC. APIs used: - To get all the sessions API used is `/redfish/v1/SessionService/Sessions` - To delete the sessions API used is `/redfish/v1/SessionService/Sessions/<session id>` Signed-off-by: Sukanya Pandey <sukapan1@in.ibm.com> Change-Id: Ia81f62cbbea749809b9b7f7e62356cfe2db7fc18
2020-12-16Add security settings pageDixsie Wolmers2-0/+97
Adds ability to enable/disable: - SSH protocol - IPMI protocol Signed-off-by: Dixsie Wolmers <dixsie@ibm.com> Change-Id: I2430a46343dd8756ef75fcc3cb068df8d51dd415
2020-12-02Fix server LED switch value on errorYoshie Muranaka1-1/+2
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-8/+11
- Make name consistent between both Overview and Server LED views Signed-off-by: Derick Montague <derick.montague@ibm.com> Change-Id: I36601b603bfeb4e9f2b782641dd2813882466c21
2020-12-01Fix two file switch firmware bugYoshie Muranaka1-3/+3
Fixed spelling errors in FirmwareStore Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: I08741ec981f902816c4e4c7063c6e337da9ca9f4
2020-12-01Update indicator LED switch using another propertySurenNeware1-5/+7
- 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-28Add thresholds for Fan sensorsKonstantin Aladyshev1-1/+4
Add lower/upper non-critical/critical tresholds for Fan sensors Signed-off-by: Konstantin Aladyshev <aladyshev22@gmail.com> Change-Id: I8588af6e1fb6a3a9f74730de3f3ab0cee0110962
2020-11-12Delete all selected event logsSukanya Pandey1-0/+12
-Earlier all the event logs were deleted ID wise. -Now when all logs are selected then below API will be called to delete all the logs. -API : '/redfish/v1/Systems/system/LogServices/EventLog/Actions/LogService.ClearLog'. Signed-off-by: Sukanya Pandey <sukapan1@in.ibm.com> Change-Id: Ib7026a4fe3c324e6a998be747325f379a944f1c8
2020-11-03Update linting packages to use latestDerick Montague25-365/+368
- 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-30Add two file firmware updateYoshie Muranaka1-37/+105
Adds the ability to upload separate Host and BMC firmware images through the GUI. By default, the two file firmware update page will be shown. Changes to the .env configurations will enable the single file upload page. The IBM env is configured to allow single file firmware update. Two file upload features: - File upload through local workstation or tftp server - Reboot from backup BMC image - Does not have ability to reboot from backup host image - Does not implement checks in GUI for host status, which is the same as what we have in phosphor-webui Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: Ibf2a2d9ffc3952dd5a5454c723350c61d9f91c3e
2020-10-23Add support for mutual TLSYoshie Muranaka1-7/+20
Adding check for 'IsAuthenticated' cookie in AuthenticationStore and adding a check in created hook for AppHeader component because it is visible on all authenticated pages. Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: Ic558c9c45fd3f5874c8c516cb6bc005cba4946e2
2020-10-21Show error toast notification on unauthorized accessSukanya Pandey2-13/+15
-When 403 status code which is an unauthorized access occured -show error toast notification. Signed-off-by: Sukanya Pandey <sukapan1@in.ibm.com> Change-Id: I55fa7052073f87f28c3584b68fd4e84247a4237e
2020-10-19Add comments for imports that support dotenvYoshie Muranaka1-0/+4
We have set up exact match resolve aliases to support different dotenv build customizations. Added comments to the imports that should not be changed. Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: Ie371b42ec35f876ccb89ef976f7126d5234a1b47
2020-10-19Update relative path imports to use '@' aliasSurenNeware11-14/+14
- Add '@/' instead of '../../../' Signed-off-by: Suren Neware <sneware9@in.ibm.com> Change-Id: Ida1dc26f2bd62f38914a74b729ee8fd143c360ac
2020-10-14Catch the TypeError in sensors pageYong Li1-4/+4
On the sensors page, there is the below error and some sensors are missing: Uncaught (in promise) TypeError: Cannot read property 'LowerCaution' of undefined The root cause is that some sensors do not support all these Thresholds properties, add the checking to catch such errors. Tested: These sensors in redfish/v1/Chassis/$id/Sensors/ can be displayed in sensors web page Signed-off-by: Yong Li <yong.b.li@linux.intel.com> Change-Id: Ic80048045ee8e293e693811c246723557489fb35
2020-10-09Refactor firmware store to get backup from SoftwareImagesYoshie Muranaka1-32/+29
Eliminates an extra call to find the system backup firmware image. Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: I82e36c6b8982dc3bfbdfb57c9ee143c1367e7c9e
2020-09-28Fix error on Hardware status pageYoshie Muranaka1-1/+1
Setting default value for processors to an empty array to avoid error "TypeError: Cannot read property 'length' of null" caused when attempting to calculate the total table count on initial load. Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: I2e3af184f7f7649bed96cd4fd994fb3ee24ff28f