Skip to content
Merged
Show file tree
Hide file tree
Changes from 36 commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
c2fa5d8
component type fixes
niftyvictor Aug 28, 2025
803f55b
ported progressive profiling plugin
niftyvictor Aug 28, 2025
9a0ba05
styling and translation fixes
niftyvictor Aug 28, 2025
087a06f
refactor: rename and restructure progressive profiling components and…
niftyvictor Aug 28, 2025
efc29c8
frontend pr fixes and cleanup
niftyvictor Aug 28, 2025
993d70a
refactor and cleanup pr fixes
niftyvictor Aug 29, 2025
c645c3c
better error handling for pretty actions
niftyvictor Aug 29, 2025
01707c9
add separate querier errors
niftyvictor Aug 29, 2025
8e0cc23
type fixes
niftyvictor Aug 29, 2025
99319c1
added utility functions
niftyvictor Aug 29, 2025
82a9728
improve error handling and messaging on frontend
niftyvictor Aug 29, 2025
86d2c10
cleanup
niftyvictor Aug 29, 2025
98cb447
cleanup and fix section saving
niftyvictor Aug 29, 2025
556ae56
fix pretty action crash
niftyvictor Aug 29, 2025
0f2d0a3
cleanup and fixes
niftyvictor Aug 29, 2025
a99a699
added userContext support
niftyvictor Aug 29, 2025
3ea1c3e
include session and userContext parameters in relevant methods for o…
niftyvictor Aug 29, 2025
4f275db
fix sections state after completion and loading state
niftyvictor Aug 29, 2025
0bece90
fix initial section
niftyvictor Aug 29, 2025
190a0b9
added support for defaul sections and cleanup session validations
niftyvictor Aug 29, 2025
9db585a
allow onsuccess calling only when completing the steps
niftyvictor Aug 29, 2025
2ca4898
call onsuccess callback with correct data and fix default active sect…
niftyvictor Aug 29, 2025
bd8091e
fix image url input
niftyvictor Aug 29, 2025
c4d661c
missing dep
niftyvictor Aug 29, 2025
bf257fa
added base implementation support
niftyvictor Sep 8, 2025
c66b817
cleanup
niftyvictor Sep 8, 2025
a92875c
properly add plugin implementation
niftyvictor Sep 8, 2025
b581221
export get set profile methods
niftyvictor Sep 8, 2025
6d4ff0f
cleanup
niftyvictor Sep 8, 2025
3711cfc
update exports and tests
niftyvictor Sep 10, 2025
9f34904
fix testing config to work with supertokens-dev
niftyvictor Sep 11, 2025
3a1d7d8
add support for plugin implementation reset
niftyvictor Sep 11, 2025
a385d72
add missing tests
niftyvictor Sep 11, 2025
896c5af
Merge branch 'main' into feat/progressive-profiling-plugin
niftyvictor Sep 11, 2025
bd4a6d8
package lock updates
niftyvictor Sep 11, 2025
930333e
pr fixes
niftyvictor Sep 18, 2025
6c949fa
removed unused code
niftyvictor Sep 19, 2025
86aa512
added changesets
niftyvictor Sep 19, 2025
d534e11
Merge branch 'main' into feat/progressive-profiling-plugin
niftyvictor Sep 19, 2025
0bf591a
merge fixes
niftyvictor Sep 19, 2025
756d1fd
Merge branch 'main' into feat/progressive-profiling-plugin
niftyvictor Sep 22, 2025
2f1a756
merge fixes
niftyvictor Sep 22, 2025
534aa83
make start and end sections configurable
niftyvictor Sep 24, 2025
2b7b5c3
Merge branch 'main' into feat/progressive-profiling-plugin
niftyvictor Sep 24, 2025
a00598e
merge fixes
niftyvictor Sep 24, 2025
f6a360b
Merge branch 'main' into feat/progressive-profiling-plugin
niftyvictor Sep 24, 2025
c86f1a3
changelog
niftyvictor Sep 24, 2025
b507f9e
update implementation methods to only use objects as inputs
niftyvictor Sep 24, 2025
bad25cb
make claim checking and section completion storing overridable
niftyvictor Sep 24, 2025
85f1dfe
typo
niftyvictor Sep 24, 2025
dfda212
Merge remote-tracking branch 'origin/main' into feat/progressive-prof…
porcellus Sep 24, 2025
5b1aff3
fix: the last section should properly do the success redirection
porcellus Sep 24, 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
222 changes: 217 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"turbo": "^2.5.5",
"@vitejs/plugin-react": "^4.5.2",
"rollup-plugin-peer-deps-external": "^2.2.4",
"vite-plugin-css-injected-by-js": "^3.5.2",
"vite": "^6.3.5",
"vite-plugin-dts": "^4.5.4"
},
Expand All @@ -40,7 +41,7 @@
"@shared/js": "*",
"@shared/nodejs": "*",
"@shared/react": "*",
"@supertokens-plugins/progressive-profiling-shared": "*",
"tsup": "^8.5.0"
}
}

}
10 changes: 10 additions & 0 deletions packages/progressive-profiling-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/progressive-profiling-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"),
};
1 change: 1 addition & 0 deletions packages/progressive-profiling-nodejs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# @supertokens-plugins/progressive-profiling-nodejs
1 change: 1 addition & 0 deletions packages/progressive-profiling-nodejs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# SuperTokens Plugin Progressive Profiling
58 changes: 58 additions & 0 deletions packages/progressive-profiling-nodejs/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
{
"name": "@supertokens-plugins/progressive-profiling-nodejs",
"version": "0.0.2-beta.2",
"description": "Progressive Profiling Plugin for SuperTokens",
"homepage": "https://github.com/supertokens/supertokens-plugins/blob/main/packages/progressive-profiling-nodejs/README.md",
"repository": {
"type": "git",
"url": "git+https://github.com/supertokens/supertokens-plugins.git",
"directory": "packages/progressive-profiling-nodejs"
},
"scripts": {
"build": "tsup src/index.ts --format cjs,esm --dts",
"pretty": "npx pretty-quick .",
"pretty-check": "npx pretty-quick --check .",
"test": "TEST_MODE=testing vitest run --pool=forks"
},
"keywords": [
"progressive-profiling",
"plugin",
"supertokens"
],
"dependencies": {
"@supertokens-plugins/progressive-profiling-shared": "*"
},
"peerDependencies": {
"supertokens-node": ">=23.0.0"
},
"devDependencies": {
"@shared/eslint": "*",
"@shared/tsconfig": "*",
"@shared/nodejs": "*",
"express": "^5.1.0",
"prettier": "2.0.5",
"pretty-quick": "^3.1.1",
"typescript": "^5.8.3",
"vitest": "^3.2.4"
},
"browser": {
"fs": false
},
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"exports": {
".": {
"types": "dist/index.d.ts",
"default": "dist/index.js"
},
"./index": {
"types": "dist/index.d.ts",
"default": "dist/index.js"
},
"./index.js": {
"types": "dist/index.d.ts",
"default": "dist/index.js"
}
}
}
12 changes: 12 additions & 0 deletions packages/progressive-profiling-nodejs/src/constants.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { FormSection } from "./types";

export const PLUGIN_ID = "supertokens-plugin-progressive-profiling";
export const PLUGIN_VERSION = "0.0.1";
export const PLUGIN_SDK_VERSION = ["23.0.1", ">=23.0.1"];

export const METADATA_KEY = `${PLUGIN_ID}`;
export const METADATA_PROFILE_KEY = "st-profile"; // don't use plugin id, because we need to be able to have the same key in the profile plugin as well

export const HANDLE_BASE_PATH = `/plugin/${PLUGIN_ID}`;

export const DEFAULT_SECTIONS: FormSection[] = [];
Loading