Commit Graph

10 Commits

Author SHA1 Message Date
arcticfly
9978075867 Fix auth flicker (#75)
* Remove experiments flicker for unauthenticated users

* Decrease size of NewScenarioButton spinner
2023-07-20 20:46:31 -07:00
Kyle Corbitt
1dcdba04a6 User accounts
Allows for the creation of user accounts. A few notes on the specifics:

 - Experiments are the main access control objects. If you can view an experiment, you can view all its prompts/scenarios/evals. If you can edit it, you can edit or delete all of those as well.
 - Experiments are owned by Organizations in the database. Organizations can have multiple members and members can have roles of ADMIN, MEMBER or VIEWER.
 - Organizations can either be "personal" or general. Each user has a "personal" organization created as soon as they try to create an experiment. There's currently no UI support for creating general orgs or adding users to them; they're just in the database to future-proof all the ACL logic.
 - You can require that a user is signed-in to see a route using the `protectedProcedure` helper. When you use `protectedProcedure`, you also have to call `ctx.markAccessControlRun()` (or delegate to a function that does it for you; see accessControl.ts). This is to remind us to actually check for access control when we define a new endpoint.
2023-07-18 21:19:03 -07:00
David Corbitt
ae9b37cf16 Add margin to autogenerating NewScenarioButton 2023-06-30 18:31:28 -07:00
Kyle Corbitt
15e4fe7e5a more robust sidebar layout 2023-06-28 10:37:37 -07:00
Kyle Corbitt
5d3d51d1a5 signal when new scenario is in progress 2023-06-28 06:37:40 -07:00
Kyle Corbitt
0a675cd7f7 autogen scenarios 2023-06-27 13:19:41 -07:00
Kyle Corbitt
267a5381f3 final lint errors 2023-06-26 23:46:10 -07:00
Kyle Corbitt
cd9e7bce1a prettier side panel 2023-06-26 18:25:21 -07:00
Kyle Corbitt
3f850bbd7f editing template variables works 2023-06-26 14:32:45 -07:00
Kyle Corbitt
8534477236 can add scenarios and it mostly works 2023-06-23 20:00:46 -07:00