Skip to content

Conversation

@alalg
Copy link

@alalg alalg commented Nov 5, 2025

Change-Id: I81da386de7e8ee3e66104c80122a025322a9d2db

  • Target version: master

Summary

For now reacts if you have a SmartArt in the loaded file

  • when selected shows frame around it
  • click on frame opens DiagramDialog to edit it

TODO

  • Add button on frame to better show that/how edit is done

Checklist

  • I have run make prettier-write and formatted the code.
  • All commits have Change-Id
  • I have run tests with make check
  • I have issued make run and manually verified that everything looks okay
  • Documentation (manuals or wiki) has been updated or is not required

@welcome
Copy link

welcome bot commented Nov 5, 2025

Thanks for opening this pull request!

Things that will help get your PR across the finish line:

@eszkadev eszkadev requested a review from gokaysatir November 6, 2025 04:52
@alalg
Copy link
Author

alalg commented Nov 6, 2025

NOTES:

Without that you will not see anything new :-/

What the change adds:

  • when selecting a SmartArt a 'frame' to visualize that is shown around the object (like in LO)
  • that frame scales & moves with the object
  • the object itself can still be dragged (was hard: that frame covers the object, but needed to have a 'hole')
  • clicking on the frame (anywhere) and only on the frame will bring up the DiagramDialog
  • in that dialog you can select the node by selecting the text in the listbox
  • you can trigger remove event -> that is in LO, thus works partially, is known to need improvement
  • in the textbox in the dialog you can add new text & trigger add button -> does not work in core, will need fix there

The goal is to get to what LO can do/offers currently, mainly to have UI in cool to at least do the same as in core.
Yes, not too much works in core yet, that's known and will need work.

@gokaysatir
Copy link
Contributor

@alalg i cannot open the documents. Do i need anything else other than below commit?

@alalg alalg force-pushed the private/alg/SmartArt001 branch 2 times, most recently from 7e228d1 to 32bd13a Compare November 6, 2025 13:54
@alalg
Copy link
Author

alalg commented Nov 7, 2025

Another question: What can I do for the two 'failed' checks?
I looked at them, but:

Maybe it's just the new 'frame' being shown, so the test may need change?
Can I execute that test locally somehow separate and see that screenshots?

@alalg alalg force-pushed the private/alg/SmartArt001 branch 2 times, most recently from c1f35f3 to 94fde82 Compare November 7, 2025 13:03
@gokaysatir
Copy link
Contributor

Another question: What can I do for the two 'failed' checks? I looked at them, but:

* 2nd has no hints at all -> what to do?!?

* 1st one has a hint for diverging screenshots (https://cpci.cbg.collabora.co.uk:8080/job/github_online_master_debug_vs_co-25.04_cypress_desktop/5480/consoleFull#1017170019483a664b-2b8b-4190-95dc-ecb5f3170865), but I cannot look at that screenshots (there are filenames with paths somewhere I cannot access), so how can I get a clue what it thinks is different?

Maybe it's just the new 'frame' being shown, so the test may need change? Can I execute that test locally somehow separate and see that screenshots?

For the second one, please check below page - the console log of the error:

For the first one - for running the tests locally:
If a desktop test fails (from your case):

  • make -C cypress_test/ check-desktop spec=writer/sidebar_spec.js
    If a mobile test failes:
  • make -C cypress_test/ check-mobile spec=MyTestPath_spec.js

@alalg alalg force-pushed the private/alg/SmartArt001 branch from 94fde82 to 2ea121a Compare November 7, 2025 15:02
Signed-off-by: Armin Le Grand (collabora) <[email protected]>
Change-Id: I81da386de7e8ee3e66104c80122a025322a9d2db
@alalg alalg force-pushed the private/alg/SmartArt001 branch from 2ea121a to ce3acd8 Compare November 7, 2025 15:17
@alalg
Copy link
Author

alalg commented Nov 7, 2025

* https://cpci.cbg.collabora.co.uk:8080/job/github_online_master_debug_vs_co-25.04/5157/console
  I agree that it is difficult to see the error there. Please check the end of the page. There is a duplicate code warning.

Indeed containsPoint is in CanvasSectionObject and also in ContentControlDropdownSubSection which is a HTMLObjectSection which is a CanvasSectionObject -> double.

BUT: how can that be and a failing test - I did neither change browser/src/canvas/sections/ContentControlDropdownSubSection.ts nor did I touch containsPoint in browser/src/canvas/CanvasSectionObject.ts - that already existed, I added isHit below that one, that's true...

Both are from gokaysatir:
The one in CanvasSectionObject from last month (Change-Id: I87a478040cf18a7d484d2f04107fc7199bd9e91e)
The one in ContentControlDropdownSubSection 10month ago (Change-Id: Ic13b92b745fc9443b28003969cb8e53f1c42d56b)

@gokaysatir
Copy link
Contributor

* https://cpci.cbg.collabora.co.uk:8080/job/github_online_master_debug_vs_co-25.04/5157/console
  I agree that it is difficult to see the error there. Please check the end of the page. There is a duplicate code warning.

Indeed containsPoint is in CanvasSectionObject and also in ContentControlDropdownSubSection which is a HTMLObjectSection which is a CanvasSectionObject -> double.

BUT: how can that be and a failing test - I did neither change browser/src/canvas/sections/ContentControlDropdownSubSection.ts nor did I touch containsPoint in browser/src/canvas/CanvasSectionObject.ts - that already existed, I added isHit below that one, that's true...

Both are from gokaysatir: The one in CanvasSectionObject from last month (Change-Id: I87a478040cf18a7d484d2f04107fc7199bd9e91e) The one in ContentControlDropdownSubSection 10month ago (Change-Id: Ic13b92b745fc9443b28003969cb8e53f1c42d56b)

That's unfair :) I don't know why it didn't catch the first occurrence.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: To Review

Development

Successfully merging this pull request may close these issues.

2 participants