summaryrefslogtreecommitdiffstats
path: root/app/overview/controllers/system-overview-controller.js
Commit message (Collapse)AuthorAgeFilesLines
* Fix system overview edit hostname form validationdixsie2019-05-081-0/+2
| | | | | | | | | | | | | | - 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
* fix date/time representation in national localesAlexander Filippov2018-12-071-4/+0
| | | | | | | | | | | | | | | | | Added "localeDate" filter to present date and time in preferred format: - the date will be displayed as: 'Dec 3, 2018' - the time will be displayed in locale preferred format. - the timezone will be displayed as abbrev or GMT+/-offset. At the 'Date and Time setting' the time zone name will displayed in long format if it is possible. All text parts of date/time representation will be in English. Resolves: openbmc/phosphor-webui#42 Change-Id: I2fdbb47c62dfc5000039b0c00a20f64a9a389fc6 Signed-off-by: Alexander Filippov <a.filippov@yadro.com>
* Display log events in user timebeccabroek2018-11-061-1/+4
| | | | | | | | | | | | | | | | | Allows user to display events in their timezone or in UTC. Previously allowed either ETC or UTC, but listed ETC as 'user timezone'. Updates date time page from GMT offset to UTC offset for overall consistency. Also updates overview page to list critical events in user timezone Resolves openbmc/phosphor-webui#36 Tested: changed timezone settings locally and validated that correct timezone and UTC offset was presented in the UI. Change-Id: I89ca5045eeb789527aa07f5b1baebaa3fbd6b1fa Signed-off-by: beccabroek <beccabroek@gmail.com>
* Move to clang-format-6.0Gunnar Mills2018-09-041-1/+0
| | | | | | | The docker image moved from clang-format-5.0 to clang-format-6.0. Change-Id: I3c615d7df1f21569531b4dc2cb0bc4f425cb43f8 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
* Set the power capGunnar Mills2018-08-241-3/+8
| | | | | | | | | | | | | Created toggle button to enable power cap and a text field to set it. This form is similar to the set network form. Moved logic for displaying the power cap as disabled to the overview controller. Resolves openbmc/openbmc#3221 Tested: Set the power cap on a Witherspoon Change-Id: I62346fe3ed123b9df58d159cee2584937d46213c Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
* Display event log ID and description if presentMatt Spinler2018-06-051-0/+8
| | | | | | | | | | | | | | | | | | | | If the Event ID and Description event log properties are present, display the error log title as <ID>: <Desc> and move the Message property down into the box with the other additional data fields. If they aren't present, or not filled in (which in the case of the event ID is a value of 'None'), leave the title as it currently is, which is the Message property. Tested: Verify UI fields when the event ID is valid, when it's still in the event data but not valid, and when it isn't in the event data at all. Resolves openbmc/openbmc#3056 Change-Id: I455fc257b7d3713aceee2975d5240fb226cfa87e Signed-off-by: Matt Spinler <spinler@us.ibm.com>
* Format code using clang-format-5.0Andrew Geissler2018-05-241-88/+93
| | | | | | | | Once merged, this repository will have CI enforce the coding guidelines in the .clang-format file. Change-Id: I96a05972665f9c67625c6850c3da25edc540be06 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
* Run js-beautify and fixjsstyle on codeAndrew Geissler2018-05-241-137/+137
| | | | | | | | | | | Found this pointer on stackoverflow: https://stackoverflow.com/a/31660434/5508494 End goal is to get the code formatted well enough that clang format will run correctly against it. Change-Id: I80053e78d253d8eee49233e42d55e5807ae8fdc8 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
* Change text to edit hostnameGunnar Mills2018-05-231-2/+2
| | | | | | | | | Before this text was "edit server name". On the Network page we call it "hostname" and the rest call is "Hostname". To be consistent change to "edit hostname". Change-Id: I0042f56cc77180dbb0cc51f7e955762f1eeafb4d Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
* Do not abort when one of multiple promises failsCamVan Nguyen2018-05-221-76/+76
| | | | | | | | | | | | | | | The goal is to load as much data as possible on the 'Server overview' page. In original code, multiple promises are executed in parallel using $q.all() to get data for the page. When any of the promises fails, the remaining promises are aborted. The fix is to write a method to resolve the promise returned from each of the APIUtils calls, which would set the scope variables, and pass the promise returned by it to $q.all instead. Resolves openbmc/openbmc#3151 Change-Id: I361c80ddd2665dbe43f8a635eda42ef2b5c0788c Signed-off-by: CamVan Nguyen <ctnguyen@us.ibm.com>
* Allow user to modify hostname in overview pageAndrew Geissler2018-05-141-0/+15
| | | | | | | | | | | Testing: Verified edit button correctly updates hostname on BMC and it is correctly refreshed in the web interface. Resolves openbmc/openbmc#3104 Change-Id: I28eb6366bde7c01b84d2fab54317aaf69ec2dba8 Signed-off-by: Andrew Geissler <geissonator@yahoo.com> Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
* Display ip addresses in 'BMC information' sectionCamVan Nguyen2018-05-131-0/+10
| | | | | | | | | | | BMC Host/IP Address is already displayed in the header. So in the 'BMC information' section, just display the BMC's ip addresses. There could be multiple ip addresses. Resolves openbmc/openbmc#3148 Change-Id: I4efdf4f1df2fc70d32dd659ae57b6bb7ba0fa0f4 Signed-off-by: CamVan Nguyen <ctnguyen@us.ibm.com>
* Get the BMC timeGunnar Mills2018-05-041-0/+7
| | | | | | | | | | | | | | | | | | | Get the BMC time from xyz/openbmc_project/time/bmc. This time is in epoch time so convert. Before the time and date hardcoded. From https://docs.angularjs.org/api/ng/filter/date: "'medium': equivalent to 'MMM d, y h:mm:ss a' for en_US locale (e.g. Sep 3, 2010 12:05:08 PM)" This is a similar format as to what was present on the GUI before for en_US. Letting the browser choose the format, is important. Displayed in user's timezone. Resolves openbmc/openbmc#3116 Tested: Now see correct date and time, "4/19/2018, 20:31:18 UTC" Change-Id: Ie30c65b038b58afc8c4c77ca5b70667e80e76cc6 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
* Remove the version from each fileGunnar Mills2018-04-301-1/+0
| | | | | | | | Already have a Web UI version, no need to track the version of each file. These have not been getting updated. Change-Id: I1cd3a2c2d67b24ded5edcca9dbfd3f6806d93ed4 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
* Move bmc_firmware to displayBMCInfoGunnar Mills2018-04-191-5/+7
| | | | | | | | Before setting the BMC firmware was in displayServerInfo Tested: Verified the BMC firmware still displays correctly. Change-Id: Ic6323bc9eec700ff5956868899ccda398a841274 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
* Look at correct server informationGunnar Mills2018-04-191-1/+4
| | | | | | | | | | | | Look at /xyz/openbmc_project/inventory/system for the server information. Before the "server overview" page looked at the BMC information for things like Server SerialNumber. Resolves openbmc/openbmc#3095 Tested: Verified I see the correct server information now. Change-Id: I562b28353d79fbf4a84e4c9a01db57d757a102a1 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
* Revert "Fix refresh on system & sensors overview pages"Andrew Geissler2018-04-161-10/+1
| | | | | | | | | | This reverts commit 23217dae2bdc8e9bd6b3f20a395d1892382b0682. https://gerrit.openbmc-project.xyz/#/c/10063/ refreshes all pages so individual refresh functions are no longer needed Change-Id: I52151ba0e356f000324538e4b5eac6c9846c2eb3 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
* Display correct Power Consumption & Cap valuesCamVan Nguyen2018-04-131-1/+15
| | | | | | | | | | Current values are hard coded to '000 W'. This fix is to do REST calls and display the correct values. Resolves openbmc/openbmc#2735 Change-Id: I2f6766f1685a2bd52da62cda19998794f80270ec Signed-off-by: CamVan Nguyen <ctnguyen@us.ibm.com>
* Fix refresh on system & sensors overview pagesCamVan Nguyen2018-03-291-2/+11
| | | | | | | Partially resolves openbmc/openbmc#2927 Change-Id: I7f449c41ef645b67253c5d3c2ed6c8b1984f0408 Signed-off-by: CamVan Nguyen <ctnguyen@us.ibm.com>
* Remove trailing spaces from filesGunnar Mills2018-03-051-5/+5
| | | | | | Tested: Manually tested GUI for any regressions Change-Id: I8c0922b7bd67b03b07e8880bc4dba3b862220b33 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
* loader animation added to pagesMichael Davis2017-10-091-16/+26
| | | | | Change-Id: Id8c890714d0a90ae913b6581cd655abcf6cd6781 Signed-off-by: Michael Davis <michael.s.davis@ibm.com>
* Add dynamic content to system overview pageIftekharul Islam2017-09-201-2/+61
| | | | | Change-Id: Id47db28c9ec7b4dc39b9b690797087e1970ce328 Signed-off-by: Iftekharul Islam <iislam@us.ibm.com>
* Change navigation structureIftekharul Islam2017-09-201-2/+4
| | | | | Change-Id: I12c819293ce1eda188dc9f257ae9370f1b73cb18 Signed-off-by: Iftekharul Islam <iislam@us.ibm.com>
* Major update to code structureIftekharul Islam2017-09-201-0/+26
* Split files into independent files based on functionality. * Switch to bower/gulp for build. Change-Id: Ibc775dd9b7f6a0a49f63c22162b7582e781e2d9c Signed-off-by: Iftekharul Islam <iislam@us.ibm.com>
OpenPOWER on IntegriCloud