onelson / estuary

34 stars 9 forks source link

Crate detail, crate version list. #20

Closed onelson closed 3 years ago

onelson commented 3 years ago

New handlers, templates and supporting code to render pages for crates.

The crate detail page will default to the highest version if a specific version isn't named explicitly.

Templates for the site have been reorganized to extend a common base.

Currently, tailwindcss is being sourced from a cdn which is not ideal. A js project will be added so we can tree-shake the styles properly before the next release.

Crate detail pages are fashioned after those on crates.io, but sadly the index data we're keeping does not include the readme for each release. We'll need some extra storage of our own if we want to display more than the dependencies. For now, the page stays roughly bare.

codecov[bot] commented 3 years ago

Codecov Report

Merging #20 (abe3adc) into main (73d3704) will decrease coverage by 0.14%. The diff coverage is 95.61%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main      #20      +/-   ##
==========================================
- Coverage   96.25%   96.11%   -0.15%     
==========================================
  Files           8        8              
  Lines         668      772     +104     
==========================================
+ Hits          643      742      +99     
- Misses         25       30       +5     
Impacted Files Coverage Δ
src/handlers/registry.rs 100.00% <ø> (ø)
src/package_index.rs 94.33% <93.33%> (-0.19%) :arrow_down:
src/handlers/frontend.rs 96.85% <95.74%> (-3.15%) :arrow_down:
src/handlers.rs 100.00% <100.00%> (ø)
src/storage.rs 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 73d3704...abe3adc. Read the comment docs.