Makespace / members-app

Simplifying operations for Cambridge MakeSpace
MIT License
1 stars 2 forks source link

Richer responses & side effects (redirects, emails, >1 event, jobs, etc) #26

Open chromy opened 4 months ago

chromy commented 4 months ago

There are couple of features which we might want soon:

and to be able to fit those features in it would be nice to expand the types that queries and commands can return (and maybe even partially unify them)

To start with my plan would be change queries from returning {body: string, title: string} to instead return Page | Redirect where Page = {body: string, title: string} and Redirect = {url: string}.

erkannt commented 4 months ago

I like the idea of expanding the return type of queries to allow redirects. For success redirects after a command I'd suggest introducing a standard for an optional field that forms can submit as part of the request.