Skip to content

Rewrite #17

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 23 commits into from
Aug 1, 2025
Merged

Rewrite #17

merged 23 commits into from
Aug 1, 2025

Conversation

mProjectsCode
Copy link
Owner

Rewrites the data collection to Rust and switches plotting lib.

Copy link
Contributor

@Fevol Fevol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

<Line data={mappedData} x="date" y="downloads" stroke="id" marker={showDots ? 'dot' : undefined} />
<Pointer data={mappedData} x="date" z="id" maxDistance={30}>
{#snippet children({ data })}
<Text {data} fill="id" x="date" y="downloads" text={d => d.downloads.toFixed()} lineAnchor="bottom" dy={-7} />
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(Applies to all graphs)
It would be nice if the tooltip had some kind of semi-transparent background, visibility is sometimes kind of poor


const { dataPoints, type }: Props = $props();

const mappedDataPoints = dataPoints
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure if this is just on my end, but the chart includes the August month with 0 plugins. In this case, it might be better to just exclude it from the view?

percent100={totalPluginCount}
client:only="svelte"
/>
<BarChart dataPoints={licenseDataPoints.licenses} xLabel="License" yLabel="Number of Plugins" skewLabels hideBarValues client:only="svelte" />
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel like it would make more sense to have this charts be percentages, rather than absolute amounts, just like the repository data. Idem for all subsequent barcharts.

(Or use absolute values instead of percentages for repository data)

@@ -1,7 +1,12 @@
---
import StarlightPage from '@astrojs/starlight/components/StarlightPage.astro';
import ThemesIndex from '../../components/svelte/indexPages/themesIndex.svelte';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Couldn't test, got a WASM error when loading the page, and I think theme required data was not included. I tried but failed to fetch the theme data myself (I assume I had to clone all themes first?)

If it helps, I got this trace:

Empty theme list at commit 2b64fc20c968b850288bfbc2b99f843f1d7f7f43 (2024-10-31)
Empty theme list at commit 9cbe6f390717d90c4fb6d834121f987cf6ad2184 (2024-04-05)
Empty theme list at commit 9333f0e4b144ae9af0431a7a3916cf7ca6ea8787 (2023-12-29)
Get theme lists: 64.4503ms
Building theme data...

thread 'main' panicked at src\theme\data.rs:64:5:
No theme lists found

(For now, I'll assume the theme pages look great! 😄)

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Strange. The theme data should be included in the repo. And the data extraction script should not fail.

@mProjectsCode mProjectsCode marked this pull request as ready for review August 1, 2025 10:00
@mProjectsCode mProjectsCode merged commit aa18dce into master Aug 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants