Skip to content

Conversation

@tbouffard
Copy link
Member

@tbouffard tbouffard commented Feb 29, 2024

Previously, some stories still did encode and/or decode by calling directly the Codec code. Default Codecs were not registered so errors occurred. This is now done by using ModelXmlSerializer.
Most of the stories updated as part of the fix have been migrated to TypesScript to also fix other minor issues.

Clipboard (still in JavaScript)
The Clipboard actions still don't work and have not been touched as this is out of the scope of the changes proposed here.
The code that uses the Codecs to generate the XML string used for copy/paste (the string representation of the cells stored in the clipboard) is now working (as the Codecs are registered).

FileIO

  • load of txt and xml file works
  • the user can choose the source of the model (text or xml files) with a Storybook control
  • display images
  • display the "arrange" button

JSonData

  • display the content
  • display the popup

UserObject

  • load images (for popup)
  • fix style and form div
  • improve the layout
  • fix error when validating new value in the form (wrong import)

DISCLAIMER about the maxGraph "popup"
The CSS class are still not correctly set in the maxGraph code, so popups still don't display correctly.
The popups are not cleaned when changing from a story to another, as they are currently not created in the DOM at the right place. They are created directly in whole document, so not at the place where the story is located in the DOM (not in the right div).

Closes #337
Covers #73

Previously, some stories still encode/decode by calling directly the Codec code. Default Codecs
were not registered so errors occurred.
Most of the stories updated as part of the fix have been migrated to TypesScript to also fix other
minor issues.

Clipboard (still in JavaScript)
The Clipboard actions still don't work and have not been touched as this is out of the scope of the
changes proposed here.
The code that uses the Codecs to generate the xml string used for copy/paste (the string
representation of the cells to copy) is now working (the Codec are registered).

FileIO
  - load of txt and xml file works
  - the user can choose the source of the model with a Storybook control
  - display images
  - display the "arrange" button

JSonData
  - display the content
  - display the popup

UserObject
  - load images (for popup)
  - fix style and form div
  - improve the layout
  - fix error when validating new value in the form (wrong import)

DISCLAIMER about the maxGraph "popup"
The CSS class are still not correctly set in the maxGraph code, so popup still don't display
correctly.
The popup are not cleaned when changing from a story to another, as they are currently not created
in the DOM at the right place. They are created directly in whole document, so not at the place
where the story is located in the DOM (not in the right div).
@tbouffard tbouffard added the bug Something isn't working label Feb 29, 2024
@tbouffard tbouffard marked this pull request as ready for review March 3, 2024 15:11
@tbouffard tbouffard merged commit be73a20 into main Mar 7, 2024
@tbouffard tbouffard deleted the fix/fix_stories_using_codec branch March 7, 2024 13:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"too much recursion" error in stories using Codec directly

1 participant