Skip to content

feat(frontend): delete irrelevant files and support quick parameter adjustment#22

Merged
chenyme merged 1 commit intomasterfrom
chen
Jul 2, 2025
Merged

feat(frontend): delete irrelevant files and support quick parameter adjustment#22
chenyme merged 1 commit intomasterfrom
chen

Conversation

@chenyme
Copy link
Copy Markdown
Collaborator

@chenyme chenyme commented Jul 2, 2025

No description provided.

@chenyme chenyme requested a review from OrenZhang July 2, 2025 11:22
@OrenZhang OrenZhang requested a review from Copilot July 2, 2025 11:23
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR removes outdated changelog entries, adjusts the default risk level, and enhances the numeric input (Counter) to support min/max/step with long-press for quick adjustments while also temporarily disabling manual invite mode in project creation.

  • Remove obsolete changelog files for v0.0.1 and v0.0.2
  • Lower default RISK_LEVEL and upgrade Counter with min/max/step & long-press controls
  • Disable manual invite distribution in CreateDialog with UI feedback

Reviewed Changes

Copilot reviewed 7 out of 9 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
frontend/public/docs/changelog/0_0_2/README.md Deleted outdated changelog for v0.0.2
frontend/public/docs/changelog/0_0_1/README.md Deleted outdated changelog for v0.0.1
frontend/components/common/project/constants.ts Adjusted DEFAULT_FORM_VALUES.RISK_LEVEL from 75 to 70
frontend/components/common/project/EditDialog.tsx Removed inline clamping, passed min, max, step, longPressDelay, and longPressSpeed props
frontend/components/common/project/CreateDialog.tsx Added disable/notification for INVITE distribution mode, updated risk input props and button text
frontend/components/common/auth/CallbackHandler.tsx Replaced BackgroundLines wrapper with a plain <div>
frontend/components/animate-ui/components/counter.tsx Implemented clamp, long-press logic, and new props (min, max, step, longPressDelay, longPressSpeed)
Comments suppressed due to low confidence (1)

frontend/components/common/project/CreateDialog.tsx:217

  • Add automated tests to verify that manual-invite mode is disabled, that the toast error appears, and the button text is updated to '开发中'.
    if (formData.distributionType === DistributionType.INVITE) {

@chenyme chenyme merged commit 25c7e38 into master Jul 2, 2025
8 checks passed
@OrenZhang OrenZhang deleted the chen branch July 2, 2025 11:28
tabloving pushed a commit to tabloving/cdk that referenced this pull request Jul 3, 2025
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.

3 participants