Commit 1c70523
committed
feat(all): make team member limits configurable per-team
Add per-team member limit configuration following the existing MCP limit pattern.
Teams now have a member_limit column that defaults to the global setting value.
Backend changes:
- Rename global setting from team.member_limit to team.default_member_limit
- Add member_limit column to teams table with migration
- Update TeamService to use per-team limits in member checks
- Add member_limit to admin API schemas and validation
- Update admin team endpoints to return member_limit field
Frontend changes:
- Add member_limit field to Team types and Zod schemas
- Update MembersList to use dynamic limits from team prop
- Add member_limit input to admin TeamDetailLimits component
- Hide member count and info bullets for default teams
- Update i18n text to reflect configurable limits
Default teams remain single-user only. Non-default teams default to 3 members.1 parent 86a2512 commit 1c70523
File tree
17 files changed
+6244
-15
lines changed- services
- backend
- drizzle/migrations
- meta
- src
- db/schema-tables
- global-settings
- routes/admin/teams
- services
- frontend/src
- components
- admin/teams
- teams/manage/members
- i18n/locales/en
- services
- views/admin/teams
17 files changed
+6244
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33929 | 33929 | | |
33930 | 33930 | | |
33931 | 33931 | | |
| 33932 | + | |
| 33933 | + | |
| 33934 | + | |
| 33935 | + | |
33932 | 33936 | | |
33933 | 33937 | | |
33934 | 33938 | | |
| |||
33946 | 33950 | | |
33947 | 33951 | | |
33948 | 33952 | | |
| 33953 | + | |
33949 | 33954 | | |
33950 | 33955 | | |
33951 | 33956 | | |
| |||
34117 | 34122 | | |
34118 | 34123 | | |
34119 | 34124 | | |
| 34125 | + | |
| 34126 | + | |
| 34127 | + | |
| 34128 | + | |
34120 | 34129 | | |
34121 | 34130 | | |
34122 | 34131 | | |
| |||
34134 | 34143 | | |
34135 | 34144 | | |
34136 | 34145 | | |
| 34146 | + | |
34137 | 34147 | | |
34138 | 34148 | | |
34139 | 34149 | | |
| |||
34288 | 34298 | | |
34289 | 34299 | | |
34290 | 34300 | | |
| 34301 | + | |
| 34302 | + | |
| 34303 | + | |
| 34304 | + | |
| 34305 | + | |
34291 | 34306 | | |
34292 | 34307 | | |
34293 | 34308 | | |
| |||
34363 | 34378 | | |
34364 | 34379 | | |
34365 | 34380 | | |
| 34381 | + | |
| 34382 | + | |
| 34383 | + | |
| 34384 | + | |
34366 | 34385 | | |
34367 | 34386 | | |
34368 | 34387 | | |
| |||
34380 | 34399 | | |
34381 | 34400 | | |
34382 | 34401 | | |
| 34402 | + | |
34383 | 34403 | | |
34384 | 34404 | | |
34385 | 34405 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24007 | 24007 | | |
24008 | 24008 | | |
24009 | 24009 | | |
| 24010 | + | |
| 24011 | + | |
| 24012 | + | |
24010 | 24013 | | |
24011 | 24014 | | |
24012 | 24015 | | |
| |||
24021 | 24024 | | |
24022 | 24025 | | |
24023 | 24026 | | |
| 24027 | + | |
24024 | 24028 | | |
24025 | 24029 | | |
24026 | 24030 | | |
| |||
24138 | 24142 | | |
24139 | 24143 | | |
24140 | 24144 | | |
| 24145 | + | |
| 24146 | + | |
| 24147 | + | |
24141 | 24148 | | |
24142 | 24149 | | |
24143 | 24150 | | |
| |||
24152 | 24159 | | |
24153 | 24160 | | |
24154 | 24161 | | |
| 24162 | + | |
24155 | 24163 | | |
24156 | 24164 | | |
24157 | 24165 | | |
| |||
24262 | 24270 | | |
24263 | 24271 | | |
24264 | 24272 | | |
| 24273 | + | |
| 24274 | + | |
| 24275 | + | |
| 24276 | + | |
24265 | 24277 | | |
24266 | 24278 | | |
24267 | 24279 | | |
| |||
24314 | 24326 | | |
24315 | 24327 | | |
24316 | 24328 | | |
| 24329 | + | |
| 24330 | + | |
| 24331 | + | |
24317 | 24332 | | |
24318 | 24333 | | |
24319 | 24334 | | |
| |||
24328 | 24343 | | |
24329 | 24344 | | |
24330 | 24345 | | |
| 24346 | + | |
24331 | 24347 | | |
24332 | 24348 | | |
24333 | 24349 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
0 commit comments