mirror of
https://github.com/penpot/penpot.git
synced 2026-10-29 14:00:37 +00:00
Moving files or a project to another team unlinked every library that ended up in another team than the file using it, but absorbed nothing: the copies kept pointing at a library their file could no longer reach. A move now does what deleting the library does (PENPOT-1540): it absorbs each such library into the files using it, then unlinks them; as on deletion, a failed absorption is logged and does not stop the move. That covers a moved library and the files left behind using it, a moved file and the libraries it used, and a moved project. The links checked are those that start or end at a moved file. They were those of the files in the source and destination projects, so a file in another project of the old team kept its link to a moved library across teams. rpc-management-test: a moved library is absorbed into a file in its project and into one in a project the move does not touch; a moved file absorbs its library; a moved project absorbs the library it left behind. AI-assisted-by: claude-opus-5-5