Skip to content

Frontend integration: current-state export #140

Description

@dubemoyibe-star

Frontend integration: current-state export

Depends on: CSV/JSON export of current registry state

Problem

Registry page has no way to trigger the export — a researcher has to already know the export endpoint and its format param exist. No visible entry point.

Proposed fix

Add an Export control to the registry page (button or small dropdown: CSV / JSON). No new state needed — it's a link/anchor to the export endpoint with the right format param, not a client fetch, if the backend sets Content-Disposition: attachment correctly. If it doesn't, fall back to fetch+blob.

Suggested first steps

  • Confirm the export endpoint's response headers actually trigger a download in-browser (test manually before writing UI)
  • Add Export control near existing search/filter/sort controls on the registry page
  • If a plain <a href> works, that's the entire frontend change — don't build a fetch/blob path unless headers force it

Not in scope

  • Exporting the page's current filtered/sorted view — the export ships full unfiltered registry only; filtered export is a future ask on both API and frontend sides
  • Any loading state/spinner beyond what a native browser download already gives you

Activity

  1. Fhatu12 commented on Aug 31, 2026

    @Fhatu12
    Contributor

    I'd like to take this as a follow-up to #139, which was merged today. I’ll first confirm the current export endpoint’s Content-Disposition behaviour in-browser, then add the smallest registry-page CSV/JSON export control that works—prefer a native link/anchor and only use fetch+blob if the headers require it. I’ll keep filtered/sorted-view export and extra loading state out of scope. Please assign me if this direction looks good.

  2. dubemoyibe-star commented on Aug 31, 2026

    @dubemoyibe-star
    ContributorAuthor

    Take it away
    You have been assigned 🔥♥️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestfrontendimproves the UI or frontend of the projecthelp wantedExtra attention is needed

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions