feat: add intention type validation #479
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #
Add intention type validation when upload intention
🤖 AI-Generated PR Description (Powered by Amazon Bedrock)
Description
This pull request includes modifications to various files related to the intention and library management functionality in the application. The changes aim to enhance the user experience and improve the overall workflow.
Key updates:
Intention Management: Improvements have been made to the intention creation and management process. The
intention.py
file in the Lambda function has been updated to handle new requirements and edge cases.Localization: The English (
en.json
) and Chinese (zh.json
) locale files have been updated to include new strings and translations for the enhanced functionality.User Interface: Several React components have been modified to reflect the changes in the intention and library management workflows. The
AddIntention.tsx
,AddLibrary.tsx
,Intention.tsx
, andIntentionDetail.tsx
files have been updated with new UI elements, improved styling, and better user interactions.Type Definitions: The
index.ts
file in thetypes
directory has been updated to include new type definitions required for the added functionality.Type of change
Motivation and Context
The primary motivation behind these changes is to enhance the user experience and streamline the process of managing intentions and libraries within the application. By improving the UI and workflow, users can more efficiently create, update, and interact with intentions and libraries, leading to increased productivity and user satisfaction.
Dependencies
There are no new dependencies introduced in this pull request. The changes are compatible with the existing project dependencies and infrastructure.
File Stats Summary
File number involved in this PR: 8, unfold to see the details:
The file changes summary is as follows:
| source/portal/src/pages/components/AddLibrary.tsx | 1 added, 1 removed | This code change updates the success message displayed after a file upload by modifying the translation key passed to the
alertMsg
function. || source/portal/src/pages/intention/Intention.tsx | 13 added, 19 removed | The code changes include: fixing a typo in accessing the 'items' property, modifying the renderStatus function to handle a ratio string and display appropriate status indicators based on the ratio, and removing the 'tag' column from the table configuration. |