Skip to content

Conversation

@JasonWarrenUK
Copy link
Collaborator

Front-End Focussed Data Types

Overview

This adds 5 type interfaces that mirror the user experience whilst allowing easy translation into the DB schema

TL;DR

npm install
# cos Zod

supabase db reset
# cos tweaked schema

Changes

Types

The file you import from in most cases. One type per main DB table, with validation of values where appropriate

Subtypes

Secondary entities with specific interfaces like...

  • User (as opposed to profile)
  • Employer
  • Pronouns (an array of exactly 3 entries)

Validators

Zod validation to ensure that Profile.User.email is an actual email address, not just a string.

Misc Changes

  • Consolidated docs into one parent folder
  • Hopefully made the PR template actually trigger when we make a PR
  • Added "draft" as a possible sharing_event.status value

Summary

If this PR was a poem, it would be so obsessed with having a consistent rhyme scheme that every line would end with the same word

@JasonWarrenUK JasonWarrenUK requested a review from a team June 6, 2025 14:54
@Jaz-spec Jaz-spec merged commit 09beccf into main Jun 6, 2025
1 check passed
@Jaz-spec Jaz-spec deleted the feat/db-input-types branch June 6, 2025 15:28
AlexVOiceover added a commit that referenced this pull request Nov 1, 2025
- Change text color from grey to black with text-base-content class
- Clarify behavior: "If private, answer and actions won't be included in email"
- Add full stop at end of sentence for proper punctuation
- Update TESTING_ISSUES.md to mark Issue #11 as fixed
@AlexVOiceover AlexVOiceover mentioned this pull request Nov 1, 2025
6 tasks
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.

3 participants