Fix/catalog source error messages#2526
Conversation
|
Please change the screenshots accordingly |
|
@yih-wang can you have a look at the error message screenshots ? |
|
The screenshots look good. I don't see the screenshots for preview errors if that's what you referred to though... @manaswinidas |
|
For the validation status column, the success term should be |
6f0aa5d to
cd82124
Compare
cd82124 to
4911599
Compare
4911599 to
ccd187a
Compare
Signed-off-by: Philip Colares Carneiro <philip.colares@gmail.com>
Signed-off-by: Philip Colares Carneiro <philip.colares@gmail.com>
Signed-off-by: Philip Colares Carneiro <philip.colares@gmail.com>
Signed-off-by: Philip Colares Carneiro <philip.colares@gmail.com>
Signed-off-by: Philip Colares Carneiro <philip.colares@gmail.com>
Signed-off-by: Philip Colares Carneiro <philip.colares@gmail.com>
Signed-off-by: Philip Colares Carneiro <philip.colares@gmail.com>
Signed-off-by: Philip Colares Carneiro <philip.colares@gmail.com>
ccd187a to
35b478b
Compare
manaswinidas
left a comment
There was a problem hiding this comment.
I don't see this "Source configuration changed. Refresh the preview. [Refresh preview]"
manaswinidas
left a comment
There was a problem hiding this comment.
/lgtm
/approve
nvm - others already exist
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: manaswinidas The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
* fix pf5 to pf6 Signed-off-by: Philip Colares Carneiro <philip.colares@gmail.com> * start to change the texts Signed-off-by: Philip Colares Carneiro <philip.colares@gmail.com> * change text and add them to constants Signed-off-by: Philip Colares Carneiro <philip.colares@gmail.com> * fix constants text Signed-off-by: Philip Colares Carneiro <philip.colares@gmail.com> * fix helper text prosition Signed-off-by: Philip Colares Carneiro <philip.colares@gmail.com> * add fixes requested Signed-off-by: Philip Colares Carneiro <philip.colares@gmail.com> * fix layout issue Signed-off-by: Philip Colares Carneiro <philip.colares@gmail.com> * fix changes requested Signed-off-by: Philip Colares Carneiro <philip.colares@gmail.com> --------- Signed-off-by: Philip Colares Carneiro <philip.colares@gmail.com>
Description
This PR improve the labels/text and show the error message from backend when the backend handle the error from YAML
Part 1: Error Handling Improvements
FileReader.onErrorhandler inYamlSectionthat displays an inline danger alert with the message: "File upload failed — The YAML file couldn't be uploaded. Check its syntax and structure, then try again."constants.tsx(ERROR_MESSAGES,SUCCESS_MESSAGES).Part 2: Microcopy Updates
Page header:
Table column names:
Column popovers:
meta-llama→GoogleForm fields:
Googlemeta-llama→GoogleThemeAwareFormGroupWrapperwith separate description and helper text nodesExample: Llama*, Llama-3.1-8B-InstructEmpty states:
Part 3: Component Refactoring
FormGroup+FormFieldsetwithThemeAwareFormGroupWrapperin:CredentialsSection,ModelVisibilitySection,ManageSourceForm(enable-source checkbox)pf-v5-*CSS classes topf-v6-*inCredentialsSectionDESCRIPTIONSandHELP_TEXTintoDESCRIPTION_TEXTandHELPER_TEXTALLOWED_MODELS_HF/ALLOWED_MODELS_GENERIC→ALLOWED_MODELS)constants.tsx:ERROR_MESSAGES,SUCCESS_MESSAGES,TABLE_COLUMN_LABELS,TABLE_COLUMN_POPOVERS,EMPTY_STATE_TEXTCatalogSourceConfigsTableColumns.tsxnow references constants instead of inline stringsCatalogSourceStatusErrorModal.tsxusesERROR_MESSAGESconstantsScreen Shots
Before:
After:
Files Changed (13)
constants.tsxCredentialsSection.tsxManageSourceForm.tsxManageSourceFormFooter.tsxModelVisibilitySection.tsxPreviewPanel.tsxYamlSection.tsxCatalogSourceStatusErrorModal.tsxCatalogSourceConfigsTableColumns.tsxmodelCatalogSettings.ts(route)modelCatalogSettings.ts(Cypress page)modelCatalogSettings.cy.ts(Cypress test)PreviewPanel.spec.tsxHow Has This Been Tested?
handleRestFailures→ component state → UI renderingMerge criteria:
All the commits have been signed-off (To pass the
DCOcheck)The commits have meaningful messages
Automated tests are provided as part of the PR for major new functionalities; testing instructions have been added in the PR body (for PRs involving changes that are not immediately obvious).
The developer has manually tested the changes and verified that the changes work.
Code changes follow the kubeflow contribution guidelines.
For first time contributors: Please reach out to the Reviewers to ensure all tests are being run, ensuring the label
ok-to-testhas been added to the PR.If you have UI changes