Skip to content

Commit

Permalink
Merge pull request #829 from supertokens/multitenancy-dashboard
Browse files Browse the repository at this point in the history
fix: dashboard update for tenant management
  • Loading branch information
rishabhpoddar authored Aug 15, 2024
2 parents e4e2181 + 86d5e64 commit c6171e1
Show file tree
Hide file tree
Showing 182 changed files with 6,731 additions and 227 deletions.
15 changes: 15 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,21 @@ Content for Custom UI
</PreBuiltOrCustomUISwitcher>
```

## Generating screenshots / gifs

`screenshots` folder has scripts to generate screenshots and gifs. To generate them, do the following steps:

- Setup supertokens demo app using `npx create-supertokens-app@latest`
- Update `config.ts` to point to `localhost:3567` instead of `try.supertokens.com`
- Run Supertokens core locally using [docker](https://supertokens.com/docs/thirdpartypasswordless/pre-built-ui/setup/core/with-docker)
- Create a [dashboard user](https://supertokens.com/docs/thirdpartypasswordless/pre-built-ui/setup/user-management-dashboard/setup#creating-dashboard-credentials) with email `[email protected]` and password `demopass123`.
- Run:
- `cd screenshots`
- `npm i`
- `bash generate-all.sh`

Once all the commands run successfully, the screenshots will be placed appropriately in the `static` directory.

## Building for deployment
- This only works if have access to the `supertokens-backend-website` and `main-website` repo.
- Make sure that the `main-website` repo contains the `docs` repo and the `supertokens-backend-website` repo.
Expand Down
19 changes: 19 additions & 0 deletions screenshots/generate-all.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/bash

npm run execute ./tenant-management/dashboard/overview.yaml

npm run execute ./tenant-management/create-provider/new-active-directory.yaml
npm run execute ./tenant-management/create-provider/new-apple.yaml
npm run execute ./tenant-management/create-provider/new-bitbucket.yaml
npm run execute ./tenant-management/create-provider/new-discord.yaml
npm run execute ./tenant-management/create-provider/new-facebook.yaml
npm run execute ./tenant-management/create-provider/new-github.yaml
npm run execute ./tenant-management/create-provider/new-gitlab.yaml
npm run execute ./tenant-management/create-provider/new-google-workspaces.yaml
npm run execute ./tenant-management/create-provider/new-google.yaml
npm run execute ./tenant-management/create-provider/new-linkedin.yaml
npm run execute ./tenant-management/create-provider/new-okta.yaml
npm run execute ./tenant-management/create-provider/new-twitter.yaml
npm run execute ./tenant-management/create-provider/new-saml.yaml

npm run execute ./user-roles/create-role.yaml
Loading

0 comments on commit c6171e1

Please sign in to comment.