Skip to content

Commit

Permalink
feat: initiative/project description fields are rich text (#1355)
Browse files Browse the repository at this point in the history
* feat: initiative/project description fields are rich text

* feat: fix tests
  • Loading branch information
benstoltz authored Dec 8, 2023
1 parent a273b5f commit 02bb6bf
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,13 @@ export const buildUiSchema = async (
scope: "/properties/description",
type: "Control",
options: {
control: "hub-field-input-input",
control: "hub-field-input-rich-text",
type: "textarea",
helperText: {
labelKey: `${i18nScope}.fields.description.helperText`,
},
toolbar:
"heading,|,bold,italic,blockQuote,removeFormat,link,|,bulletedList,numberedList,alignment,outdent,indent,|,undo,redo",
},
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,13 @@ export const buildUiSchema = async (
scope: "/properties/description",
type: "Control",
options: {
control: "hub-field-input-input",
control: "hub-field-input-rich-text",
type: "textarea",
helperText: {
labelKey: `${i18nScope}.fields.description.helperText`,
},
toolbar:
"heading,|,bold,italic,blockQuote,removeFormat,link,|,bulletedList,numberedList,alignment,outdent,indent,|,undo,redo",
},
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,13 @@ describe("buildUiSchema: initiative edit", () => {
scope: "/properties/description",
type: "Control",
options: {
control: "hub-field-input-input",
control: "hub-field-input-rich-text",
type: "textarea",
helperText: {
labelKey: "some.scope.fields.description.helperText",
},
toolbar:
"heading,|,bold,italic,blockQuote,removeFormat,link,|,bulletedList,numberedList,alignment,outdent,indent,|,undo,redo",
},
},
{
Expand Down Expand Up @@ -378,11 +380,13 @@ describe("buildUiSchema: initiative edit", () => {
scope: "/properties/description",
type: "Control",
options: {
control: "hub-field-input-input",
control: "hub-field-input-rich-text",
type: "textarea",
helperText: {
labelKey: "some.scope.fields.description.helperText",
},
toolbar:
"heading,|,bold,italic,blockQuote,removeFormat,link,|,bulletedList,numberedList,alignment,outdent,indent,|,undo,redo",
},
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,13 @@ describe("buildUiSchema: project edit", () => {
scope: "/properties/description",
type: "Control",
options: {
control: "hub-field-input-input",
control: "hub-field-input-rich-text",
type: "textarea",
helperText: {
labelKey: "some.scope.fields.description.helperText",
},
toolbar:
"heading,|,bold,italic,blockQuote,removeFormat,link,|,bulletedList,numberedList,alignment,outdent,indent,|,undo,redo",
},
},
{
Expand Down Expand Up @@ -363,11 +365,13 @@ describe("buildUiSchema: project edit", () => {
scope: "/properties/description",
type: "Control",
options: {
control: "hub-field-input-input",
control: "hub-field-input-rich-text",
type: "textarea",
helperText: {
labelKey: "some.scope.fields.description.helperText",
},
toolbar:
"heading,|,bold,italic,blockQuote,removeFormat,link,|,bulletedList,numberedList,alignment,outdent,indent,|,undo,redo",
},
},
{
Expand Down

0 comments on commit 02bb6bf

Please sign in to comment.