Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perf: Optimize the display of labels in strategy actions #4646

Merged

Conversation

fit2bot
Copy link
Contributor

@fit2bot fit2bot commented Feb 17, 2025

perf: Optimize the display of labels in strategy actions

@fit2bot fit2bot requested a review from a team February 17, 2025 07:49
}
return { label: label, value: item.id }
return { label: display, value: item.id }
}
},
multiple: false
Copy link
Member

Choose a reason for hiding this comment

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

The code you provided contains slight inconsistencies that might cause errors or unexpected behavior when testing on various environments or browsers. I recommend fixing these discrepancies to improve the overall quality of your application:

  1. The cleanFormValue function should properly update properties from local storage if it's used instead of re-rendering components.

  2. Make sure to import all necessary dependencies at the beginning of each file, such as @ngneat/formly.

  3. Add type definitions for reusable components like GlobalResourceTableComponent and GlobalProtocolTableComponent if needed.

  4. Consider using Vue CLI tools to help with development and maintainability.

To optimize further:
5. If the form validation is not being passed down correctly, consider moving the logic into another component to avoid unnecessary calls across components.
6. Implement proper input validation and data sanitization measures based on security practices.

Lastly, ensure that the globalProtocols, globalResource, resourceType, and their associated values comply with standard naming conventions and structure.

@BaiJiangJie BaiJiangJie merged commit eddff3d into dev Feb 18, 2025
6 checks passed
@BaiJiangJie BaiJiangJie deleted the pr@dev@perf_strategy_action_label_same_name_display branch February 18, 2025 02:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants