Skip to content

Commit 793ea8e

Browse files
yashgoyal0110PriteshKiriJonsy13
authored
Fix/litmus logo replace (#5297)
* update K6 Loadgen logo in Chaos Hub Signed-off-by: Yash Goyal <[email protected]> Signed-off-by: yashgoyal0110 <[email protected]> * merge-conflict Signed-off-by: yashgoyal0110 <[email protected]> --------- Signed-off-by: Yash Goyal <[email protected]> Signed-off-by: yashgoyal0110 <[email protected]> Co-authored-by: Pritesh Kiri <[email protected]> Co-authored-by: Vedant Shrotria <[email protected]>
1 parent fb2edab commit 793ea8e

File tree

4 files changed

+18
-2
lines changed

4 files changed

+18
-2
lines changed

chaoscenter/web/src/views/ChaosHub/ChaosFaults/ChaosFaults.module.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,3 +104,11 @@
104104
.faultsListMainContainer {
105105
padding: 1rem 2rem;
106106
}
107+
108+
.k6Logo {
109+
width: 18px;
110+
height: 18px;
111+
object-fit: contain;
112+
display: flex;
113+
align-items: center;
114+
}

chaoscenter/web/src/views/ChaosHub/ChaosFaults/ChaosFaults.module.scss.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ declare namespace ChaosFaultsModuleScssNamespace {
88
gap2: string;
99
gap4: string;
1010
insideCard: string;
11+
k6Logo: string;
1112
listContainer: string;
1213
listContainerWithoutFaults: string;
1314
listContainerWithoutLoader: string;

chaoscenter/web/src/views/ChaosHub/ChaosFaults/ChaosFaults.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ function ChaosFaults({ hubDetails, faultCategories, loading, searchValue }: Chao
8989
};
9090

9191
const FaultCard = (fault: Fault): React.ReactElement => {
92+
const isK6Fault = fault.name.toLowerCase().includes('k6-loadgen');
9293
const isGcpFault = fault.tag.toLowerCase() === 'gcp';
9394
return (
9495
<Link
@@ -100,7 +101,13 @@ function ChaosFaults({ hubDetails, faultCategories, loading, searchValue }: Chao
100101
<Card key={fault.name} interactive className={css.insideCard}>
101102
<Layout.Vertical spacing="medium">
102103
<Layout.Horizontal spacing="small">
103-
{isGcpFault ? (
104+
{isK6Fault ? (
105+
<img
106+
src="https://hub.litmuschaos.io/api/icon/3.22.0/load/k6-loadgen.png"
107+
alt="k6-logo"
108+
className={css.k6Logo}
109+
/>
110+
) : isGcpFault ? (
104111
<img
105112
src="https://hub.litmuschaos.io/api/icon/3.22.0/gcp/gcp-vm-instance-stop.png"
106113
alt="GCP"

mkdocs/docs/experiments/faq/content.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,4 +68,4 @@
6868
<td>Troubleshooting related to litmus scheduler</td>
6969
<td><a href="/litmus/experiments/troubleshooting/scheduler/">Scheduler</a></td>
7070
</tr>
71-
</table>
71+
</table>

0 commit comments

Comments
 (0)