mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-13 21:01:21 +08:00
<!--
Make sure you've read the CONTRIBUTING.md guidelines:
https://github.com/stack-auth/stack-auth/blob/dev/CONTRIBUTING.md
-->
<!-- ELLIPSIS_HIDDEN -->
----
> [!IMPORTANT]
> Add support for uploading and managing project logos with image
compression and validation in project settings.
>
> - **Behavior**:
> - Added support for uploading and managing project logos (`logoUrl`,
`fullLogoUrl`) in `Project` model.
> - New `LogoUpload` component in `logo-upload.tsx` for image upload
with compression and validation.
> - Projects display and store logo URLs for branding.
> - **Database**:
> - Added `logoUrl` and `fullLogoUrl` columns to `Project` table in
`migration.sql`.
> - Updated `schema.prisma` to include new fields in `Project` model.
> - **Backend**:
> - Updated `createOrUpdateProjectWithLegacyConfig()` in `projects.tsx`
to handle logo uploads.
> - Increased max image upload size to 1 MB in `images.tsx` and
`s3.tsx`.
> - Added `browser-image-compression` dependency in `package.json`.
> - **Frontend**:
> - Integrated `LogoUpload` component in `page-client.tsx` for project
settings.
> - Updated `AdminProject` type in `projects/index.ts` to include logo
URLs.
> - **Tests**:
> - Updated e2e tests in `projects.test.ts` and others to verify logo
upload functionality.
>
> <sup>This description was created by </sup>[<img alt="Ellipsis"
src="https://img.shields.io/badge/Ellipsis-blue?color=175173">](https://www.ellipsis.dev?ref=stack-auth%2Fstack-auth&utm_source=github&utm_medium=referral)<sup>
for 1b0cdbf123. You can
[customize](https://app.ellipsis.dev/stack-auth/settings/summaries) this
summary. It will automatically update as commits are pushed.</sup>
----
<!-- ELLIPSIS_HIDDEN -->
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **New Features**
* Added support for uploading and managing project logos, including both
square and full (with text) logos, in the project settings page.
* Introduced a new logo upload component with image compression, size
validation, and removal functionality.
* Projects now display and store logo URLs, allowing for enhanced
branding and customization.
* **Improvements**
* Increased maximum allowed image upload size to 1 MB for project logos.
* Added clear image size constraints and unified image validation across
the app.
* **Dependencies**
* Added "browser-image-compression" library to support client-side image
compression.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
---------
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
Co-authored-by: Konsti Wohlwend <n2d4xc@gmail.com>
90 lines
2.8 KiB
JSON
90 lines
2.8 KiB
JSON
{
|
|
"name": "@stackframe/stack-dashboard",
|
|
"version": "2.8.29",
|
|
"private": true,
|
|
"scripts": {
|
|
"clean": "rimraf .next && rimraf node_modules",
|
|
"typecheck": "tsc --noEmit",
|
|
"with-env": "dotenv -c development --",
|
|
"with-env:prod": "dotenv -c --",
|
|
"dev": "next dev --turbopack --port 8101",
|
|
"build": "next build",
|
|
"docker-build": "next build --experimental-build-mode compile",
|
|
"analyze-bundle": "ANALYZE_BUNDLE=1 pnpm run build",
|
|
"start": "next start --port 8101",
|
|
"psql": "pnpm run with-env bash -c 'psql $STACK_DATABASE_CONNECTION_STRING'",
|
|
"lint": "next lint"
|
|
},
|
|
"dependencies": {
|
|
"@assistant-ui/react": "^0.10.24",
|
|
"@assistant-ui/react-ai-sdk": "^0.10.14",
|
|
"@assistant-ui/react-markdown": "^0.10.5",
|
|
"@dnd-kit/core": "^6.3.1",
|
|
"@dnd-kit/sortable": "^10.0.0",
|
|
"@hookform/resolvers": "^3.3.4",
|
|
"@monaco-editor/react": "4.7.0",
|
|
"@next/bundle-analyzer": "15.2.3",
|
|
"@radix-ui/react-slot": "^1.2.3",
|
|
"@radix-ui/react-tooltip": "^1.1.3",
|
|
"@react-hook/resize-observer": "^2.0.2",
|
|
"@sentry/nextjs": "^8.40.0",
|
|
"@stackframe/stack": "workspace:*",
|
|
"@stackframe/stack-shared": "workspace:*",
|
|
"@stackframe/stack-ui": "workspace:*",
|
|
"@stripe/connect-js": "^3.3.27",
|
|
"@stripe/react-connect-js": "^3.3.24",
|
|
"@stripe/react-stripe-js": "^3.8.1",
|
|
"@stripe/stripe-js": "^7.7.0",
|
|
"@tanstack/react-table": "^8.20.5",
|
|
"@vercel/analytics": "^1.2.2",
|
|
"@vercel/speed-insights": "^1.0.12",
|
|
"browser-image-compression": "^2.0.2",
|
|
"canvas-confetti": "^1.9.2",
|
|
"clsx": "^2.0.0",
|
|
"dotenv-cli": "^7.3.0",
|
|
"geist": "^1",
|
|
"jose": "^5.2.2",
|
|
"lodash": "^4.17.21",
|
|
"lucide-react": "^0.508.0",
|
|
"next": "15.4.1",
|
|
"next-themes": "^0.2.1",
|
|
"posthog-js": "^1.235.0",
|
|
"react": "19.0.0",
|
|
"react-dom": "19.0.0",
|
|
"react-globe.gl": "^2.28.2",
|
|
"react-hook-form": "^7.53.1",
|
|
"react-icons": "^5.0.1",
|
|
"react-syntax-highlighter": "^15.6.1",
|
|
"recharts": "^2.14.1",
|
|
"remark-gfm": "^4.0.1",
|
|
"svix": "^1.32.0",
|
|
"svix-react": "^1.13.0",
|
|
"tailwind-merge": "^2.3.0",
|
|
"tailwindcss-animate": "^1.0.7",
|
|
"use-debounce": "^10.0.5",
|
|
"yup": "^1.4.0"
|
|
},
|
|
"devDependencies": {
|
|
"@types/canvas-confetti": "^1.6.4",
|
|
"@types/lodash": "^4.17.5",
|
|
"@types/node": "20.17.6",
|
|
"@types/react": "19.0.12",
|
|
"@types/react-dom": "19.0.4",
|
|
"@types/react-syntax-highlighter": "^15.5.13",
|
|
"autoprefixer": "^10.4.17",
|
|
"glob": "^10.4.1",
|
|
"import-in-the-middle": "^1.12.0",
|
|
"postcss": "^8.4.38",
|
|
"require-in-the-middle": "^7.4.0",
|
|
"rimraf": "^5.0.5",
|
|
"tailwindcss": "^3.4.1",
|
|
"tsx": "^4.7.2"
|
|
},
|
|
"pnpm": {
|
|
"overrides": {
|
|
"@types/react": "19.0.12",
|
|
"@types/react-dom": "19.0.4"
|
|
}
|
|
}
|
|
}
|