Skip to content

Conversation

@JasonWarrenUK
Copy link
Collaborator

A Tale of Tweaks

Being a record of the doings of one Jason Ross Warren, reprobate and software botherer

  • Make sure you run supabase db reset

Chapter 1: Actions

.github/workflow

  • build.yml now only calls the .env variables in the step that requires them

Chapter 2: Documentation

Brief_Docs

  • Project Brief.txt renamed to Project Brief.md
  • added heading level hierarchies for easier publishing/formatting/feeding to LLM

Chapter 3: Schema & Data

supabase

  • updated test_data_seed.sql to match new migration

supabase/migrations

  • profiles.pronouns
    • changed from text to text[]
    • must have length 3
  • questions.order
    • must be unique
  • responses.visibility
    • cannot be null
    • defaults to "private"
  • responses.version
    • is now a sequence that auto-increments
    • now has 3 possible valid states
      1. responses.version == null && responses.status == 'skipped'
      2. responses.version != null && responses.status == 'skipped'
      3. responses.version != null && responses.status == 'answered'
  • actions.status
    • new column
    • must be 'active' or 'archived'
    • defaults to 'active'
  • actions.version
    • is now a sequence that auto-increments

src/lib/types

  • generate updated types in supabase.ts

Chapter 4: Ideas

utils

  • emailBuilder.ts: is just an idea

@JasonWarrenUK JasonWarrenUK requested a review from a team June 4, 2025 16:39
Copy link
Collaborator

@AlexVOiceover AlexVOiceover left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for implementing a migration for the modifications on the schema. In the future I will merge this into the creation schema migration file, so we just have a single sql.
Everything else looks also neat

@AlexVOiceover AlexVOiceover merged commit b80192c into main Jun 4, 2025
1 check passed
@AlexVOiceover AlexVOiceover deleted the feat/schema-tweaks branch June 4, 2025 19:59
AlexVOiceover added a commit that referenced this pull request Nov 1, 2025
- Replace "Active"/"Inactive" with "To do"/"Done" labels
- Add static labels on both sides of toggle switch
- Change "Show Inactive" to "Show done actions" filter
- Layout: [Link button] To do [toggle] Done
- Document Issue #5 as rejected (breaks layout logic)
- Update testing issues tracker (Issue #6)
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