Skip to content

feat(certificate): add admin side configuration for cert templates#155

Merged
geraldsberongoy merged 3 commits intodevfrom
feat/dynamic-cert
Mar 11, 2026
Merged

feat(certificate): add admin side configuration for cert templates#155
geraldsberongoy merged 3 commits intodevfrom
feat/dynamic-cert

Conversation

@geraldsberongoy
Copy link
Copy Markdown
Contributor

@geraldsberongoy geraldsberongoy commented Mar 11, 2026

✨ What’s New?

This pull request introduces several new dependencies to the frontend project, primarily to support certificate generation and rendering features. Additionally, it implements a new server action for saving certificate configurations and updates the survey submission flow to generate and return a certificate upon completion.

Dependency additions for certificate generation and rendering:

  • Added @vercel/og and satori to both package.json and package-lock.json to enable dynamic Open Graph image and certificate rendering. These packages bring in a number of supporting dependencies, such as @resvg/resvg-wasm, @shuding/opentype.js, and others for CSS and font parsing, emoji handling, and layout. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15] [16] [17] [18] [19] [20] [21]

Certificate configuration and generation features:

  • Added a new server action saveCertificateConfigAction in certificateActions.ts that allows authorized event organizers to save certificate configuration data to the database, with proper error handling and logging.
  • Updated the survey submission flow in surveyActions.ts to:
    • Fetch the user's full name from the users table (preferring database values over auth metadata).
    • Generate a certificate using the new generateCertificate service after a successful survey submission.
    • Return the generated certificate as a base64-encoded string in the response. [1] [2]

These changes lay the groundwork for supporting dynamic certificate creation and management in the application.

📷 Screenshots (IMPORTANT)

image image

Closes #156

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