Skip to content

Commit

Permalink
Modify integrations tab (#1803)
Browse files Browse the repository at this point in the history
Places endpoint above interface, removes tooltip and adds a short description
  • Loading branch information
abbiesims authored Apr 23, 2024
1 parent 2aa8732 commit 952ae47
Showing 1 changed file with 24 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -131,33 +131,35 @@ export const InterfaceItem = ({
<>
<hr />
<h3 className="p-heading--4 u-no-margin--bottom" id={interfaceData.key}>
{interfaceData.key} |{" "}
<a href={`/interfaces/${interfaceData.interface}`}>
{interfaceData.interface}
</a>{" "}
<span
className="p-tooltip--right"
aria-describedby={`${interfaceData.key}-${interfaceData.interface}-tooltip`}
>
<Icon name="information" />
<span
className="p-tooltip__message"
role="tooltip"
id={`${interfaceData.key}-${interfaceData.interface}-tooltip`}
>
Relation | Interface
</span>
</span>
<div>
{interfaceData.key}
<span className="u-text--muted"> endpoint</span>
</div>
<div>
<a href={`/interfaces/${interfaceData.interface}`}>
{interfaceData.interface}
</a>
<span className="u-text--muted"> interface </span>
</div>
</h3>
{interfaceData.description && <p>{interfaceData.description}</p>}

{charms && charms?.length > 0 && (
<>
<p>
Charms that{" "}
<b>{interfaceType === "requires" ? "provide" : "consume"}</b>{" "}
{interfaceData.interface}
</p>
<div style={{ paddingTop: "0.5rem" }}>
<p className="u-fixed-width u-no-margin--bottom">
The <b>{interfaceData.key}</b> endpoint
<b>{interfaceType === "requires" ? " provides " : " requires "}</b>
an integration over the {" "}
<a href={`/interfaces/${interfaceData.interface}`}>
{interfaceData.interface}
</a>
{" "} interface
</p>
<p>
This means it can integrate with:
</p>
</div>
<Row>
{charms.map((charm: ICharm) => (
<Col
Expand Down

0 comments on commit 952ae47

Please sign in to comment.