Skip to content

Simplify Gephi version filtering and downloads on the plugins page - #80

Merged
mbastian merged 2 commits into
mainfrom
plugins-gephi-version-filtering
Sep 13, 2026
Merged

mbastian merged 2 commits into
mainfrom
plugins-gephi-version-filtering

Conversation

@mbastian

Copy link
Copy Markdown
Member

Summary

  • Normalize displayed/filterable Gephi versions to major.minor for 0.10+ (e.g. 0.11 instead of 0.11.1), matching how plugin compatibility actually works since Gephi 0.10; pre-0.10 legacy versions keep full patch precision
  • Hide plugins with no 0.10+ build from the plugins list by default (with a "Show older Gephi versions" toggle to reveal them and their version facets), so people stop finding plugins that won't work with current Gephi
  • Remove the per-card version badges on the list (added no value)
  • On each plugin's page, show a prominent download button in the header when its newest build matches the actual latest Gephi release, and collapse pre-0.10 downloads under a "Show older versions" disclosure

Test plan

  • npm run check (astro check + prettier) passes
  • npm run build completes with 0 errors across all 112 pages
  • Verified in-browser: default plugins list hides legacy-only plugins and only shows 0.10/0.11 facets; toggling "Show older Gephi versions" reveals them
  • Verified plugin detail pages: header download button appears only when top version matches latest Gephi release; older (pre-0.10) versions collapse under "Show older versions"

🤖 Generated with Claude Code

mbastian and others added 2 commits September 13, 2026 11:31
Since Gephi 0.10, plugin builds are no longer version-specific at the
patch level, but the plugins page still showed/filtered on raw patch
versions (e.g. 0.11.1), and pre-0.10 legacy plugins cluttered the
default list, confusing users about compatibility with current Gephi.

- Normalize displayed/filterable Gephi versions to major.minor for
  0.10+ (legacy pre-0.10 versions keep full patch precision)
- Hide plugins with no 0.10+ build by default, with a "Show older
  Gephi versions" toggle to reveal legacy plugins and their facets
- Remove the now-redundant per-card version badges
- On the plugin page, show a prominent download button in the header
  when the plugin's newest build matches the current latest Gephi
  release, and collapse pre-0.10 downloads under "Show older versions"

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
- Show the legacy-hidden default plugin count in SSR/no-JS output
  instead of the raw total
- Drop legacy versions stuck in filter state (bookmarked URL, or
  unchecking "Show older Gephi versions") instead of permanently
  zeroing results with no recovery
- Scope the "Show older versions" caret rotation to the summary icon
  instead of every icon in the disclosure
- Pick the "latest version" download CTA via a real numeric version
  comparison instead of relying on source JSON key order
- Log fetch failures in getLatestGephiVersion instead of swallowing
  them silently
- Break exact-timestamp ties when grouping versions by keeping the
  latest-iterated build
- Fix normalizeGephiVersion corrupting single-part version strings
- Simplify a redundant length check

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@mbastian

Copy link
Copy Markdown
Member Author

Ran an independent code review on this PR's diff and fixed the issues it found:

  • Plugin count on the list page showed the raw total (97) instead of the legacy-hidden default (58) for no-JS/pre-hydration clients
  • A legacy version stuck in filter state (bookmarked URL, or unchecking "Show older Gephi versions" after selecting one) could permanently zero the results with no way to recover
  • CSS bug: expanding "Show older versions" rotated every icon inside it, not just the caret
  • The "latest version" download CTA picked its version by trusting source JSON key order rather than an actual numeric comparison
  • Silent failure in getLatestGephiVersion() now logs instead of swallowing errors
  • Exact-timestamp ties when grouping versions now keep the latest build instead of the first-encountered one
  • Fixed normalizeGephiVersion corrupting malformed single-part version strings
  • Simplified a redundant length check

npm run check and a full npm run build (112 pages) both pass.

🤖 Generated with Claude Code

@mbastian
mbastian merged commit 037bab9 into main Sep 13, 2026
1 check passed
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.

1 participant