Graphite icon indicating copy to clipboard operation
Graphite copied to clipboard

Group every selected set of layers for its artboard independently

Open moosama76 opened this issue 1 year ago • 6 comments

moosama76 avatar Sep 19 '24 01:09 moosama76

I think this would have several issues. If the artboard was not selected, then it would not be added to the hashmap and nothing would happen. The best way to approach this would be to collect all the layer paths, and check if there is an artboard in the path. If so, then the ROOT_PARENT gets popped from the path. If the path is just one item at this point, it can be filtered out (since it is an artboard). Once these paths are collected, a hash map can be used to group the paths based on the last element. Then each group of paths can be grouped. The parent is the deepest common ancestor, and the rest of the logic can be applied from there.

adamgerhant avatar Sep 19 '24 20:09 adamgerhant

Okay I'll rework it

moosama76 avatar Sep 20 '24 20:09 moosama76

@adamgerhant can you review?

moosama76 avatar Oct 10 '24 23:10 moosama76

I pushed my changes/fixes about 2 weeks ago, and it was ready to merge after that.

adamgerhant avatar Oct 11 '24 00:10 adamgerhant

@adamgerhant in that situation, could you please remember to leave an approval on the PR? Thanks :)

Keavon avatar Oct 11 '24 01:10 Keavon

I'm confused by what exactly happened with the commit history. It seems my commit got edited and then forced pushed? I reviewed/tested it though and its ready to merge

adamgerhant avatar Oct 11 '24 04:10 adamgerhant

I checked this and I think it's okay

moosama76 avatar Dec 04 '24 21:12 moosama76

Sorry, what issue or #code-todo-list task is this solving? The PR description is blank and the title doesn't give me enough details to understand what this is meant to fix.

Keavon avatar Dec 23 '24 22:12 Keavon

Sorry, what issue or #code-todo-list task is this solving? The PR description is blank and the title doesn't give me enough details to understand what this is meant to fix.

https://github.com/GraphiteEditor/Graphite/blob/77936c44b053a7a4cf5af677e024bb443738cdde/editor/src/messages/portfolio/document/document_message_handler.rs#L494C1-L494C68

moosama76 avatar Dec 24 '24 00:12 moosama76

Ah, cool, thanks. Yeah, that looks useful. I put that in the PR description. This will need to have its conflicts resolved against master but then I can code review it with that context in mind.

Keavon avatar Dec 24 '24 00:12 Keavon

Superseded by #2239.

Keavon avatar Jan 31 '25 03:01 Keavon