Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow links and tooltips on connections #1497

Open
sontags opened this issue Jul 25, 2023 · 6 comments
Open

Allow links and tooltips on connections #1497

sontags opened this issue Jul 25, 2023 · 6 comments

Comments

@sontags
Copy link

sontags commented Jul 25, 2023

Currently, links and tooltips are ignored when placed on a connection:

a -> b: connects {
  link: "https://a-b.io/"
}

In my opinion there are a lot of use cases where additional info on a connection can be useful. Rather than adressing the issue by throwing errors (as described in #1482) it would be beneficial to see these features being actually implemented.

An example: I use d2 to document systems and their dependencies. A systeme can refere to external system documetation via link. Connections are often a representation of a certain process. I would happily use links on connections to refer to process documentation.

@cyborg-ts cyborg-ts added this to D2 Jul 25, 2023
@soma-m
Copy link

soma-m commented Jul 25, 2023

I would appreciate the ability to have links on connections as well.

For a system A -> B

My use case is to show more details about the connection via tooltips and upon clicking the connection, I would like to link to a URL describing the data communicated between A and B.

@robinovitch61
Copy link

I would also really value a solution for this. PlantUML can do it as follows, but I want to use d2, not PlantUML:

@startuml
actor User
participant "Web Browser" as Browser
participant "Web Server" as Server

User -> Browser: Open Home Page [[https://example.com|hi]]
Browser -> Server: GET /home [[https://example.com/home|home link]]
Server --> Browser: 200 OK [[https://example.com/response|response link]]
Browser --> User: Display Home Page [[https://example.com/display|display link]]

@enduml

@bo-ku-ra those links seem broken - do you recall your workaround and could you share it in this thread?

@bo-ku-ra
Copy link
Contributor

bo-ku-ra commented Aug 1, 2024

@robinovitch61 unfortunately, i don't remember.

for example

a -- url -> b

url: |md
  [connects](https://a-b.io/)
|

@bo-ku-ra
Copy link
Contributor

bo-ku-ra commented Aug 1, 2024

i expect a solution to ex3.(#2030 (comment) )(dupe: #1633)

a -> b: |md
  [connects](https://a-b.io/)
|

@huyz
Copy link

huyz commented Sep 5, 2024

See current PR: #1955

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

5 participants