Commit dc84283
Hubspot app [INTEG-2766] (#10035)
* Hubspot: organizing structure and removing locations [INTEG-2802] (#9914)
* removing some locations and moving tests files
* adding cursor to gitignore
* Hubspot: Config screen base structure [INTEG-2769] (#9924)
* adding base config structure and basic tests
* changing ConfigScreen.spec.tsx
* pr comments corrections
* Add sidebar (#9932)
* Hubspot: adding app to content type through config screen [INTEG-2770] (#9929)
* wip
* adding content type through config screen first version
* making ContentTypeMultiSelect component and tests
* refactor in config screen organization
* refactor using multiselect component
* fix prettier format
* refactor in tests + removing app through config screen
* refactor and creation of tests
* adding autocomplete option in the multiselect component
* removing redundant test
* removing unnecessary useCallBack
* Add fields selection step (#9940)
* Hubspot: Create modules [INTEG-2776] (#9944)
* Add function to create modules
* Update apps/hubspot/test/functions/createModules.spec.ts
Co-authored-by: JuliRossi <[email protected]>
* Update apps/hubspot/test/functions/createModules.spec.ts
Co-authored-by: JuliRossi <[email protected]>
---------
Co-authored-by: JuliRossi <[email protected]>
* FieldSelection UI adjustments
* Update type import
* Hubspot: Config screen validations with a function [INTEG-2771] (#9945)
* first version of config screen validation function and tests
* correction of PR comments and refactor in config screen and validateHubspotToken function
* Hubspot: Add support for other field types [INTEG-2776] (#9948)
* Add support for more field types
* Fix tests warnings
* Add support for images + refactor
* Modules function refactor
* Remove casting
* Use find* instead of waitFor in tests
* Fix entry title
* Fix nummer displayed in the 'select all' checkbox
* Hubspot: Setup custom content type for configuration [INTEG-2784] (#9952)
* adding creation of config entry when installing the app
* refactor extract constant
* removing unused code
* changing description in createContentType from utils
* changing notifier error from config screen
* Hubspot: update copy [] (#9949)
* Copy updates
* Add gif to config screen
* Replace gif with video
* add warning so the user doesn't modify the config entry (#9954)
* Hubspot: adding config entry service [INTEG-2785] (#9953)
* adding a config entry service
* changing ConnectedField type
* lazy get for config entry service
* removing getDefaultLocale function since it is not used anymore
* PR comments
* Hubspot: Allow to change modules name [INTEG-2775] (#9956)
* Add second dialog step
* Add Dialog styles file
* Show results after module creation
* Show error for unsupported characters in modules
* Disable inputs when sending
* Hubspot: validations update [] (#9962)
* Move token validation from config screen to dialog
* Update config screen instructions and video
* Hubspot: add sync info to sidebar [INTEG-2773] (#9963)
* Show last synced time in sidebar
* Display error note in sidebar
* Update apps/hubspot/src/locations/Sidebar.tsx
Co-authored-by: Franco Banfi <[email protected]>
* Fix linter
---------
Co-authored-by: Franco Banfi <[email protected]>
* Hubspot: Trim whitespace from access token input on config screen (#9965)
* Hubspot: handle other events [INTEG-2786] (#9966)
* first version of app event handler function
* tests for appEventHandler.spec.ts
* adding test for ConfigEntryService file
* changing ConfigEntryService tests structure
* adding tests for ConfigEntryService and removing uninstall event
* removing old function from manifest
* PR corrections
* making default locale optional in ConfigEntryService
* Hubspot: Persist error in sidebar [] (#9967)
* Persist error in sidebar
* Refactor Dialog.showResults
* Hubspot: storage on module creation [INTEG-2785] (#9972)
* WIP save connected fields + config entry service refactor
* adding + fix in createModules.ts
---------
Co-authored-by: joaquin <[email protected]>
* Hubspot: Update modules on entry save [INTEG-2785] (#9975)
* first version of update on save event + some tests
* adding refactor to the appEventHandler tests
* rename from test
* Fix linter
* changin place of call and retry
* refactor: passing only the hubspot token to function
* early return if entry is not synced + new test
* fix test
---------
Co-authored-by: joaquin <[email protected]>
* Hubspot: Fix long text issue [INTEG-2907] (#9977)
* Hubspot: Enhance text field handling in module creation [INTEG-2785]
* Added support for long text fields in createModules.ts
* Introduced LONG_TEXT_MODULE_TEMPLATE in templates.ts
* Updated logic to format text field values as HTML paragraphs
* Hubspot: Update module templates for rich text handling
* Add tests
* fix rebase
* Hubspot: Refactor module creation by extracting createModuleFile and error classes
* Hubspot: Update appEventHandler test to use rich text field template for module creation
* Hubspot: Address QA comments [INTEG-2907] (#9978)
* Hubspot: Update configuration screen instructions for clarity
* Add tooltip to FieldCheckbox for unsupported syncing indication
* Remove audio from hubspot.mp4
* Remove isVisible prop from Tooltip in FieldCheckbox component
* Update title in ConfigEntryService to include warning against deletion
* Hubspot: page location table [INTEG-2780] (#9979)
* page location table
* adding styles
* removing property from mock in test
* refactors in styles and types
* modifying tests and page components
* fix localization issue (#9990)
* Hubspot: adding modal in page location [INTEG-2781] (#9989)
* wip adding test
* Fix tests
* wip adding types for the connected entry modal
* wip fixing tests
* Refactoring and polishing page
* Modal refactor
* Fix typos in messages and update test assertions for connected fields
* Refactor displayType function to use FieldItems type for better type safety
* refactor to fix warning
* changing modal header title and content to match the figma
* reducing the padding of the modal to match the figma
* refactor in the page empty and error cases
* adding test for empty and error table cases
---------
Co-authored-by: Juli Rossi <[email protected]>
* Hubspot: adding and displaying error in Page location [INTEG-2783] (#9997)
* adding error badges in Page table and modal
* removing warning oct component + styles changes
* move tooltip (#9993)
* Hubspot disconnect - [INTEG-2782] (#10000)
* Disconnect functionality
* remove unused import
* re-adding tests
* Removing unused parameter
* Fix rebase
* Prettier
* Hubspot: Avoid duplicated module creation [INTEG-2935] (#10013)
* Enhance FieldSelection component to include connected field IDs and update tooltip behavior. Fetch connected fields in Dialog component and pass them to FieldSelection. Update tests to verify checkbox states for connected fields.
* remove parameter
* Hubspot: fixing update method in createModule function [INTEG-2941] (#9996)
* fixing update method in config entry service
* changing createModules function to send all the fields to the update
* adding test for updateConnectedFields
* Update connected fields handling in Page component and enhance test descriptions (#10014)
* Hubspot: changing displaying field and content type id for name [INTEG-2971] (#10015)
* changing page table to display content type name
* changing page modal to display field name instead of id
* inlining content type name in page table
* formating prettier
* Hubspot getting started - [INTEG-2927] (#10016)
* Add getting started images and enhance ConfigScreen layout
* Enhance ConfigScreen by adding alt text for images in GettingStartedStep component
* Add test for Getting Started section in ConfigScreen with image alt text checks
* Fixes per comments
* Add periods (#10028)
* Delete custom content type when uninstalling the app (#10030)
* Hubspot add events scripts [INTEG-2970] (#10031)
* Update dependencies and add event subscription script for Hubspot integration
* Testing first approach
* Remove dotenv/config from setupFiles in vitest configuration
* Refactor tests for createAppEventSubscription to improve type safety and error handling
* Hubspot: no duplicated names in module selection [INTEG-2967] (#10029)
* adding error handling for duplicated names
* prettier
* Refactor FieldModuleNameMapping to improve validation handling and error management
* removing useEffect
* refactor removing useEffect
---------
Co-authored-by: Juli Rossi <[email protected]>
* Add error message for empty module name
---------
Co-authored-by: Franco Banfi <[email protected]>
Co-authored-by: JuliRossi <[email protected]>1 parent 8de8598 commit dc84283
File tree
66 files changed
+6788
-351
lines changed- apps/hubspot
- functions
- src
- assets
- components
- locations
- scripts
- utils
- test
- components
- functions
- locations
- mocks
- scripts
- utils
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
66 files changed
+6788
-351
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
0 commit comments