lightdash icon indicating copy to clipboard operation
lightdash copied to clipboard

New tile type : 'Heading'

Open PriPatel opened this issue 2 years ago • 13 comments

Problem

Right now, people use the Markdown tiles in order to create Headings where they separate out their content on dashboards. This currently feels like a hack because you would want your header to look and behave differently to a Markdown tile. Related to: https://github.com/lightdash/lightdash/issues/6218. Really, you want to be able to achieve something like this:

Screenshot 2023-07-21 at 15 25 18

MVP Proposal.

https://www.figma.com/proto/btY2rdBe5I2W4xLR3upmQG/Untitled?type=design&node-id=2115-188328&t=V5S4en5fv0keXP6r-0&scaling=min-zoom&page-id=1956%3A187421&starting-point-node-id=1956%3A187422

  • [ ] Add a new tile type Heading
  • [ ] Once you add a Heading, a modal similar to the Markdown tile appears. The user can edit the heading text in this modal.
  • [ ] Once the user hits 'add', a new tile should appear. The text should be the same style has tile titles, but with font-size: 22px
  • [ ] In view mode, the tile should not have a white background or a box-shadow. In view-mode, the box-shadow can be displayed when the user hovers over it so that the user can understand the padding and dragging boundaries. The user should be able to resize and move the tile around like they would to any other tile.
  • [ ] Once I've added the tile, I can use the three-dot menu to update the heading text. The modal title = Edit heading. The CTA = Update
  • [ ] You should not be able to comment on these tiles

ℹ️ Info It's worth doing a quick first pass on this first to see how it looks and feels. Maybe the font-size needs adjusting, or the font size should be configurable etc

PriPatel avatar Jul 17 '23 11:07 PriPatel

Is this issue still relevant? There have been no updates for 60 days, please close the issue or keep the conversation going!

stale[bot] avatar Sep 19 '23 21:09 stale[bot]

+1 for this. Alternatively it could be a hint/type in a markdown box. Changes the treatment of the box to how your screenshot looks but retains all the markdown options within in? So when you select the markdown option it gives you the option of Type: Heading or Content

Another thing for the above would be to be able to enable or disable the markdown text box Title. The H1 or H2 options would look good as section headings but it always displays the title which is significantly smaller than the H1/H2 options making them look somewhat ridiculous. I've attached a screenshot to illustrate. Screenshot 2024-06-24 at 16 46 44

jonhydetitanbay avatar Jun 24 '24 15:06 jonhydetitanbay

Just adding another bit to your comment here from Slack, John!

If you then omit the title and choose any header smaller than H4 at the single row option then the text is truncated at H1 - H3. In fact the Title is the largest sized heading that isn't truncated as the H4 is smaller than the title font size.

The net result is this makes H1 - H3 less usable as you have to dedicate 2 row heights to section headers unnecessarily

image

TuringLovesDeathMetal avatar Jun 25 '24 08:06 TuringLovesDeathMetal

This issue was mentioned by a user in slack: https://lightdash.slack.com/archives/C064W44EL4S/p1724751697430349?thread_ts=1724751697.430349&cid=C064W44EL4S

lightdash-bot avatar Aug 27 '24 14:08 lightdash-bot

This issue was mentioned by a user in slack: https://lightdash.slack.com/archives/C075JNX28GG/p1740681531567169?thread_ts=1740681531.567169&cid=C075JNX28GG

lightdash-bot avatar Feb 27 '25 19:02 lightdash-bot

This issue was mentioned by a user in slack: https://lightdash.slack.com/archives/C075JNX28GG/p1747428149146699?thread_ts=1747428149.146699&cid=C075JNX28GG

lightdash-bot avatar May 19 '25 21:05 lightdash-bot

This issue was mentioned by a user in slack: https://lightdash.slack.com/archives/C08G22FB85B/p1758742967137019?thread_ts=1758742967.137019&cid=C08G22FB85B

lightdash-bot avatar Sep 24 '25 22:09 lightdash-bot

This issue was mentioned by a user in slack: https://lightdash.slack.com/archives/C093596RA83/p1758806294826409?thread_ts=1758806294.826409&cid=C093596RA83

lightdash-bot avatar Sep 29 '25 15:09 lightdash-bot

PROD-614

linear[bot] avatar Nov 13 '25 12:11 linear[bot]

This issue was mentioned by a user in slack: https://lightdash.slack.com/archives/C093596RA83/p1758806294826409?thread_ts=1758806294.826409&cid=C093596RA83

lightdash-bot avatar Nov 13 '25 12:11 lightdash-bot

This issue was mentioned by a user in slack: https://lightdash.slack.com/archives/C053ESBT36V/p1689330835997469?thread_ts=1689330835.997469&cid=C053ESBT36V

lightdash-bot avatar Nov 20 '25 08:11 lightdash-bot

This issue was mentioned by a user in slack: https://lightdash.slack.com/archives/C09MWACUMFB/p1764263228674629?thread_ts=1764263228.674629&cid=C09MWACUMFB

lightdash-bot avatar Nov 28 '25 13:11 lightdash-bot

This issue was mentioned by a user in slack: https://lightdash.slack.com/archives/C09MWACUMFB/p1764263228674629?thread_ts=1764263228.674629&cid=C09MWACUMFB

lightdash-bot avatar Nov 28 '25 13:11 lightdash-bot