Skip to content

feat: add YAML download support for SDG analysis output #53

Description

@adarsh-7-satyam

Summary

The tool currently only supports downloading the SDG analysis output as a JSON file (unsdg.json). However, the DMP 2026 expected outcome explicitly states:

"Anyone should be able to access the tool and get the json or yaml output file from the tool."

YAML is currently missing as a download format.

Current Behavior

The download section in frontend/components/results.tsx only has a single button that generates and downloads unsdg.json. There is no YAML download option anywhere in the frontend.

Expected Behavior

Users should be able to download the same SDG analysis data as a unsdg.yaml file, giving them flexibility in how they use the output — especially useful for contributors testing against the DPG registry who may prefer YAML for metadata workflows.

Impact

  • Directly addresses the DMP 2026 expected outcome which mentions YAML output
  • No backend changes required — this is a pure frontend addition
  • No new dependencies needed — YAML conversion can be handled with a lightweight helper function
  • Zero regression risk to existing JSON download functionality

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions