Files
supabase/apps/studio/package.json
Joshen Lim 1127c4ba88 Project Level Permissions (#27347)
* fix: update Permission params

* fix: upgrade check permission hook to support project level role

* fix: usePermissionsLoaded

* fix: Permission params can be undefined

* Scaffold new access management UI

* Add validation

* Update roles view

* Add tooltip

* Add button to apply role to all projects

* Update UI to select projects first instead of roles

* Merge master update UI

* Midway trying to implementation project level perms API

* First pass implementating updating project level permissions

* Add client side validation for assigning/removing roles

* Midway implementing new invites

* Integrate most of the project level permissions functionality

* fix: filter out org-level permissions before checking

* Add relevant UI guards in org level pages for project role POV

* Minor refactors

* Small refactors

* More fixes

* Moar refactors

* More fixes

* More fixes

* Refactor update role logic and smack some test cases on it

* Fixes

* Fix type issue

* Fix type

* more fixes, refactors, adding checks...

* MORE fixes

* Add perms checking for replicas

* Add ButtonTooltip component and use them to prevent repetition of pointer events auto for buttons with tooltips

* Convert all buttons with tooltips to use ButtonTooltip

* refactor

* PRettier

* Small fix

* Remove commented out code in organization-invitation-accept-mutation

* fix: switch to use the platform oauth authorizations routes

* Add perms checking for org audit logs and org oauth apps

* PRettier

* Fix incorrect URL for oauth app flow

* Fix incorrect URL for oauth app flow

* Fix

* Add perms checking for warehouse related UI

* Update roles helper icon

* remove unused lib

* Update package lock... again

* Update package lock... again

* Smalllll update

* Update some checks

* Add gate for project level permissions

* Last fix

* update codegen

* Update warehouse endpoint routes

* Fix

---------

Co-authored-by: phamhieu <phamhieu1998@gmail.com>
Co-authored-by: Alaister Young <a@alaisteryoung.com>
2024-07-01 17:59:54 +08:00

164 lines
5.4 KiB
JSON

{
"name": "studio",
"version": "0.0.9",
"private": true,
"scripts": {
"dev": "next dev -p 8082",
"dev:secrets:pull": "AWS_PROFILE=supabase-dev node ../../scripts/getSecrets.js -n local/studio",
"build": "next build",
"start": "next start",
"lint": "next lint",
"test": "vitest --run",
"test:watch": "vitest watch",
"test:ui": "vitest --ui",
"test:update": "vitest --run --update",
"test:update:watch": "vitest --watch --update",
"deploy:staging": "VERCEL_ORG_ID=team_E6KJ1W561hMTjon1QSwOh0WO VERCEL_PROJECT_ID=QmcmhbiAtCMFTAHCuGgQscNbke4TzgWULECctNcKmxWCoT vercel --prod -A .vercel/staging.json",
"typecheck": "tsc --noEmit",
"storybook": "start-storybook -p 6006",
"build-storybook": "build-storybook",
"prettier:check": "prettier --check .",
"prettier:write": "prettier --write ."
},
"dependencies": {
"@aws-crypto/sha256-browser": "^3.0.0",
"@dagrejs/dagre": "^1.0.4",
"@graphiql/react": "^0.19.4",
"@graphiql/toolkit": "^0.9.1",
"@hcaptcha/react-hcaptcha": "^1.8.1",
"@headlessui/react": "^1.7.17",
"@heroicons/react": "^2.1.3",
"@monaco-editor/react": "^4.6.0",
"@next/bundle-analyzer": "^14.2.3",
"@radix-ui/react-popover": "^1.0.7",
"@radix-ui/react-tooltip": "^1.0.7",
"@scaleleap/pg-format": "^1.0.0",
"@sentry/nextjs": "^7.108.0",
"@stripe/react-stripe-js": "^2.5.0",
"@stripe/stripe-js": "^3.0.5",
"@supabase/auth-helpers-react": "^0.4.2",
"@supabase/pg-meta": "*",
"@supabase/realtime-js-next": "npm:@supabase/realtime-js@2.10.0-next.8",
"@supabase/shared-types": "0.1.70",
"@supabase/supabase-js": "^2.41.1",
"@tanstack/react-query": "4.35.7",
"@tanstack/react-query-devtools": "4.35.7",
"@uidotdev/usehooks": "^2.4.1",
"@vitejs/plugin-react": "^4.2.1",
"@zip.js/zip.js": "^2.7.29",
"ai": "^2.2.31",
"ai-commands": "*",
"awesome-debounce-promise": "^2.1.0",
"clsx": "^1.2.1",
"common": "*",
"common-tags": "^1.8.2",
"config": "*",
"configcat-js": "^7.0.0",
"dayjs": "^1.11.10",
"file-saver": "^2.0.5",
"framer-motion": "^11.0.3",
"generate-password-browser": "^1.1.0",
"html-to-image": "^1.10.8",
"icons": "*",
"immutability-helper": "^3.1.1",
"ip-num": "^1.5.1",
"json-logic-js": "^2.0.2",
"lodash": "^4.17.21",
"lucide-react": "^0.338.0",
"markdown-table": "^3.0.3",
"mobx": "^6.10.2",
"mobx-react-lite": "^4.0.5",
"monaco-editor": "0.33.0",
"next": "^14.2.3",
"next-themes": "^0.3.0",
"openai": "^4.20.1",
"openapi-fetch": "^0.6.2",
"papaparse": "^5.3.1",
"path-to-regexp": "^6.2.0",
"pg-minify": "^1.6.3",
"prism-react-renderer": "^2.3.1",
"randombytes": "^2.1.0",
"react": "^18.2.0",
"react-beautiful-dnd": "^13.1.0",
"react-contexify": "^5.0.0",
"react-csv": "^2.0.3",
"react-data-grid": "7.0.0-beta.41",
"react-datepicker": "^4.18.0",
"react-dnd": "^16.0.1",
"react-dnd-html5-backend": "^16.0.1",
"react-dom": "^18.2.0",
"react-error-boundary": "^4.0.13",
"react-grid-layout": "^1.4.2",
"react-hot-toast": "^2.4.1",
"react-inlinesvg": "^4.0.4",
"react-intersection-observer": "^9.5.3",
"react-markdown": "^8.0.3",
"react-simple-maps": "4.0.0-beta.6",
"react-tracked": "^1.7.11",
"react-virtualized-auto-sizer": "^1.0.20",
"react-window": "^1.8.6",
"react-window-infinite-loader": "^1.0.7",
"reactflow": "^11.10.1",
"recharts": "^2.8.0",
"semver": "^6.3.1",
"shared-data": "*",
"sql-formatter": "^13.1.0",
"sqlstring": "^2.3.2",
"ui": "*",
"ui-patterns": "*",
"uuid": "^9.0.1",
"valtio": "^1.12.0",
"vite-tsconfig-paths": "^4.3.2",
"vitest": "^1.6.0",
"yup": "^1.4.0",
"yup-password": "^0.3.0",
"zxcvbn": "^4.4.2"
},
"devDependencies": {
"@aws-sdk/client-secrets-manager": "^3.410.0",
"@storybook/addon-essentials": "^7.5.3",
"@storybook/addon-interactions": "^7.5.3",
"@storybook/addon-links": "^7.5.3",
"@storybook/react": "^7.5.3",
"@supabase/postgres-meta": "^0.64.4",
"@testing-library/dom": "^9.3.3",
"@testing-library/react": "^14.0.0",
"@testing-library/user-event": "^13.5.0",
"@types/common-tags": "^1.8.1",
"@types/file-saver": "^2.0.2",
"@types/json-logic-js": "^1.2.1",
"@types/lodash": "^4.14.172",
"@types/markdown-table": "^3.0.0",
"@types/papaparse": "^5.3.1",
"@types/randombytes": "^2.0.3",
"@types/react": "^18.2.24",
"@types/react-beautiful-dnd": "^13.1.2",
"@types/react-csv": "^1.1.2",
"@types/react-datepicker": "^4.3.4",
"@types/react-dom": "^18.2.8",
"@types/react-grid-layout": "^1.3.0",
"@types/react-simple-maps": "^3.0.1",
"@types/react-virtualized-auto-sizer": "^1.0.1",
"@types/react-window": "^1.8.5",
"@types/react-window-infinite-loader": "^1.0.5",
"@types/recharts": "^1.8.23",
"@types/semver": "^7.3.9",
"@types/sqlstring": "^2.3.0",
"@types/uuid": "^8.3.4",
"@types/zxcvbn": "^4.4.1",
"@vitest/ui": "^1.6.0",
"api-types": "*",
"autoprefixer": "^10.4.14",
"common": "*",
"config": "*",
"eslint-config-supabase": "*",
"msw": "^2.3.0",
"next-router-mock": "^0.9.13",
"postcss": "^8.4.31",
"prettier": "^4.0.0-alpha.8",
"storybook-dark-mode": "^3.0.1",
"tailwindcss": "^3.4.1",
"typescript": "^5.5.0"
}
}