IA update: Update health section
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
diff --git a/src/store/index.js b/src/store/index.js
index 5aba466..3ea4c5a 100644
--- a/src/store/index.js
+++ b/src/store/index.js
@@ -14,16 +14,16 @@
import PowerPolicyStore from './modules/Control/PowerPolicyStore';
import NetworkSettingStore from './modules/Configuration/NetworkSettingsStore';
import EventLogStore from './modules/Logs/EventLogStore';
-import SensorsStore from './modules/Health/SensorsStore';
-import ServerLedStore from './modules/Control/ServerLedStore';
-import SystemStore from './modules/Health/SystemStore';
-import PowerSupplyStore from './modules/Health/PowerSupplyStore';
-import MemoryStore from './modules/Health/MemoryStore';
-import FanStore from './modules/Health/FanStore';
-import ChassisStore from './modules/Health/ChassisStore';
-import BmcStore from './modules/Health/BmcStore';
-import ProcessorStore from './modules/Health/ProcessorStore';
-import PostCodeLogsStore from './modules/Health/PostCodeLogsStore';
+import SensorsStore from './modules/HardwareStatus/SensorsStore';
+import ServerLedStore from './modules/HardwareStatus/ServerLedStore';
+import SystemStore from './modules/HardwareStatus/SystemStore';
+import PowerSupplyStore from './modules/HardwareStatus/PowerSupplyStore';
+import MemoryStore from './modules/HardwareStatus/MemoryStore';
+import FanStore from './modules/HardwareStatus/FanStore';
+import ChassisStore from './modules/HardwareStatus/ChassisStore';
+import BmcStore from './modules/HardwareStatus/BmcStore';
+import ProcessorStore from './modules/HardwareStatus/ProcessorStore';
+import PostCodeLogsStore from './modules/Logs/PostCodeLogsStore';
import SecuritySettingsStore from './modules/Configuration/SecuritySettingsStore';
import FactoryResetStore from './modules/Control/FactoryResetStore';
diff --git a/src/store/modules/Health/BmcStore.js b/src/store/modules/HardwareStatus/BmcStore.js
similarity index 94%
rename from src/store/modules/Health/BmcStore.js
rename to src/store/modules/HardwareStatus/BmcStore.js
index bbe157e..f58dc63 100644
--- a/src/store/modules/Health/BmcStore.js
+++ b/src/store/modules/HardwareStatus/BmcStore.js
@@ -64,11 +64,11 @@
console.log('error', error);
if (led.identifyLed) {
throw new Error(
- i18n.t('pageHardwareStatus.toast.errorEnableIdentifyLed')
+ i18n.t('pageInventory.toast.errorEnableIdentifyLed')
);
} else {
throw new Error(
- i18n.t('pageHardwareStatus.toast.errorDisableIdentifyLed')
+ i18n.t('pageInventory.toast.errorDisableIdentifyLed')
);
}
});
diff --git a/src/store/modules/Health/ChassisStore.js b/src/store/modules/HardwareStatus/ChassisStore.js
similarity index 93%
rename from src/store/modules/Health/ChassisStore.js
rename to src/store/modules/HardwareStatus/ChassisStore.js
index 2faddfb..b5edef5 100644
--- a/src/store/modules/Health/ChassisStore.js
+++ b/src/store/modules/HardwareStatus/ChassisStore.js
@@ -74,11 +74,11 @@
console.log('error', error);
if (led.identifyLed) {
throw new Error(
- i18n.t('pageHardwareStatus.toast.errorEnableIdentifyLed')
+ i18n.t('pageInventory.toast.errorEnableIdentifyLed')
);
} else {
throw new Error(
- i18n.t('pageHardwareStatus.toast.errorDisableIdentifyLed')
+ i18n.t('pageInventory.toast.errorDisableIdentifyLed')
);
}
});
diff --git a/src/store/modules/Health/FanStore.js b/src/store/modules/HardwareStatus/FanStore.js
similarity index 100%
rename from src/store/modules/Health/FanStore.js
rename to src/store/modules/HardwareStatus/FanStore.js
diff --git a/src/store/modules/Health/MemoryStore.js b/src/store/modules/HardwareStatus/MemoryStore.js
similarity index 100%
rename from src/store/modules/Health/MemoryStore.js
rename to src/store/modules/HardwareStatus/MemoryStore.js
diff --git a/src/store/modules/Health/PowerSupplyStore.js b/src/store/modules/HardwareStatus/PowerSupplyStore.js
similarity index 100%
rename from src/store/modules/Health/PowerSupplyStore.js
rename to src/store/modules/HardwareStatus/PowerSupplyStore.js
diff --git a/src/store/modules/Health/ProcessorStore.js b/src/store/modules/HardwareStatus/ProcessorStore.js
similarity index 94%
rename from src/store/modules/Health/ProcessorStore.js
rename to src/store/modules/HardwareStatus/ProcessorStore.js
index 1531466..c7cbbee 100644
--- a/src/store/modules/Health/ProcessorStore.js
+++ b/src/store/modules/HardwareStatus/ProcessorStore.js
@@ -89,11 +89,11 @@
console.log('error', error);
if (led.identifyLed) {
throw new Error(
- i18n.t('pageHardwareStatus.toast.errorEnableIdentifyLed')
+ i18n.t('pageInventory.toast.errorEnableIdentifyLed')
);
} else {
throw new Error(
- i18n.t('pageHardwareStatus.toast.errorDisableIdentifyLed')
+ i18n.t('pageInventory.toast.errorDisableIdentifyLed')
);
}
});
diff --git a/src/store/modules/Health/SensorsStore.js b/src/store/modules/HardwareStatus/SensorsStore.js
similarity index 100%
rename from src/store/modules/Health/SensorsStore.js
rename to src/store/modules/HardwareStatus/SensorsStore.js
diff --git a/src/store/modules/Control/ServerLedStore.js b/src/store/modules/HardwareStatus/ServerLedStore.js
similarity index 100%
rename from src/store/modules/Control/ServerLedStore.js
rename to src/store/modules/HardwareStatus/ServerLedStore.js
diff --git a/src/store/modules/Health/SystemStore.js b/src/store/modules/HardwareStatus/SystemStore.js
similarity index 100%
rename from src/store/modules/Health/SystemStore.js
rename to src/store/modules/HardwareStatus/SystemStore.js
diff --git a/src/store/modules/Health/PostCodeLogsStore.js b/src/store/modules/Logs/PostCodeLogsStore.js
similarity index 100%
rename from src/store/modules/Health/PostCodeLogsStore.js
rename to src/store/modules/Logs/PostCodeLogsStore.js