Coder Social home page Coder Social logo

stevebuik / stu Goto Github PK

View Code? Open in Web Editor NEW
45.0 3.0 3.0 551 KB

Display Clojurescript builds using D3

Clojure 20.04% CSS 0.14% HTML 76.26% JavaScript 3.56%
clojurescript shadow-cljs d3 reagent-components ci clj cljs-compiler treemap devcards

stu's People

Contributors

alvinfrancis avatar stevebuik avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

stu's Issues

Legend tooltips

Question: what percentage is this group of namespaces/functions adding to my artifact?

Answer: hover tooltip on legend can display total size and percentage of total size.

Consider vx library?

Thank you so much for doing this! I was hoping I could see an example of faux-dom and d3 in Clojurescript after you mentioned it in shadow-cljs Slack. This is great!

After you mentioned faux-dom/d3 I did some Googling and came across https://vx-demo.now.sh, which supposedly uses d3/faux-dom approach in JS. It's in early stages, there's some pretty snazzy looking components. Just curious if you thought it might be helpful for some of your goals with the library.

Zoom transitions for treemap

Question: which small fns are included in my artifact? Labels are not visible for small cells.

Answer: to aid in visual scanning, support zoom to increase size of cells and make labels appear.

Note the label/name is already available in the tooltip so this is all about visual scanning.

Clicks on any cell in the treemap could Zoom into the group (using the legend grouping) using something like https://bost.ocks.org/mike/treemap. that example allows zoom to N levels deep but even just a single level zoom would help.

generation of Stu viz html from lein-cljsbuild output

Instead of Shadow snapshots, use whatever lein cljsbuild produces to create the same EDN (matching the core spec) so that the Stu app will work for it.

Probably best in a new namespace since "illumination" only makes sense for Shadow CLJS.

A new CLI which can snapshot N copies of a directory using git

Question: how has my javascript artifact grown over the past N weeks?

Answer: configurable CLI to select specific commits and generate Shadow snapshots for them.

Following the technique seen here https://github.com/Datomic/codeq/blob/master/src/datomic/codeq/core.clj#L422

it should be possible to build a CLI/main fn using tools.cli which accepts args:

  • target directory
  • number (N) of commits to generate
  • interval (maybe in days) between commits. default is subsequent commits i.e. no interval

It can then cycle through the N most recent commits, checking out each one and generating a shadow snapshot with the git hash as the tag name.

Running this tool in CI, before the Stu illumination CLI, will allow full automation.

a new CLI that scans generation EDN for large increases in size

Question: has my artifact increased in size by N % in the last M days?

Answer: a CLI invoked in the CI server which scans the optional EDN file emitted by the generation CLI and throws exception if the threshold is exceeded.

This means CI can alert on large growth events

How did that get in there? explained in treemap tooltip

Question: why is this code in my artifact?

Answer: tooltip shows the dependency path that caused a fn/ns to be included in the artifact.

The data for this path is exposed in Shadow v2.3.5+ so it will require and upgrade of the Shadow CLJS dep.

Generation CLI can throw exception if specific code is in artifact

Question: is any code in the client artifact that should not be there?

Answer: CLI can load an extra EDN resource (via a new CLI option) that is a set of ns' or paths which must not be in the client code.

If one is present in the artifact then an exception is thrown i.e. non-zero exit code.

This check should happen after the html generation so it's easy to investigate the problem using the HTML artifact

bar chart tooltips

Question : how much did my artifact grow since the last commit? Which new fns/ns' made it grow?

Answer: tooltips on the bar chart display % increase since prev bar. also shows a list of cells which were not in the prev commit.

Nice to have : click on one of the list items, highlights it in the treemap

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.