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

Add attribute manipulation to the CME #867

Open
wants to merge 32 commits into
base: main
Choose a base branch
from

Conversation

RadStr
Copy link
Collaborator

@RadStr RadStr commented Jan 22, 2025

What this PR does:

  • Store attributes in the content of VisualNodes, that means
    • We can set which attributes are visible on node and which are not
    • Set the order of attributes on node (the order corresponds to the order in the content array)
    • Store the content between calls
  • Use new icons for groups
  • Fix some bugs
  • Change UI for filter/extension of selection
  • Show menu on drag edge to canvas
  • @hello-pangea/dnd was added to the package.json - the library is used for drag-and-drop ... same library is used in the data-specification-editor

RadStr added 26 commits January 17, 2025 10:51
Resolve conflicts in dia-controller and dia-api
Resolve conflicts in dia-controller and add-class-to-vis
…ock-fix

Try to resolve by building on top of lock from main
Copy link

cloudflare-workers-and-pages bot commented Jan 22, 2025

Deploying dataspecer with  Cloudflare Pages  Cloudflare Pages

Latest commit: 805f43e
Status: ✅  Deploy successful!
Preview URL: https://ca0fb8d6.dataspecer.pages.dev
Branch Preview URL: https://cme-feature-attribute-manipu-7tnq.dataspecer.pages.dev

View logs

moveToNewPosition: (
sourceFieldInState: keyof EditNodeAttributesState,
targetFieldInState: keyof EditNodeAttributesState,
oldPosition: number,
Copy link
Collaborator

Choose a reason for hiding this comment

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

This can use a comment.
Again, interface, API --> comments.

Copy link
Collaborator Author

@RadStr RadStr Feb 5, 2025

Choose a reason for hiding this comment

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

Commented, at least here (+ improved the API).
As for the rest I will try to document as I go and document the remainders later in the cleaning up PR.

{...provided.draggableProps}
{...provided.dragHandleProps}
className="relative flex w-full flex-row justify-between z-50"
style={{
Copy link
Collaborator

Choose a reason for hiding this comment

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

Some of those, perhaps all, have their version in Tailwind.
Use of Tailwind classes is preffered to CSS style.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Rewritten using tailwind, I don't remember but I mostly use either tailwind. And .css files for the diagram entities

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants