Skip to content

feat: support maximum trust level and score limits#189

Open
roiding wants to merge 1 commit into
linux-do:masterfrom
roiding:master
Open

feat: support maximum trust level and score limits#189
roiding wants to merge 1 commit into
linux-do:masterfrom
roiding:master

Conversation

@roiding

@roiding roiding commented Jul 6, 2026

Copy link
Copy Markdown

例行检查

  • [ x] 我已阅读并理解 贡献者公约
  • [ x] 我已阅读并同意 贡献者许可协议 (CLA),确认我的贡献将根据项目的 MIT 许可证进行许可,
  • [x ] 我知晓如果此 PR 并不做出实质性更改,或可被认为是为了PR被合并而提交PR的,则可能不会被合并,

关联信息

Summary

This PR adds support for maximum community trust level and maximum community score limits for CDK projects, so creators can target newer users more easily.

Changes

  • Added trust_level_limit_type and score_limit_type to project data and API payloads
  • Extended backend requirement checks to support both minimum and maximum trust/score limits
  • Updated project list filtering logic to match the new eligibility rules
  • Redesigned the create/edit project dialog to use explicit 最低 / 最高 limit modes
  • Updated project cards and receive page metadata to display the new limit direction clearly
  • Improved receive button messaging for cases like 信任等级过高 and 社区分数过高
  • Kept old projects backward-compatible by defaulting new limit types to minimum behavior

Notes

  • Project creators can still view their own project detail page even if they do not satisfy the configured maximum limit
  • Swagger docs were not regenerated in this change because swag was not available locally
  • Frontend production build may still depend on external font access (fonts.gstatic.com) in restricted network environments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant