Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
63 changes: 43 additions & 20 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"@eslint/eslintrc": "^3.3.5",
"@eslint/js": "^10.0.1",

"@meshery/schemas": "1.2.9",
"@meshery/schemas": "1.2.11",
"@mui/icons-material": "^9.0.0",
"@mui/material": "^9.0.0",
"@mui/system": "^9.0.0",
Expand Down
41 changes: 6 additions & 35 deletions src/schemas/helpAndSupportModal/schema.tsx
Original file line number Diff line number Diff line change
@@ -1,38 +1,9 @@
/**
* Represents the JSON Schema for the Help and Support modal form.
* This schema is designed to capture information for support request.
* Re-exports the canonical RJSF form schema for the help-and-support modal
* from @meshery/schemas. This is the authoritative source validated against
* the v1beta1 SupportRequest OpenAPI construct.
*
* Playground link -
* @see meshery/schemas#866 — migration from hand-authored to canonical
* @see meshery/schemas schemas/constructs/v1beta1/support/forms/helpAndSupport.json
*/
const helpAndSupportModalSchema = {
title: 'Support Form',
properties: {
subject: {
type: 'string',
title: 'Subject',
description:
'Enter a concise and descriptive title for your support request. This will help us quickly understand the nature of your inquiry.',
minLength: 1,
'x-rjsf-grid-area': '12'
},
message: {
type: 'string',
title: 'Description',
description:
'Please provide a detailed description of your issue or question. Include any relevant information that you think will help us assist you more effectively. The more details you provide, the better we can understand and address your concerns.',
minLength: 10,
format: 'textarea',
'x-rjsf-grid-area': '12'
},
scope: {
type: 'string',
enum: ['Support', 'Community', 'Account', 'Commercial'],
title: 'Scope of Questions',
description: 'Select the category that best represents the nature of your inquiry.',
default: 'Technical'
}
},
required: ['subject', 'message']
};

export default helpAndSupportModalSchema;
export { SupportRequestRjsfSchemaV1Beta1 as default } from '@meshery/schemas';
19 changes: 5 additions & 14 deletions src/schemas/helpAndSupportModal/uiSchema.tsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,7 @@
/**
* Represents UI schema for help and support modal
* Re-exports the canonical RJSF UI schema for the help-and-support modal
* from @meshery/schemas.
*
* @see meshery/schemas#866
*/
const helpAndSupportModalUiSchema = {
subject: {
'ui:placeholder': 'Summary or title for your support request'
},
message: {
'ui:placeholder': 'Detailed description of your support request'
},
scope: {
'ui:widget': 'radio'
}
};

export default helpAndSupportModalUiSchema;
export { SupportRequestRjsfUiSchemaV1Beta1 as default } from '@meshery/schemas';
Loading