Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
beeaa55
feat: migrate the tenants BE repo and update various things
deepjyoti30-st Sep 1, 2025
7469aa9
feat: migrate the tenants react repo
deepjyoti30-st Sep 1, 2025
5226d7f
feat: add changes to the tenants tab
deepjyoti30-st Sep 5, 2025
94b6369
feat: update tenant management with UI components
deepjyoti30-st Sep 5, 2025
ba43413
feat: add support for tenants tab/table structure and use in users tab
deepjyoti30-st Sep 5, 2025
b4eee3d
fix: issues with tab rendering for tenant management
deepjyoti30-st Sep 8, 2025
bc24525
fix: styling issues with wa tab components
deepjyoti30-st Sep 8, 2025
b6e0a8b
feat: add UI changes for tenant table and users management
deepjyoti30-st Sep 9, 2025
2db06a8
feat: add support for user roles in users in tenants tab
deepjyoti30-st Sep 10, 2025
8a0028d
feat: add support for role change in tenants users
deepjyoti30-st Sep 10, 2025
6b5382e
feat: add support for adding invites with the new UI
deepjyoti30-st Sep 11, 2025
1b4c23b
feat: add support for removing invitations
deepjyoti30-st Sep 11, 2025
822f232
feat: add support for viewing code and copying it for invitation
deepjyoti30-st Sep 12, 2025
f09acfa
feat: add BE support for removing user from tenant
deepjyoti30-st Sep 15, 2025
d5c8371
feat: add UI support for removing user from tenants
deepjyoti30-st Sep 16, 2025
ed991a8
feat: add init UI structure for tenant requests
deepjyoti30-st Sep 16, 2025
17d2add
feat: add support for tenant requests - onboarding accept/decline
deepjyoti30-st Sep 17, 2025
5ae244c
feat: add support for rendering tenant creation requests
deepjyoti30-st Sep 18, 2025
f13a95f
fix: various issues with tenant invite
deepjyoti30-st Sep 19, 2025
4cc5333
feat: add support for icon components support with custom SVG's
deepjyoti30-st Sep 22, 2025
65391fe
feat: add init port for tenant enrollment plugin
deepjyoti30-st Sep 23, 2025
98c7d48
fix: formatting of plugin
deepjyoti30-st Sep 24, 2025
241de14
feat: add support for showing tenant join approval pending screen
deepjyoti30-st Sep 25, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22,616 changes: 13,031 additions & 9,585 deletions package-lock.json

Large diffs are not rendered by default.

9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,14 @@
"devDependencies": {
"@changesets/cli": "^2.27.1",
"@typescript-eslint/eslint-plugin": "^8.39.1",
"@vitejs/plugin-react": "^4.5.2",
"eslint": "^8.57.0",
"eslint-plugin-import": "^2.32.0",
"eslint-plugin-react-hooks": "^5.2.0",
"prettier": "^3.2.5",
"turbo": "^2.5.5",
"@vitejs/plugin-react": "^4.5.2",
"rollup-plugin-peer-deps-external": "^2.2.4",
"sass-embedded": "^1.92.0",
"turbo": "^2.5.5",
"vite": "^6.3.5",
"vite-plugin-dts": "^4.5.4"
},
Expand All @@ -40,7 +41,7 @@
"@shared/js": "*",
"@shared/nodejs": "*",
"@shared/react": "*",
"tsup": "^8.5.0"
"tsup": "^8.5.0",
"@supertokens-plugins/tenants-nodejs": "*"
}
}

10 changes: 10 additions & 0 deletions packages/tenant-enrollment-nodejs/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/** @type {import("eslint").Linter.Config} */
module.exports = {
extends: [require.resolve('@shared/eslint/node.js')],
parserOptions: {
project: 'tsconfig.json',
tsconfigRootDir: __dirname,
sourceType: 'module',
},
ignorePatterns: ['**/*.test.ts', '**/*.spec.ts'],
};
4 changes: 4 additions & 0 deletions packages/tenant-enrollment-nodejs/.prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/** @type {import("prettier").Config} */
module.exports = {
...require("@shared/eslint/prettier"),
};
5 changes: 5 additions & 0 deletions packages/tenant-enrollment-nodejs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# @supertokens-plugins/tenant-enrollment-nodejs

## 0.1.0

- Add the initial node tenant enrollment plugin
42 changes: 42 additions & 0 deletions packages/tenant-enrollment-nodejs/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"name": "@supertokens-plugins/tenant-enrollment-nodejs",
"version": "0.1.0",
"description": "Tenant Enrollment Plugin for SuperTokens",
"homepage": "https://github.com/supertokens/supertokens-plugins/blob/main/packages/tenant-enrollment-nodejs/README.md",
"repository": {
"type": "git",
"url": "git+https://github.com/supertokens/supertokens-plugins.git",
"directory": "packages/tenant-enrollment-nodejs"
},
"scripts": {
"build": "vite build && npm run pretty",
"pretty": "npx pretty-quick .",
"pretty-check": "npx pretty-quick --check .",
"test": "TEST_MODE=testing vitest run --pool=forks --passWithNoTests"
},
"keywords": [
"tenant-enrollment",
"plugin",
"supertokens"
],
"peerDependencies": {
"supertokens-node": ">=23.0.0",
"@supertokens-plugins/tenants-nodejs": "*"
},
"devDependencies": {
"@shared/eslint": "*",
"@shared/tsconfig": "*",
"@types/react": "^17.0.20",
"express": "^5.1.0",
"prettier": "3.6.2",
"pretty-quick": "^4.2.2",
"typescript": "^5.8.3",
"vitest": "^3.2.4",
"@shared/nodejs": "*"
},
"browser": {
"fs": false
},
"main": "./dist/index.js",
"types": "./dist/index.d.ts"
}
6 changes: 6 additions & 0 deletions packages/tenant-enrollment-nodejs/src/constants.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export const PLUGIN_ID = "supertokens-plugin-tenant-enrollment";
export const PLUGIN_VERSION = "0.0.1";

export const PLUGIN_SDK_VERSION = ["23.0.0", "23.0.1", ">=23.0.1"];

export const HANDLE_BASE_PATH = `/plugin/${PLUGIN_ID}`;
4 changes: 4 additions & 0 deletions packages/tenant-enrollment-nodejs/src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import { init } from "./plugin";
export { init };
export { PLUGIN_ID } from "./constants";
export default { init };
4 changes: 4 additions & 0 deletions packages/tenant-enrollment-nodejs/src/logger.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import { buildLogger } from "@shared/nodejs";
import { PLUGIN_ID, PLUGIN_VERSION } from "./constants";

export const { logDebugMessage, enableDebugLogs } = buildLogger(PLUGIN_ID, PLUGIN_VERSION);
Loading