Skip to content

feat: type safe queries via swr#7336

Draft
speaker-ender wants to merge 4 commits intomainfrom
feat/typesafe-queries--swr
Draft

feat: type safe queries via swr#7336
speaker-ender wants to merge 4 commits intomainfrom
feat/typesafe-queries--swr

Conversation

@speaker-ender
Copy link
Copy Markdown
Contributor

@speaker-ender speaker-ender commented Feb 6, 2026

Ticket []

Description Of Changes

POC option for type-safe queries leveraging a generated npm package and swr as a query client.
The goal is to have always up-to-date types that will fail when backend changes conflict with the FE.
I propose that we remove the ability to update our current types in this repo to promote the usage of the new types and hooks.

Features

  • Auto-generated path-based query params
  • Simplified query hooks

TODO:

  • Complete and merge in fidesplus action trigger PR
  • Finish CICD for package generation in package repository
  • Make package public

Code Changes

Steps to Confirm

Pre-Merge Checklist

  • Issue requirements met
  • All CI pipelines succeeded
  • CHANGELOG.md updated
    • Add a db-migration This indicates that a change includes a database migration label to the entry if your change includes a DB migration
    • Add a high-risk This issue suggests changes that have a high-probability of breaking existing code label to the entry if your change includes a high-risk change (i.e. potential for performance impact or unexpected regression) that should be flagged
    • Updates unreleased work already in Changelog, no new entry necessary
  • UX feedback:
    • All UX related changes have been reviewed by a designer
    • No UX review needed
  • Followup issues:
    • Followup issues created
    • No followup issues
  • Database migrations:
    • Ensure that your downrev is up to date with the latest revision on main
    • Ensure that your downgrade() migration is correct and works
      • If a downgrade migration is not possible for this change, please call this out in the PR description!
    • No migrations
  • Documentation:
    • Documentation complete, PR opened in fidesdocs
    • Documentation issue created in fidesdocs
    • If there are any new client scopes created as part of the pull request, remember to update public-facing documentation that references our scope registry
    • No documentation updates required

@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented Feb 6, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

2 Skipped Deployments
Project Deployment Actions Updated (UTC)
fides-plus-nightly Ignored Ignored Preview Feb 24, 2026 4:26pm
fides-privacy-center Ignored Ignored Feb 24, 2026 4:26pm

Request Review

@speaker-ender speaker-ender force-pushed the feat/typesafe-queries--swr branch from ea1fcde to d776984 Compare February 6, 2026 23:30
@speaker-ender speaker-ender force-pushed the feat/typesafe-queries--swr branch from c648c07 to 3ebef34 Compare February 7, 2026 00:37
@speaker-ender speaker-ender force-pushed the feat/typesafe-queries--swr branch from b4c2f61 to b5ff28f Compare February 7, 2026 00:54
@speaker-ender speaker-ender force-pushed the feat/typesafe-queries--swr branch from b5ff28f to 247ba67 Compare February 7, 2026 00:57
@speaker-ender speaker-ender force-pushed the feat/typesafe-queries--swr branch 2 times, most recently from b4881c4 to 22415c6 Compare February 7, 2026 01:04
@speaker-ender speaker-ender force-pushed the feat/typesafe-queries--swr branch from 1aa9730 to 2f2aad1 Compare February 9, 2026 15:21
@speaker-ender speaker-ender added the dev experience Targets the developer experience label Feb 10, 2026
chore: linting and type fixes

refactor: using published package

refactor: use published package

feat: adding new query client to privacy center

chore: adding actual data

fix: using next instead of latest

fix: temp token for install

chore: temp token for install
@speaker-ender speaker-ender force-pushed the feat/typesafe-queries--swr branch from 2f2aad1 to 98a27bf Compare February 24, 2026 16:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dev experience Targets the developer experience

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant