Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge DataMapper #1700

Merged
merged 514 commits into from
Dec 9, 2024
Merged
Show file tree
Hide file tree
Changes from 250 commits
Commits
Show all changes
514 commits
Select commit Hold shift + click to select a range
95a69e5
chore(deps): update dependency rimraf to v5.0.9
renovate[bot] Jul 9, 2024
7de92e1
chore(deps): update dependency typescript to v5.5.3
renovate[bot] Jul 9, 2024
872aca1
chore(deps): update dependency vite to v5.3.3
renovate[bot] Jul 9, 2024
08a612f
checkpoint: Add import mappings menu (#121)
igarashitm Jun 28, 2024
c13bb60
fix(deps): update @patternfly to v5.3.4
renovate[bot] Jul 9, 2024
d25cba0
fix
igarashitm Jul 9, 2024
9465922
fix(deps): update dependency xml-formatter to v3.6.3
renovate[bot] Jul 9, 2024
016219a
chore(deps): update @lerna-lite to v3.7.0
renovate[bot] Jul 9, 2024
2df7ff3
chore(deps): update dependency sass to v1.77.7
renovate[bot] Jul 10, 2024
a733b12
chore(deps): update dependency rimraf to v6
renovate[bot] Jul 10, 2024
302224f
chore(deps): update dependency rimraf to v6.0.1
renovate[bot] Jul 11, 2024
322ffa1
chore(deps): update dependency @storybook/addon-actions to v8.2.2
renovate[bot] Jul 12, 2024
cf7c8f1
chore(deps): update babel monorepo to v7.24.8
renovate[bot] Jul 12, 2024
b8a122b
chore(deps): update dependency sass to v1.77.8
renovate[bot] Jul 12, 2024
09b6dd8
chore(deps): update dependency stylelint to v16.7.0
renovate[bot] Jul 13, 2024
a580941
chore(deps): update @lerna-lite to v3.7.1
renovate[bot] Jul 13, 2024
58e9ee9
chore(deps): update dependency prettier to v3.3.3
renovate[bot] Jul 14, 2024
941a96a
chore(deps): update dependency stylelint-prettier to v5.0.1
renovate[bot] Jul 14, 2024
4666bf7
chore(deps): update eslint
renovate[bot] Jul 15, 2024
4292aa3
chore(deps): update dependency @babel/core to v7.24.9
renovate[bot] Jul 16, 2024
06fce21
chore(deps): update dependency @storybook/addon-actions to v8.2.4
renovate[bot] Jul 16, 2024
89f3b14
chore(deps): update dependency @types/node to v20.14.11
renovate[bot] Jul 17, 2024
091a95c
chore(deps): update dependency vite to v5.3.4
renovate[bot] Jul 17, 2024
f65ff8a
chore(deps): update dependency stylelint-prettier to v5.0.2
renovate[bot] Jul 18, 2024
915e1b4
chore(deps): update dependency eslint-plugin-prettier to v5.2.1
renovate[bot] Jul 18, 2024
fd5ced3
feat: Export/Import mappings
igarashitm Jul 16, 2024
f8b23a4
chore(deps): update dependency husky to v9.1.1
renovate[bot] Jul 18, 2024
09e72b7
chore(deps): update dependency @storybook/addon-actions to v8.2.5
renovate[bot] Jul 20, 2024
874fc9c
fix: Preserve field order
igarashitm Jul 20, 2024
dd2fbe3
chore(deps): update dependency eslint-plugin-react-refresh to v0.4.9
renovate[bot] Jul 22, 2024
81f35c3
chore(deps): update dependency typescript to v5.5.4
renovate[bot] Jul 23, 2024
bc296a7
chore(deps): update dependency @types/node to v20.14.12
renovate[bot] Jul 24, 2024
742454f
chore(deps): update eslint to v7.17.0
renovate[bot] Jul 24, 2024
fb7946a
chore(deps): update dependency @testing-library/jest-dom to v6.4.8
renovate[bot] Jul 24, 2024
22f577b
chore(deps): update dependency @storybook/addon-actions to v8.2.6
renovate[bot] Jul 25, 2024
52d50ce
chore(deps): update dependency husky to v9.1.3
renovate[bot] Jul 26, 2024
26711a6
chore(deps): update dependency vite to v5.3.5
renovate[bot] Jul 26, 2024
13ff985
chore(deps): update dependency @babel/preset-env to v7.25.0
renovate[bot] Jul 27, 2024
44b6586
chore(deps): update dependency @types/node to v20.14.13
renovate[bot] Jul 29, 2024
b9f6b2b
fix(deps): update dependency use-debounce to v10.0.2
renovate[bot] Jul 29, 2024
b0c2656
fix: Wrap with "choose-when-otherwise" is broken
igarashitm Jul 30, 2024
d8dbac0
chore(deps): update dependency husky to v9.1.4
renovate[bot] Jul 30, 2024
630423b
chore(deps): update dependency stylelint to v16.8.0
renovate[bot] Jul 30, 2024
6e8e499
chore(deps): update babel monorepo to v7.25.2
renovate[bot] Jul 30, 2024
0ccfc73
chore(deps): update eslint to v7.18.0
renovate[bot] Jul 30, 2024
d2f95fc
chore(deps): update dependency stylelint to v16.8.1
renovate[bot] Jul 31, 2024
174e3f7
fix: Collect namespaces
igarashitm Jul 22, 2024
6669485
feat: Create an embedding I/O interface component
igarashitm Jul 31, 2024
60c6c6f
chore(deps): update dependency @babel/preset-env to v7.25.3
renovate[bot] Aug 1, 2024
b1afd24
fix: Mapping line is not drawn
igarashitm Aug 1, 2024
8a08a75
fix: Mapping lines missing inside for-each wrapping
igarashitm Aug 1, 2024
11dda7d
chore(deps): update dependency @storybook/addon-actions to v8.2.7
renovate[bot] Aug 2, 2024
17b065e
chore(deps): update dependency @types/node to v20.14.14
renovate[bot] Aug 3, 2024
3880def
chore(deps): update dependency lint-staged to v15.2.8
renovate[bot] Aug 4, 2024
ce10254
chore(deps): update yarn to v3.8.4
renovate[bot] Aug 6, 2024
ce0dc83
chore(deps): update @lerna-lite to v3.8.0
renovate[bot] Aug 8, 2024
aa2bf3e
chore(deps): update dependency @storybook/addon-actions to v8.2.8
renovate[bot] Aug 8, 2024
8f0d475
chore(deps): update dependency vite to v5.4.0
renovate[bot] Aug 8, 2024
b9f46e3
chore(deps): update dependency madge to v8
renovate[bot] Aug 8, 2024
d514f59
chore(deps): update dependency @types/node to v20.14.15
renovate[bot] Aug 10, 2024
477b8ba
chore(deps): update dependency @storybook/addon-actions to v8.2.9
renovate[bot] Aug 14, 2024
f381c32
chore(deps): update dependency lint-staged to v15.2.9
renovate[bot] Aug 14, 2024
3ea5b72
chore(deps): update dependency vite to v5.4.1
renovate[bot] Aug 16, 2024
dbe3ce7
fix close modal using the close (x) button
tplevko Aug 16, 2024
86a7fb2
chore(deps): update dependency @types/node to v20.16.1
renovate[bot] Aug 19, 2024
d869183
fix(deps): update dependency use-debounce to v10.0.3
renovate[bot] Aug 18, 2024
62acd3b
chore(deps): update dependency stylelint to v16.8.2
renovate[bot] Aug 20, 2024
ab5b16c
fix: Add unit tests for MappingService (#348)
igarashitm Aug 14, 2024
3d609be
fix: Add unit tests for VisualizationService (#348)
igarashitm Aug 15, 2024
2abdb20
fix: Add unit tests for XmlSchemaDocumentService (#348)
igarashitm Aug 19, 2024
b5283ea
fix: Add unit tests for context providers (#348)
igarashitm Aug 19, 2024
15543a3
chore: chore (#348)
igarashitm Aug 19, 2024
f27f4ef
chore: remove warnings
igarashitm Aug 20, 2024
87f9b71
chore(deps): update dependency @types/react to v18.3.4
renovate[bot] Aug 21, 2024
030c9f1
chore(deps): update dependency eslint-plugin-react-refresh to v0.4.10
renovate[bot] Aug 21, 2024
ab5be97
fix: Remove react-sage
igarashitm Aug 21, 2024
71db15f
fix: Add unit tests for components (#348)
igarashitm Aug 21, 2024
24948eb
chore(deps): update dependency husky to v9.1.5
renovate[bot] Aug 22, 2024
24ab1d7
chore(deps): update dependency @babel/preset-env to v7.25.4
renovate[bot] Aug 23, 2024
57128df
chore(deps): update dependency eslint-plugin-react-refresh to v0.4.11
renovate[bot] Aug 23, 2024
4997bd0
chore(deps): update dependency @testing-library/jest-dom to v6.5.0
renovate[bot] Aug 24, 2024
06d6e8d
fix(deps): update dependency monaco-editor to ^0.51.0
renovate[bot] Aug 24, 2024
bd8e32d
chore(deps): update yarn to v3.8.5
renovate[bot] Aug 25, 2024
e22be51
fix: Add isEmbedded=true to DataMapper.tsx
igarashitm Aug 26, 2024
25241e8
Imported data-mapper as a subtree
lordrip Aug 28, 2024
c93a58a
Add @kaoto/xml-schema-ts package
lordrip Aug 28, 2024
40858ed
temp(build): Increase heap size
lordrip Aug 28, 2024
b83eeea
Merge pull request #4 from igarashitm/chore/add-datamapper
lordrip Aug 28, 2024
5456c28
feat(Canvas): Serialize Step EIP
lordrip Aug 20, 2024
68b2842
chore(canvas): Add Datamapper icon
lordrip Aug 29, 2024
4cbabb9
Merge remote-tracking branch 'upstream/main' into main
lordrip Aug 29, 2024
f1004b8
Merge remote-tracking branch 'upstream/main' into main
lordrip Aug 29, 2024
acf8cff
Merge remote-tracking branch 'upstream/main' into main
lordrip Aug 30, 2024
73e0ed6
feat(App): Register components for a given anchor
lordrip Aug 30, 2024
80d47a2
feat(Datamapper): Register Datamapper dummy component
lordrip Sep 2, 2024
1875562
feat(Datamapper): Bring Datamapper component
lordrip Sep 2, 2024
52c4ffd
feat: Allow importing documents on initialization
igarashitm Aug 30, 2024
0c9eeff
fix(DataMapper): Merge datamapper files into kaoto directory structure
igarashitm Sep 4, 2024
8905681
Merging https://github.com/KaotoIO/kaoto main branch at 2024/09/05 9:…
igarashitm Sep 5, 2024
e090091
Merge pull request #14 from igarashitm/202409050921
igarashitm Sep 5, 2024
50703e8
fix: Warning: An update to DataMapperProvider inside a test was not w…
igarashitm Sep 5, 2024
8ebd200
fix(DataMapper): Mapping lines shifted to lower right
igarashitm Sep 9, 2024
8fba21a
fix(DataMapper): The edge of the mapping lines are hidden behind the box
igarashitm Sep 9, 2024
f53bbb2
Merge remote-tracking branch 'upstream/main' into chore/bring-main
lordrip Sep 10, 2024
7b5194c
Merge pull request #20 from igarashitm/chore/bring-main
lordrip Sep 10, 2024
7979d10
fix: Lint errors in xml-schema-ts
igarashitm Sep 10, 2024
ba36696
chore: Add missing Provider
lordrip Sep 4, 2024
aa7dd73
feat(VSCode): Provide filePreferences API
lordrip Sep 12, 2024
460ad36
feat(DataMapper): Support drag and drop in XPath editor
igarashitm Sep 10, 2024
384ec4c
fix(DataMapper): Field DnD unexpectedly occurs when selecting a text …
igarashitm Sep 13, 2024
09fa08c
chore(deps): Add missing eslint dependency
lordrip Sep 10, 2024
60aea82
fix(1422) Config panel buttons overlay - add toggleGroup wrapping
tplevko Sep 11, 2024
4e2a531
refactor(Visualization): Adding round edges for the custom groups and…
mmelko Sep 10, 2024
0eb90ff
refactor(Viz-Sidebar): Change panels style to flat and add rounded ed…
mmelko Sep 10, 2024
99c9356
fix(CatalogGenerator): Ignore 'enum' property for multiValue param
lordrip Sep 13, 2024
b7c0a4d
fix(DataMapper): Container field open/close doesn't refresh lines
igarashitm Sep 16, 2024
b0cef4b
Merge remote-tracking branch 'upstream/main' into chore/update-main
lordrip Sep 17, 2024
0216cc1
fix(ChannelAPI): Update usage of the Metadata API
lordrip Sep 17, 2024
deabf47
Merge pull request #58 from KaotoIO/chore/update-main
igarashitm Sep 17, 2024
90ca7d9
fix(DataMapper): XPath Editor: Fix unexpected modal resize and scrollbar
igarashitm Sep 17, 2024
c464bf0
fix(Datamapper): Load Kaoto Datamapper in VSCode
lordrip Sep 18, 2024
c2fae18
TEMP: Add test buttons for Datamapper API integration
lordrip Sep 18, 2024
4c8d472
fix: Wire Kaoto Metadata API
igarashitm Sep 18, 2024
79d72ab
Merge remote-tracking branch 'upstream/main' into chore/update-main-b…
lordrip Sep 24, 2024
116eea5
Merge pull request #71 from KaotoIO/chore/update-main-branch
igarashitm Sep 24, 2024
c9a439e
fix(DataMapper): Build&Test error
igarashitm Sep 24, 2024
32cc717
fix(DataMapper): Expand `Parameters` by default
igarashitm Sep 24, 2024
4efffb3
fix(DataMapper): Expression Editor: Do not wrap parameter name
igarashitm Sep 24, 2024
dc3657a
feat(Datamapper): Add Datamapper to the catalog
lordrip Sep 17, 2024
4a3259a
Fix opening datamapper with no config yet
apupier Sep 30, 2024
e0fe823
fix(DataMapper): XSLT file path is not reflected to YAML route
igarashitm Sep 30, 2024
622dbdc
fix(DataMapper): For standalone, show an alert to use VS Code extensi…
igarashitm Sep 30, 2024
7a9cd93
fix(DataMapper): Replace file picker with VSCode one
igarashitm Sep 26, 2024
34f70c8
chore(DataMapper): Clean up DataMapper debugger related code
igarashitm Sep 30, 2024
f86fe1c
chore(DataMapper): Remove unused import
igarashitm Oct 1, 2024
5a56aed
fix(DataMapper): Add/Delete parameter doesn't properly reflect
igarashitm Oct 1, 2024
226d88c
Merge remote-tracking branch 'kaoto-main/main' into merge-upstream-20…
igarashitm Oct 3, 2024
b1c353e
Merge pull request #96 from igarashitm/merge-upstream-202410030930EST
igarashitm Oct 3, 2024
430f011
chore(DataMapper): Add a comment in generated XSLT stating "this is a…
igarashitm Oct 7, 2024
d2e39c4
fix(DataMapper): Delete DataMapper metadata entry when the step is de…
igarashitm Oct 2, 2024
33d302b
fix(DataMapper): Extract onDeleteRecursively method to a shared exter…
igarashitm Oct 8, 2024
01792f7
Merge remote-tracking branch 'kaoto-main/main' into 202410090917EST
igarashitm Oct 9, 2024
9365cea
Merge pull request #101 from igarashitm/202410090917EST
igarashitm Oct 9, 2024
c158456
chore(DataMapper): Fix build error
igarashitm Oct 11, 2024
af6b55c
fix(DataMapper): Prevent from modifying source parameters and body wh…
igarashitm Oct 11, 2024
58a1656
Merge remote-tracking branch 'kaoto-main/main' into 202410141051EST
igarashitm Oct 14, 2024
6fac494
chore(DataMapper): adjust
igarashitm Oct 14, 2024
c97b5f0
Merge pull request #105 from igarashitm/202410141051EST
igarashitm Oct 14, 2024
7f20716
fix(DataMapper): Show a confirmation dialog when DataMapper step is t…
igarashitm Oct 9, 2024
7c17519
chore(DataMapper): fix test error
igarashitm Oct 14, 2024
bb10aef
fix(DataMapper): Show an error message if the attached document schem…
igarashitm Oct 14, 2024
9291839
fix(DataMapper): Close contextual menu for three dots on target when …
igarashitm Oct 15, 2024
95ea9f8
Merge remote-tracking branch 'upstream/main' into chore/merge-upstream
lordrip Oct 15, 2024
2ad5ff6
Merge pull request #110 from KaotoIO/chore/merge-upstream
igarashitm Oct 15, 2024
6d6e8f6
fix(DataMapper): Refresh mapping lines when XPath Editor is closed
igarashitm Oct 15, 2024
3cf9d28
feat(DataMapper): Use navigation to go to DataMapper
lordrip Oct 15, 2024
4f9e3a9
chore: Remove toolbar buttons used for manual test during development
apupier Oct 15, 2024
022a66f
chore(DataMapper): fix build
igarashitm Oct 15, 2024
7df7175
fix(DataMapper): CSS adjustments: saving some horizontal space and av…
igarashitm Oct 15, 2024
9df5cd1
fix(DataMapper): The element shown as a primitive if schema extension…
igarashitm Oct 21, 2024
857fe3e
feat: Deactivate minimap for Xpath textual editor
apupier Oct 22, 2024
a92e784
fix(DataMapper): undefined check
igarashitm Oct 22, 2024
497d051
fix(DataMapper): Pull up DOMParser error message up to the notification
igarashitm Oct 22, 2024
010187b
chore(DataMapper): fix incomplete test for https://github.com/KaotoIO…
igarashitm Oct 22, 2024
2303ef9
fix(DataMapper): Resize XPath editor along with the parent modal
igarashitm Oct 22, 2024
1934eb8
fix(DataMapper): XPath functions are not working at runtime
igarashitm Oct 23, 2024
b387688
fix(DataMapper): Indicate there's a syntax error in xpath
igarashitm Oct 23, 2024
6bdca1d
chore(DataMapper): add aria-label to the XPathEditorModal to avoid co…
igarashitm Oct 24, 2024
7bc930e
fix(DataMapper): fix DataMapper internal XPath parsing error on paren…
igarashitm Oct 24, 2024
9974bfb
fix(DataMapper): Mapping from/to the structured Document itself shoul…
igarashitm Oct 24, 2024
2a241b3
fix(DataMapper): Validate Parameter name
igarashitm Oct 25, 2024
8cc7c24
chore(DataMapper): Add more test XML schema
igarashitm Oct 25, 2024
cbaa208
Merge remote-tracking branch 'kaoto-main/main' into 202410250841EST
igarashitm Oct 25, 2024
58d039d
Merge pull request #151 from igarashitm/202410250841EST
igarashitm Oct 25, 2024
7df458b
fix(DataMapper): Sort XSLT mapping elements
igarashitm Oct 25, 2024
e0f5ce1
fix(DataMapper): Do not show an error for an empty xpath expression
igarashitm Oct 25, 2024
3ce6a28
fix(DataMapper): Restrict conditional mapping actions
igarashitm Oct 25, 2024
285142f
fix(DataMapper): Fix a crack in the xpath parser error safe guard
igarashitm Oct 25, 2024
6121ee3
fix(DataMapper): namespace prefix is missing for attribute mapping
igarashitm Oct 28, 2024
756706e
chore(DataMapper): follow up https://github.com/KaotoIO/kaoto-datamap…
igarashitm Oct 28, 2024
27e8136
fix(DataMapper): Fix XPath Parser to tokenize the word starting with …
igarashitm Oct 28, 2024
3a59225
fix(DataMapper): XPath with string literal causes an error for mappin…
igarashitm Oct 29, 2024
391203c
fix(DataMapper): Expand everything if Document is small enough
igarashitm Oct 29, 2024
3ca88be
fix(DataMapper): Renaming the Kaoto data mapper id in the UI is break…
igarashitm Oct 30, 2024
becca7a
chore(DataMapper): Tweak in the catalog text
igarashitm Oct 30, 2024
480af37
fix(DataMapper): Do not save schema file
igarashitm Nov 12, 2024
532e4ad
feat(DataMapper): Use Browser tooltips
lordrip Nov 13, 2024
9718c29
fix(DataMapper): Expand XPath field to use the available space
lordrip Nov 13, 2024
4718773
fix(DataMapper): Move Context menu
lordrip Nov 13, 2024
e6e18d6
fix(DataMapper): Use Pointer cursor for nodes
lordrip Nov 13, 2024
87928f5
fix(DataMapper): Garbage left after invalid for-each mapping
igarashitm Nov 13, 2024
ff3f377
fix(DataMapper): Provide DnD hint to XPath editor
lordrip Nov 14, 2024
f79d748
chore(DataMapper): Remove declared but unused ones
igarashitm Nov 14, 2024
160cafa
chore(DataMapper): fix lint error
igarashitm Nov 14, 2024
301cc58
feat: update embedded catalog from 4.8.0 to 4.8.1
apupier Oct 28, 2024
14c1bd1
chore(links): Add Camel and Hawtio links
lordrip Nov 5, 2024
0a1176c
chore(deps): update dependency org.junit.jupiter:junit-jupiter to v5.…
renovate[bot] Nov 5, 2024
7ba6f70
chore(deps): update dependency org.apache.maven.plugins:maven-surefir…
renovate[bot] Nov 5, 2024
e1377b5
feat(DataMapper): Show missing config in Launcher
lordrip Nov 14, 2024
ea4814e
chore(DataMapper): cleanup
igarashitm Nov 14, 2024
1b32663
fix(DataMapper): Cannot edit or delete mapping if target body is prim…
igarashitm Nov 14, 2024
b2b6b7f
fix(DataMapper): Show a warning when an expression is empty for the c…
igarashitm Nov 15, 2024
c3f6b54
fix(DataMapper): Primitive source body mapping doesn't draw a line
igarashitm Nov 15, 2024
37f04ae
fix(DataMapper): fix build error and test
igarashitm Nov 15, 2024
a76fe76
Merge remote-tracking branch 'kaoto-main/main' into 202411151151EST
igarashitm Nov 15, 2024
b1b7666
Merge pull request #215 from igarashitm/202411151151EST
igarashitm Nov 15, 2024
15e6b8b
feat(DataMapper): Provide a DataMapper tab
lordrip Nov 13, 2024
004acac
chore(DataMapper): Update instructions and add "not configurable in t…
igarashitm Nov 15, 2024
81e0780
fix(DataMapper): Move images to the assets folder
lordrip Nov 18, 2024
9b8cc40
fix(DataMapper): Avoid same navigation
lordrip Nov 18, 2024
fb5c3c7
chore(DataMapper): Update step image in the instruction
igarashitm Nov 18, 2024
dbd836a
fix(DataMapper): `Delete both step and file` doesn't delete XSLT file
igarashitm Nov 18, 2024
35e60d3
fix(DataMapper): Wrong mapping after reattaching same schema when the…
igarashitm Nov 19, 2024
cab1b12
Merge remote-tracking branch 'upstream/main' into chore/merge-upstream
lordrip Nov 20, 2024
fdbea02
Merge pull request #229 from KaotoIO/chore/merge-upstream
lordrip Nov 20, 2024
129832b
fix: Provide id for text input of the xslt document path of data mapper
apupier Nov 20, 2024
3375b2a
fix(DataMapper): choose-when-otherwise targeted field doesn't properl…
igarashitm Nov 21, 2024
aa37e88
fix(DataMapper): Use curved line for mapping link
igarashitm Nov 22, 2024
3d7ab39
Merge remote-tracking branch 'kaoto-main/main' into 202411251055EST
igarashitm Nov 25, 2024
6d33256
Merge pull request #237 from igarashitm/202411251055EST
igarashitm Nov 25, 2024
dd9f0da
Update README.md
lhein Nov 26, 2024
d8e252b
fix(DataMapper): Cannot resolve metadata once route ID is changed
igarashitm Nov 26, 2024
b9feb12
fix(DataMapper): Cannot empty the expression in XPath Editor
igarashitm Nov 26, 2024
715a2fc
fix(DataMapper): 3-dots menu should close when other one is opened
igarashitm Nov 26, 2024
5f88bde
fix(FLowsList): Evaluate action confirmation when deleting a Flow
lordrip Nov 26, 2024
e0a5ba7
slightly changed the kaoto title
lhein Nov 26, 2024
4f934d2
e2e(1660): On Delete route - when user presses cancel, the route gets…
tplevko Nov 26, 2024
0f29bf3
fix(Canvas): Valid `otherwise` and `doFinally`
lordrip Nov 29, 2024
4c48e3b
chore(DataMapper): Update a screenshot
igarashitm Dec 2, 2024
671e30a
fix(DataMapper): `<span>` on target document label put an unnecessar…
igarashitm Dec 3, 2024
0f69e5c
Merge remote-tracking branch 'kaoto-main/main' into 202412040806EST
igarashitm Dec 4, 2024
6d593fe
Merge pull request #250 from igarashitm/202412040806EST
igarashitm Dec 4, 2024
845fc98
adding latest Red Hat provided Camel Quarkus release
lhein Dec 6, 2024
bb6e00b
Align Camel Quarkus catalog 3.8.x (3.8.4) to 4.8.4
apupier Dec 6, 2024
c0cdec1
chore: provide more precise urls to search versions of Catalog (#1696)
apupier Dec 9, 2024
9a7f998
Upgrade Camel Main and Spring Boot catalog from 4.8.1 to 4.8.2
apupier Dec 6, 2024
bafb9c1
feat: Add 4.9.0 to Catalog for Main, Spring Boot and kamelets
apupier Dec 4, 2024
4417f26
chore: fix Camel 4.9.0 tests
lordrip Dec 5, 2024
c161ca3
feat: Update Kamelet Catalog to 4.9.0
apupier Dec 6, 2024
00cad09
chore: Update quarkus versions
lordrip Dec 9, 2024
3105b83
Merge remote-tracking branch 'datamapper/main' into merge-datamapper
igarashitm Dec 9, 2024
6fcd26c
fix(build): Build xml-schema-ts library for chromatic
lordrip Dec 9, 2024
4813163
fix(build): Remove NODE_OPTIONS env var
lordrip Dec 9, 2024
68650e4
chore(DataMapper): fix stylelint error
igarashitm Dec 9, 2024
909bf55
fix(build): Replace generateRandomId with getCamelRandomId
lordrip Dec 9, 2024
ea7cc63
chore(DataMapper): Fix SonarCloud issues
igarashitm Dec 9, 2024
fe22dd7
removing unused imports and fixing wrong years in headers
lhein Dec 9, 2024
ee59ee4
fix(DataMapper): Add xml-schema-ts sub package build in parent postin…
igarashitm Dec 9, 2024
fc94c52
chore: release 2.3.0-RC3
lordrip Dec 9, 2024
001a9b4
Merge branch 'main' into merge-datamapper
lordrip Dec 9, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
8 changes: 4 additions & 4 deletions .github/workflows/build-lint-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ jobs:
- name: 💅 Run stylelint
run: yarn workspace @kaoto/kaoto run lint:style

# Build packages excluding @kaoto/camel-catalog since it was build during installing dependencies
- name: Build packages
run: yarn workspaces foreach --verbose --all --topological-dev --exclude @kaoto/camel-catalog --exclude @kaoto/xml-schema-ts run build

# Run tests
- name: 🧪 Run tests
run: yarn workspaces foreach --verbose --all --topological-dev run test
Expand All @@ -45,10 +49,6 @@ jobs:
with:
token: ${{ secrets.CODECOV_TOKEN }}

# Build packages excluding @kaoto/camel-catalog since it was build during installing dependencies
- name: Build packages
run: yarn workspaces foreach --verbose --all --topological-dev --exclude @kaoto/camel-catalog run build

# Build lib
- name: Build @kaoto/kaoto package in lib mode
run: yarn workspace @kaoto/kaoto run build:lib
2 changes: 1 addition & 1 deletion .github/workflows/deploy-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
# Build packages excluding @kaoto/camel-catalog since it was build during installing dependencies
- name: '🔧 Build packages'
run: |
yarn workspaces foreach --verbose --all --topological-dev --exclude @kaoto/camel-catalog run build
yarn workspaces foreach --verbose --all --topological-dev --exclude @kaoto/camel-catalog --exclude @kaoto/xml-schema-ts run build

- name: '🔧 Tar UI Dist'
shell: bash
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:

# Build packages excluding @kaoto/camel-catalog since it was build during installing dependencies
- name: Build packages
run: yarn workspaces foreach --verbose --all --topological-dev --exclude @kaoto/camel-catalog run build
run: yarn workspaces foreach --verbose --all --topological-dev --exclude @kaoto/camel-catalog --exclude @kaoto/xml-schema-ts run build

# Build lib
- name: Build @kaoto/kaoto package in lib mode
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ jobs:

- name: '🔧 Build packages'
run: |
yarn workspaces foreach --verbose --all --topological-dev --exclude @kaoto/camel-catalog run build
yarn workspaces foreach --verbose --all --topological-dev --exclude @kaoto/camel-catalog --exclude @kaoto/xml-schema-ts run build

- name: '🛰️ Login to Container Registry'
uses: docker/login-action@v3
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"typescript": "5.5.4"
},
"scripts": {
"postinstall": "yarn workspace @kaoto/camel-catalog run build",
"postinstall": "yarn workspace @kaoto/camel-catalog run build && yarn workspace @kaoto/xml-schema-ts run build",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can run the build process in both packages at the same time, but let's check it after this PR

"version": "lerna version",
"publish": "lerna publish from-package"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import { DataMapperDebugger } from '@kaoto/kaoto/testing';
import { Meta, StoryFn } from '@storybook/react';
import { fn } from '@storybook/test';

export default {
title: 'DataMapper/Debugger',
component: DataMapperDebugger,
} as Meta<typeof DataMapperDebugger>;

const Template: StoryFn<typeof DataMapperDebugger> = (args) => {
return <DataMapperDebugger {...args} />;
};

export const Debugger = Template.bind({});
Debugger.args = {
onUpdateDocument: fn(),
onUpdateMappings: fn(),
};
14 changes: 14 additions & 0 deletions packages/ui/jest-setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,20 @@ Object.defineProperty(window, 'fetch', {
value: jest.fn(),
});

Object.defineProperty(window, 'matchMedia', {
writable: true,
value: jest.fn().mockImplementation((query) => ({
matches: false,
media: query,
onchange: null,
addListener: jest.fn(), // Deprecated
removeListener: jest.fn(), // Deprecated
addEventListener: jest.fn(),
removeEventListener: jest.fn(),
dispatchEvent: jest.fn(),
})),
});

jest
.spyOn(global, 'crypto', 'get')
.mockImplementation(() => ({ getRandomValues: () => [12345678], subtle }) as unknown as Crypto);
Expand Down
7 changes: 7 additions & 0 deletions packages/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,17 @@
"lint:style:fix": "yarn lint:style --fix"
},
"dependencies": {
"@dnd-kit/core": "^6.1.0",
"@kaoto-next/uniforms-patternfly": "^0.7.14",
"@kaoto/xml-schema-ts": "workspace:*",
"@kie-tools-core/editor": "0.32.0",
"@kie-tools-core/notifications": "0.32.0",
"@types/uuid": "^10.0.0",
"@types/xml-name-validator": "^4.0.3",
"@visx/shape": "^3.12.0",
"ajv": "^8.12.0",
"ajv-formats": "^3.0.0",
"chevrotain": "10.5.0",
lhein marked this conversation as resolved.
Show resolved Hide resolved
"clsx": "^2.1.0",
"html-to-image": "^1.11.11",
"lodash": "^4.17.21",
Expand All @@ -67,6 +72,8 @@
"uniforms-bridge-json-schema": "4.0.0-alpha.6",
"usehooks-ts": "^3.0.0",
"uuid": "^10.0.0",
"xml-formatter": "^3.6.2",
"xml-name-validator": "^5.0.0",
"yaml": "^2.3.2",
"zustand": "^4.3.9"
},
Expand Down
24 changes: 21 additions & 3 deletions packages/ui/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
import { VisualizationProvider } from '@patternfly/react-topology';
import { useMemo } from 'react';
import { Outlet } from 'react-router-dom';
import { RenderingProvider } from './components/RenderingAnchor/rendering.provider';
import { ControllerService } from './components/Visualization/Canvas/controller.service';
import { RegisterComponents } from './components/registers/RegisterComponents';
import { RegisterNodeInteractionAddons } from './components/registers/RegisterNodeInteractionAddons';
import { NodeInteractionAddonProvider } from './components/registers/interactions/node-interaction-addon.provider';
import { useReload } from './hooks/reload.hook';
import { Shell } from './layout/Shell';
import { LocalStorageSettingsAdapter } from './models/settings/localstorage-settings-adapter';
Expand All @@ -17,6 +24,7 @@

function App() {
const ReloadProvider = useReload();
const controller = useMemo(() => ControllerService.createController(), []);

Check warning on line 27 in packages/ui/src/App.tsx

View check run for this annotation

Codecov / codecov/patch

packages/ui/src/App.tsx#L27

Added line #L27 was not covered by tests
const settingsAdapter = new LocalStorageSettingsAdapter();
let catalogUrl = CatalogSchemaLoader.DEFAULT_CATALOG_PATH;
const settingsCatalogUrl = settingsAdapter.getSettings().catalogUrl;
Expand All @@ -35,9 +43,19 @@
<SchemasLoaderProvider>
<CatalogLoaderProvider>
<CatalogTilesProvider>
<VisibleFlowsProvider>
<Outlet />
</VisibleFlowsProvider>
<VisualizationProvider controller={controller}>
<VisibleFlowsProvider>
<RenderingProvider>
<RegisterComponents>
<NodeInteractionAddonProvider>
<RegisterNodeInteractionAddons>
<Outlet />
</RegisterNodeInteractionAddons>
</NodeInteractionAddonProvider>
</RegisterComponents>
</RenderingProvider>
</VisibleFlowsProvider>
</VisualizationProvider>
</CatalogTilesProvider>
</CatalogLoaderProvider>
</SchemasLoaderProvider>
Expand Down
Binary file added packages/ui/src/assets/components/datamapper.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
97 changes: 97 additions & 0 deletions packages/ui/src/assets/kaoto-patterns/kaoto-patterns.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
{
"kaoto-datamapper" : {
"model" : {
"kind" : "model",
"name" : "kaoto-datamapper",
"title" : "Kaoto DataMapper",
"description" : "The Kaoto DataMapper maps and transforms data using a set of Camel processors",
"deprecated" : false,
"label" : "transformation",
"javaType" : "org.apache.camel.model.StepDefinition",
"supportLevel" : "Stable",
"abstract" : false,
"input" : true,
"output" : true
},
"properties" : {
"description" : {
"index" : 0,
"kind" : "attribute",
"displayName" : "Description",
"group" : "common",
"required" : false,
"type" : "string",
"javaType" : "java.lang.String",
"deprecated" : false,
"autowired" : false,
"secret" : false,
"description" : "Sets the description of this node"
},
"disabled" : {
"index" : 1,
"kind" : "attribute",
"displayName" : "Disabled",
"group" : "advanced",
"label" : "advanced",
"required" : false,
"type" : "boolean",
"javaType" : "java.lang.Boolean",
"deprecated" : false,
"autowired" : false,
"secret" : false,
"defaultValue" : false,
"description" : "Whether to disable this EIP from the route during build time. Once an EIP has been disabled then it cannot be enabled later at runtime."
},
"outputs" : {
"index" : 2,
"kind" : "element",
"displayName" : "Outputs",
"group" : "common",
"required" : true,
"type" : "array",
"javaType" : "java.util.List",
"oneOf" : [ "aggregate", "bean", "choice", "circuitBreaker", "claimCheck", "convertBodyTo", "convertHeaderTo", "convertVariableTo", "delay", "doCatch", "doFinally", "doTry", "dynamicRouter", "enrich", "filter", "idempotentConsumer", "intercept", "interceptFrom", "interceptSendToEndpoint", "kamelet", "loadBalance", "log", "loop", "marshal", "multicast", "onCompletion", "onException", "onFallback", "otherwise", "pausable", "pipeline", "policy", "pollEnrich", "process", "recipientList", "removeHeader", "removeHeaders", "removeProperties", "removeProperty", "removeVariable", "resequence", "resumable", "rollback", "routingSlip", "saga", "sample", "script", "serviceCall", "setBody", "setExchangePattern", "setHeader", "setHeaders", "setProperty", "setVariable", "setVariables", "sort", "split", "step", "stop", "threads", "throttle", "throwException", "to", "toD", "transacted", "transform", "unmarshal", "validate", "when", "whenSkipSendToEndpoint", "wireTap" ],
"deprecated" : false,
"autowired" : false,
"secret" : false
}
},
"exchangeProperties" : {
"CamelStepId" : {
"index" : 0,
"kind" : "exchangeProperty",
"displayName" : "Step Id",
"label" : "producer",
"required" : false,
"javaType" : "String",
"deprecated" : false,
"autowired" : false,
"secret" : false,
"description" : "The id of the Step EIP"
}
},
"propertiesSchema" : {
"title" : "Kaoto DataMapper",
"description" : "The Kaoto DataMapper maps and transforms data using a set of Camel processors",
"type" : "object",
"additionalProperties" : false,
"properties" : {
"description" : {
"type" : "string",
"title" : "Description",
"description" : "Sets the description of this node",
"group" : "common"
},
"disabled" : {
"type" : "boolean",
"title" : "Disabled",
"description" : "Whether to disable this EIP from the route during build time. Once an EIP has been disabled then it cannot be enabled later at runtime.",
"group" : "advanced"
}
},
"$comment" : "steps",
"$schema" : "http://json-schema.org/draft-07/schema#",
"required" : [ ]
}
}
}
17 changes: 16 additions & 1 deletion packages/ui/src/camel-utils/camel-random-id.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { getCamelRandomId } from './camel-random-id';
import { getCamelRandomId, getHexaDecimalRandomId } from './camel-random-id';

describe('camel-random-id', () => {
it('should return a random number', () => {
Expand Down Expand Up @@ -35,4 +35,19 @@ describe('camel-random-id', () => {

expect(getCamelRandomId('route')).toEqual(expect.any(String));
});

describe('getHexaDecimalRandomId()', () => {
it('should return a random number with Hexadecimal format', async () => {
// crypto.getRandomValues() in Jest returns a fixed number 12345678. Replacing with Date.now()
jest
.spyOn(global, 'crypto', 'get')
.mockImplementation(() => ({ getRandomValues: () => [Date.now()] }) as unknown as Crypto);
const one = getHexaDecimalRandomId('test');
expect(one).toMatch(/test-[0-9a-f]{1,8}/);
await new Promise((f) => setTimeout(f, 1));
const two = getHexaDecimalRandomId('test');
expect(two).toMatch(/test-[0-9a-f]{1,8}/);
expect(one).not.toEqual(two);
});
});
});
12 changes: 10 additions & 2 deletions packages/ui/src/camel-utils/camel-random-id.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
const getCryptoObj = () => {
return window.crypto || (window as Window & { msCrypto?: Crypto }).msCrypto;
};

export const getCamelRandomId = (kind: string, length = 4): string => {
const cryptoObj = window.crypto || (window as Window & { msCrypto?: Crypto }).msCrypto;
const randomNumber = Math.floor(cryptoObj?.getRandomValues(new Uint32Array(1))[0] ?? Date.now());
const randomNumber = Math.floor(getCryptoObj()?.getRandomValues(new Uint32Array(1))[0] ?? Date.now());

return `${kind}-${randomNumber.toString(10).slice(0, length)}`;
};

export const getHexaDecimalRandomId = (prefix: string) => {
const randomNumber = getCryptoObj()?.getRandomValues(new Uint32Array(1))[0] ?? Date.now();
return `${prefix}-${randomNumber.toString(16)}`;
};
Loading
Loading