Live data from Hacker News

Tremor – The React library to build dashboards fast

tremor.so

21–30 of 84 posts

Re: Tremor – The React library to build dashboards fast

#21
post #5

Anyone know what the just-CSS version of this would be? Like Bootstrap for Dashboards?

Regarding the charts, you would have to use low-level chart libraries, such as VisX or D3

chartscss.org could cover off basic stuff

Re: Tremor – The React library to build dashboards fast

#22

I started a react component library project that has been going for 4 years now and gets about 40k downloads a month. If it wasn't for my test suite, things would have been a giant mess long ago and I probably would have abandoned it. I can't think of doing a react project without a test suite because over time, any dependencies you have (including on react) will end up breaking things in ways that you don't know. Wi…

What does your test suite look like? (What's the library is maybe a better question)

Re: Tremor – The React library to build dashboards fast

#24
post #5

Anyone know what the just-CSS version of this would be? Like Bootstrap for Dashboards?

Regarding the charts, you would have to use low-level chart libraries, such as VisX or D3

Write the SVG by hand use DOM manipulation to alter the d attribute of an SVG , use a low lever library like d3-shape to compute the interpolations.

Re: Tremor – The React library to build dashboards fast

#25

Very tongue in cheek, but the uptime widget is clearly ready for industry-wide use, the numeric value says 99% uptime, but the colored illustration next to it clearly shows worse performance.

On a short enough timeline were all 99.999% uptime.

Re: Tremor – The React library to build dashboards fast

#26

Earlier quoted context omitted.

In JS land it is especially important and honestly one of the least done things, which is sad and a source of why things are always breaking randomly.

I work primarily with data scientists in python, so I understand a similar pain.

The mind boggles on how we are using python for ML/AI... I bet stable diffusion would get the hands right if we had better unit tests. /s

Re: Tremor – The React library to build dashboards fast

#27
post #22

I started a react component library project that has been going for 4 years now and gets about 40k downloads a month. If it wasn't for my test suite, things would have been a giant mess long ago and I probably would have abandoned it. I can't think of doing a react project without a test suite because over time, any dependencies you have (including on react) will end up breaking things in ways that you don't know. Wi…

What does your test suite look like? (What's the library is maybe a better question)

Good question.

`@testing-library/react` and jest to run it. snapshots and a bunch of action code too.

There are more modern frameworks now too that can be used for integration tests, but I haven't bothered yet as the snapshots have almost always caught the issue.

It boggles my mind that react.dev doesn't start off teaching, with writing tests.

Re: Tremor – The React library to build dashboards fast

#29

I started a react component library project that has been going for 4 years now and gets about 40k downloads a month. If it wasn't for my test suite, things would have been a giant mess long ago and I probably would have abandoned it. I can't think of doing a react project without a test suite because over time, any dependencies you have (including on react) will end up breaking things in ways that you don't know. Wi…

I have yet to see a good frontend test, but I'm waiting to be enlightened. For the most part, it just seems to be things like "if they click this button, make sure this div is gone." That smells like a test double to me.

Re: Tremor – The React library to build dashboards fast

#30

I started a react component library project that has been going for 4 years now and gets about 40k downloads a month. If it wasn't for my test suite, things would have been a giant mess long ago and I probably would have abandoned it. I can't think of doing a react project without a test suite because over time, any dependencies you have (including on react) will end up breaking things in ways that you don't know. Wi…

I have yet to see a good frontend test, but I'm waiting to be enlightened. For the most part, it just seems to be things like "if they click this button, make sure this div is gone." That smells like a test double to me.

> I have yet to see a good frontend test

You haven't written one yourself? Is your theory that since you can't write one, they aren't possible?

All my tests are good enough to ensure that if I upgrade a library or change underlying functionality, something breaks if the output is not expected. That is my primary concern and that is what I test for.

Post reply on HN