
Richer tables (experimental)
Some experimental work + conversation about adding more visual types to the data model. Here we show some special handlers for hex colors that enable a more visual experience for end users.…
Transcript
This transcript is auto-generated. Names and product terms may be wrong.
I have a quick one that's more I should preface it by just saying like this is not on the road map this is like an experiment uh so any potential customers watching let us know if you think it's a cool idea um Okay cool so Gustav launched the color stuff uh like in the last two days and then last night Earl gusta and I were dming about like internal usage of the colors and I was looking at these lists and I was like oh that's cool but it's like not really that useful in terms of information like be more interesting to just see the actual colors in the table and then I kind of had this idea of like what if you could like what
if we could let customers Define custom data renderers and then attach them to uh data in fields using something like tags um so I basically whip together like a little demo of that uh so I have these two these two Dimensions or two Fields um they're just returning an array so it's going to be a single value but the the idea is like here's an array of color values x's and then if I go here and uh if I qu them both they're basically going to look the same cool so now I have this special tag that I can apply if I give it the hex tag and save my model I refresh this page uh it should pull in a hex renderer good yeah
so the basic idea is like I was kind of thinking about text editors like code editors um and so they all support various types of plugins and um like one of them is literally does this it detects any hex colors in your uh code and then shows you a little tip with the color next to it um yeah so it's probably not a new idea like I hooked into a bunch of work that Richard's been doing and made this pretty easy um and so I'm sure that he and other folks have thought of something similar but figured I'd just showare the end end demo to get people thinking about it I'll ask a question that's actually I'm gonna ask it on behalf of Colin but
uh could we Define that in the front end somehow like I like kind of building off of Richard's like uh table work where you can like apply links or images can use we could do something where you could like tag that column from front I mean literally I'm getting attacked by trees here uh yeah it literally uh builds into his work the only real difference uh you know he's not here so he might correct me but when I looked at the code the only real difference seemed to be um he's he's implemented like a set of built-in uh formatters that live sort of as part of the UI viz code and viz configuration and this idea is very similar but it hooks into this idea
of like what if you could just tag your data in the model directly and then bring in plugins that when they are associated with those tags produce some different rendered output um I think one of the questions I have in my head is like obviously it's security concern whenever you run anyone else's code but maybe maybe there are ways to do things like generate a markdown uh piece of rendering that we name like we would call it like hex color renderer plugin you write it as something like marked down in our sandbox and then uh associate that content with the tag maybe that's like one way to kind of make this more Dynamic and and customizable by users yeah anecdotally doing doing Road mapap calls
with people um when we show off the kind of heavily stylized tables like the pill fields and and stuff like that people get super excited like I got a request yesterday for whether uh folks could add a checkbox field and start tagging data with like a yes no um and it's like it's very much like put a little bit out and then people are being creative about okay like oh that opens up a new thing that I'd never thought about um yeah exactly stuff like this and um just the idea of straddling like can configure in the UI and then can hit a button and make it structural I think is like the really powerful path that we're taking people down and so just continuing
to lean into you know like let people style things as a pill in the front end and then push it down or let people color a chart series and then be like okay that series is always red in the model um I think is a direction we should keep leading into because anyone can do the thing in the front end and then the development team can integrate it on the back end yeah I think generally just this idea of like in the same way that vs code and these text editors let developers write plugins to hook into their workflows it'd be super cool if we could find ways to extend things like the table and like units of data generally throughout our system with the
same kind of like extens ability