fiberplane / fpx

Supercharge your local development
https://fiberplane.dev
MIT License
43 stars 1 forks source link

Requestor websockets + UI state refactor #96

Closed brettimus closed 1 month ago

brettimus commented 1 month ago

CURRENTLY RELEASED AS AN ALPHA IF YOU WANT TO TEST npx @fiberplane/studio@0.5.0-alpha.1

This is a major quality of life overhaul to the Requestor UI, which also introduces some (WIP) UX around playing with WebSockets.

My opinion is that we should hide the WebSocket stuff in the UI for now, and then tackle the UX for WebSockets in a separate PR, so I hid it behind a janky feature flag for now.

If you want to play with the websocket stuff, either turn on the feature flag locally (look for the file: webSocketFeatureFlag), or run this in your browser console:

localStorage.setItem("fpx.requestor.webSocketsEnabled", "true")

Below are some notes I took about what needs to be done to support WebSocket testing more robustly in Requestor.

WebSocket TODOs (for future PR)

Changes

WebSockets

Route Matching

Savable Draft Routes

General Improvements

Database Updates