question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Create clickable links for dimensions

See original GitHub issue

Description

If I have a dimension with a Hubspot id or a GitHub pull request, I’d like to be able to click the dimension value and be linked to an external website for that resource!

E.g. something like this in the .yml files:

columns:
  name: screen_id
    meta:
      dimension: 
        url: "github.com/lightdash/screens/${screen_id}"
  • you can add constants for the URL
  • OR you can add some variable for the URL (e.g. here, I added the screen_id to the end of the URL)

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:21 (12 by maintainers)

github_iconTop GitHub Comments

2reactions
owlascommented, Aug 17, 2022

Awesome! So if it’s in the context menu, let’s go with the multiple urls approach? Where it doesn’t actually change the formatting of the dimension but will add some actions you can take from the context menu.

We’ll also have to add that along with the other context menus on charts etc.

2reactions
ZeRegocommented, Jul 11, 2022

I could see the value down the road. But for our use case it is not a priority. I am not a skilled software developer, and I do not have the full overview of Lightdash. So take what I say with a huge grain of salt. My gut feeling is that decisions like this, at this stage of development, might create issues later in development.

@Martin-Carlsson The user can always use SQL to achieve such advanced use cases. SQL handles logic and we handle formatting.

E.g:

- name: custom_url
   meta:
     dimension:
        type: string
        sql: IF(user_id<1000, "https://example.com", "https://another-example.com");
        format: 'markdown'
        markdownTemplate:  "[Click my custom url](${custom_url})"
Read more comments on GitHub >

github_iconTop Results From Across the Web

Create or edit a hyperlink - Microsoft Support
The fastest way to create a basic hyperlink in a Microsoft 365 document is to press ENTER or the SPACEBAR after you type...
Read more >
HYPERLINK - Looker Studio Help - Google Support
The HYPERLINK function creates Hyperlink and Image Link fields in your data source. ... Image Link fields display clickable images in tables.
Read more >
Creating hyperlinked button dimensions - Looker Community
Was looking for a way to improve UX for end users when creating dimensions that link to other URLs and explores.
Read more >
Beyond Blue Links: Making Clickable Elements Recognizable
Focus on content hierarchy within the page. Avoid having many colorful boxes of different sizes on a page. People have difficulty picking out ......
Read more >
How To Make Clickable Links Tutorial
Most websites and internet media applications have fairly intuitive interfaces that make creating clickable text and graphic links easy to do.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found