Archestra Apps HackathonJoin now

Thread

AA
Abhishek Anand11:26 AMOpen in Slack
Hi, is there any way to add existing chats to a project?

10 replies
IK
Innokentii Konstantinov (archestra team)11:57 AMOpen in Slack
I'm literally working on it right now!
AA
Abhishek Anand11:58 AMOpen in Slack
haha okay
IK
Innokentii Konstantinov (archestra team)11:58 AMOpen in Slack
What's your use-case?
AA
Abhishek Anand12:00 PMOpen in Slack
I was wondering that many times people have various chats and after that they realise that oh I should group them or maybe you create a new chat outside the project by mistake which is not that rare, and people would want to have that whole chat context so they would want to add it in the project.
MK
Matvey Kukuy (archestra team)1:04 PMOpen in Slack
Love the question!
IK
Innokentii Konstantinov (archestra team)1:07 PMOpen in Slack
@user Actually, I just realized, that I'm working on a different thing - creating a project out of existing chat.
If you have time and desire, I'll be happy to merge your pr for that.
I think it should work this way:
1. Add an action "move to project". It should be available in the chat 3-dot menu
2. When moving chat to projects. all of it's file should be moved to project. Something simular to what I did here when creating chat out of project.
3. There is a gotcha, in case project already has files with same name - I think we can handle it with Replace/Cancel/Create copy dialog, like when you copy paste on your machine.
AA
Abhishek Anand1:58 PMOpen in Slack
Sure i’ll be working on that
AA
Abhishek Anand9:13 AMOpen in Slack
Hi @user, I have a query regarding moving the files when moving a chat to a project, as I saw in the PR you mentioned (create project to chat), when a user converts a personal chat into a new project, only the converter's own files move into the project. Other authors' files stay as personal files in the chat, so when moving a personal chat to a project, if we have someone else's files and they dont have access to the project then they will lose access to their file and everyone in the project will be able to view their files, so what should we be doing here?
We can either move all files and check if all the authors have access to the project then only allow it or should we be moving just the user moving the chat's projects, or should we do any other implementation.
IK
Innokentii Konstantinov (archestra team)11:50 AMOpen in Slack
Sorry, I didn't get it. How the projectless chat could have some other author's files? What we are trying to achieve is attaching existing projectless chat to a project -> move all it's files to this project. Is there any complexity I'm missing?
AA
Abhishek Anand6:54 AMOpen in Slack
No I meant like if the chat was shared with other people, similar to this in the "project from chat" PR in models/project.ts line 104.