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/tests/unit/__snapshots__/AppNavigation.spec.js.snap b/tests/unit/__snapshots__/AppNavigation.spec.js.snap
index 04410ca..92f6950 100644
--- a/tests/unit/__snapshots__/AppNavigation.spec.js.snap
+++ b/tests/unit/__snapshots__/AppNavigation.spec.js.snap
@@ -117,6 +117,15 @@
appNavigation.eventLogs
</a>
+ <a
+ class="nav-link"
+ data-test-id="nav-item-post-code-logs"
+ href="#/logs/post-code-logs"
+ >
+
+ appNavigation.postCodeLogs
+
+ </a>
</li>
</ul>
</transition-stub>
@@ -125,10 +134,10 @@
class="nav-item"
>
<button
- aria-controls="health"
+ aria-controls="hardware-status"
aria-expanded="false"
class="btn btn-link collapsed"
- data-test-id="nav-button-health"
+ data-test-id="nav-button-hardware-status"
type="button"
>
<svg
@@ -164,7 +173,7 @@
/>
</svg>
- appNavigation.health
+ appNavigation.hardwareStatus
<svg
aria-hidden="true"
@@ -195,7 +204,7 @@
>
<ul
class="collapse"
- id="health"
+ id="hardware-status"
style="display: none;"
>
<li
@@ -203,26 +212,17 @@
>
<a
class="nav-link"
- data-test-id="nav-item-hardware-status"
- href="#/health/hardware-status"
+ data-test-id="nav-item-inventory"
+ href="#/hardware-status/inventory"
>
- appNavigation.hardwareStatus
-
- </a>
- <a
- class="nav-link"
- data-test-id="nav-item-post-code-logs"
- href="#/health/post-code-logs"
- >
-
- appNavigation.postCodeLogs
+ appNavigation.inventory
</a>
<a
class="nav-link"
data-test-id="nav-item-sensors"
- href="#/health/sensors"
+ href="#/hardware-status/sensors"
>
appNavigation.sensors
@@ -729,6 +729,15 @@
appNavigation.eventLogs
</a>
+ <a
+ class="nav-link"
+ data-test-id="nav-item-post-code-logs"
+ href="#/logs/post-code-logs"
+ >
+
+ appNavigation.postCodeLogs
+
+ </a>
</li>
</ul>
</transition-stub>
@@ -737,10 +746,10 @@
class="nav-item"
>
<button
- aria-controls="health"
+ aria-controls="hardware-status"
aria-expanded="false"
class="btn btn-link collapsed"
- data-test-id="nav-button-health"
+ data-test-id="nav-button-hardware-status"
type="button"
>
<svg
@@ -776,7 +785,7 @@
/>
</svg>
- appNavigation.health
+ appNavigation.hardwareStatus
<svg
aria-hidden="true"
@@ -807,7 +816,7 @@
>
<ul
class="collapse"
- id="health"
+ id="hardware-status"
style="display: none;"
>
<li
@@ -815,26 +824,17 @@
>
<a
class="nav-link"
- data-test-id="nav-item-hardware-status"
- href="#/health/hardware-status"
+ data-test-id="nav-item-inventory"
+ href="#/hardware-status/inventory"
>
- appNavigation.hardwareStatus
-
- </a>
- <a
- class="nav-link"
- data-test-id="nav-item-post-code-logs"
- href="#/health/post-code-logs"
- >
-
- appNavigation.postCodeLogs
+ appNavigation.inventory
</a>
<a
class="nav-link"
data-test-id="nav-item-sensors"
- href="#/health/sensors"
+ href="#/hardware-status/sensors"
>
appNavigation.sensors