Cloudkibo / KiboPush

0 stars 1 forks source link

Logic to add / remove link #7164

Open ImranBinShoukat opened 4 years ago

ImranBinShoukat commented 4 years ago

In this we will write a logic to add / remove link between blocks. Link should also be removed by pressing the delete button from the keyboard.

For further details please refer to the design document: https://docs.google.com/document/d/19O_vLsq6aKuvboYc7Ir7zcn3BMJBN1S1CT0oieYELXw/edit?pli=1#

bjafri5 commented 4 years ago

Logic for removing links has been completed. The Ui/logic for adding links remains.

bjafri5 commented 4 years ago

@ImranBinShoukat and I looked into this issue. We are having trouble creating a link at a dynamic position in the UI (it is not being placed at specific button positions). Imran has opened an issue in the library repository (https://github.com/MrBlenny/react-flow-chart/issues/69). We are currently waiting for a response. We will look more into this tomorrow.

bjafri5 commented 4 years ago

@ImranBinShoukat and I looked into this today. We tried the solution given on the issue Imran created, however that didn't work. We then tried coming up with a solution of our own, however we are running into issues regarding rendering. We will further look into this tomorrow. Apart from this issue, all other flow builder coding issues are complete.

bjafri5 commented 4 years ago

@ImranBinShoukat and I spent a lot of time on this yesterday. We have implemented the logic for adding and removing a link. There are still some issues with the UI not rendering properly, along with the link ports not being displayed at their correct position. We will try to finish this by today

bjafri5 commented 4 years ago

@ImranBinShoukat and I worked on this today. We made good progress and the linking and unlinking logic is pretty much complete, however there is still an issue with rendering. When we try to add a linked component from within the flow builder, it doesn't render the link properly. We will try to fix this on Monday

bjafri5 commented 4 years ago

@ImranBinShoukat and I worked on this today and managed to get the positioning to work properly for the links:

Screenshot 2019-12-02 at 5 39 07 PM Screenshot 2019-12-02 at 5 47 39 PM

There are still some rendering issues remaining which will be fixed by tomorrow IA

bjafri5 commented 4 years ago

Major issues with linking have been fixed. There are some issues remaining regarding the linking UI with card/gallery which we will try to fix today.

bjafri5 commented 4 years ago

Issues regarding validation were fixed. When a link is removed from a button, it will highlight that button as red indicating that there is no action attached to the button.

There are still issues regarding card/gallery link rendering which we will look into today

ImranBinShoukat commented 4 years ago

Here, we had to commit out the code to position ports on button because it was causing issues. So, we committed out the code to show ports at the right side of message block. It's not ideal but its working fine. We can work on showing ports on button in v2 or later.

jekram commented 4 years ago

@ImranBinShoukat Pleas show a screenshot who it looks now and how this will be fixed in v2

jekram commented 4 years ago

@ImranBinShoukat what is the staus here?

ImranBinShoukat commented 4 years ago

This is how it looks. Right now ports (dots) are shown at the edge of message block. Ideally, it should have been placed at the button.

Screenshot 2019-12-09 at 9 41 13 AM
jekram commented 4 years ago

Ok. Thanks. Continue to fix this issue.

jekram commented 4 years ago

Is this work complete? what else is pending on it