-
Notifications
You must be signed in to change notification settings - Fork 25
Labels
enhancementNew feature or requestNew feature or request
Description
What do we need?
- When a user runs the
/notion create databasecommand from the Rocket.Chat message input field will open a modal having elements about what workspace the user is connected to, and the dropdown to search the page. A Title input field is the title of the database and the Choose Type dropdown to choose the notion database field type. - users can select the page and provide the database title and choose the type of first field they need in the database schema.
- Once the user selects the property type, We will update the modal to have the Field name of type
InputElementto name the field of the selected types including the Add Property button below the field name. - When the user will press the Button Add Property it can add more properties.
- When the user press Create button we will create the database within a subpage in the specified parent page, with the specified properties schema using the Create a Database Endpoint.
- we will show the message in the channel about the database that has been created with some info about change.
Acceptance Criteria
PR-1 #14
- register /notion create database command
- Have Helper Methods for UI under ElementBuilder and BlockBuilder for StaticSelectMenu, OverflowMenu, InputElement, DividerBlock
- Create Methods: createNotionDatabase and SearchPages Under NotionSdk
- Create Reusable methods SearchPageComponent, DropDownComponent, ButtonInSectionComponent, InputElementComponent.
- Create ModalInteraction Class which includes methods for Store/Clear/Get actionIds and Methods for Storing Pages during Interaction of modals.
- Have Add and Remove Property Block Interaction by storing and removing ActionsId mechanism.
PR-2 #15
- Created Dispatch Actions for Property Type Select, MultiSelect, Formula and Number
- Updates Modal as Per the Selection of Property Type and Has Additional Configuration Elements When Required.
- Handle Missing Properties With and Without Having Configuration [ViewErrors]
- Handle Duplicate Property Name with ViewErrors.
- Fix Return type of CreateNotionDatabase method under NotionSDK to have INotionDatabase as Return Type.
- Configured Notification of Creation of Database iin Channel to Have the Table as Attachments showing the Database created propertyName and PropertyType.
Relevant ScreenShots
Further Comments
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request
Type
Projects
Status
Done


