Skip to content

Commit

Permalink
fix: add environment to event log card (#2912)
Browse files Browse the repository at this point in the history
## About the changes
Some changes recorded in the event log apply only to one particular
environment. This is currently not visible in the event log card, but it
is present in the recorded event:

| Full event | Event card |
| --- | --- |
| ![Screenshot from 2023-01-17
14-22-55](https://user-images.githubusercontent.com/455064/212910227-77b5e81c-60fe-4891-bfad-e3358e5a0ba5.png)
|
![image](https://user-images.githubusercontent.com/455064/212910207-7cae700b-3f50-4035-9bcd-897de62d76d2.png)
|

This PR makes that information visible on the event card
  • Loading branch information
Gastón Fournier committed Jan 18, 2023
1 parent bf7ef62 commit c86d191
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions frontend/src/component/events/EventCard/EventCard.tsx
Expand Up @@ -113,6 +113,17 @@ const EventCard = ({ entry }: IEventCardProps) => {
</>
}
/>
<ConditionallyRender
condition={Boolean(entry.environment)}
show={
<>
<StyledDefinitionTerm>
Environment:
</StyledDefinitionTerm>
<dd>{entry.environment}</dd>
</>
}
/>
</dl>
<ConditionallyRender
condition={entry.data || entry.preData}
Expand Down

0 comments on commit c86d191

Please sign in to comment.