Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix to focus on the current space in the sidebar #2335

Closed
2 tasks done
elatif2020 opened this issue Nov 24, 2023 · 7 comments · Fixed by #2425
Closed
2 tasks done

Fix to focus on the current space in the sidebar #2335

elatif2020 opened this issue Nov 24, 2023 · 7 comments · Fixed by #2425
Assignees
Labels
Priority - B V [production] verified on production enviroment

Comments

@elatif2020
Copy link
Collaborator

elatif2020 commented Nov 24, 2023

  • When navigating to spaces in the first time, and in some other scenarios I find out the sidebar focus is in a different common.
    It should always focus on the common which is active (according to the item I came from)
    Steps to reproduce:
    1 - Make sure to follow this discussion
    2 - Navigate to another common
    3 - Navigate to the inbox,
    4 - Find and click the item Autumn DEV
    5 - Click on the "Boots" space in the system message
    6 - In the sidebar your other common is appearing
    This happens both in mobile and desktop
    Here is an example where I was in another space and reached different common in the sidebar
    Image

  • Another related issue: the sidebar spaces tree is unable to focus on spaces that are deeper than the second level when you go directly to the space (via a url). It might be the problem you described here.
    To clarify, given this structure:
    A (Main common)
    B (space under A)
    C (space under B)
    If you take the url of A or B the tree will be auto-focused as expected including opening the tree automatically. But if you try with C url, the tree stays close.
    Happens both on mobile and desktop.

@roienatan
Copy link
Collaborator

roienatan commented Nov 28, 2023

@elatif2020 I'm not sure I can reproduced exactly what you described but I have discovered that the recursive tree is unable to focus on spaces that are deeper then the second level when you go directly to the space (via a url). It might be the problem you described here.
To clarify, given this structure:
A (Main common)
B (space under A)
C (space under B)
If you take the url of A or B the tree will be auto-focused as expected including opening the tree automatically. But if you try with C url, the tree stays close.

By the way, the issue I've described happens both on mobile and desktop.

@budnik9 budnik9 removed their assignment Nov 28, 2023
@elatif2020
Copy link
Collaborator Author

elatif2020 commented Nov 28, 2023

@elatif2020 I'm not sure I can reproduced exactly what you described but I have discovered that the recursive tree is unable to focus on spaces that are deeper then the second level when you go directly to the space (via a url). It might be the problem you described here. To clarify, given this structure: A (Main common) B (space under A) C (space under B) If you take the url of A or B the tree will be auto-focused as expected including opening the tree automatically. But if you try with C url, the tree stays close.

By the way, the issue I've described happens both on mobile and desktop.

@roienatan
Okay this is another issue that we should also take care of. I was able to reproduce it.
Steps to reproduce the issue I had:
1 - Make sure to follow this discussion
2 - Navigate to another common
3 - Navigate to the inbox,
4 - Find and click the item Autumn DEV
5 - Click on the "Boots" space in the system message
6 - In the sidebar your other common is appearing

This also happens both in mobile and desktop

@elatif2020 elatif2020 changed the title Mobile fix to focus on the current space in the sidebar Fix to focus on the current space in the sidebar Nov 28, 2023
@elatif2020
Copy link
Collaborator Author

elatif2020 commented Nov 28, 2023

I updated this card info with both issues

@andreymikhadyuk andreymikhadyuk linked a pull request Dec 26, 2023 that will close this issue
5 tasks
andreymikhadyuk added a commit that referenced this issue Dec 26, 2023
…ocus

Fix to focus on the current space in the sidebar #2335
@NoamQA
Copy link
Collaborator

NoamQA commented Jan 3, 2024

@roienatan @elatif2020
retested it
still happens in dev+web stage

i open a common and see it in the sidebar
open inbox and fine a stream with a system message of creating a common
when i click the common name it opens
and in the sidebar there is the first common that was before

Image

@NoamQA NoamQA reopened this Jan 3, 2024
@andreymikhadyuk
Copy link
Collaborator

@NoamQA I think the issue is with these specific commons: ttt and rrr. ttt has direct parent 0c4fca76-5a44-442c-9c74-41389a15b5aa, but this direct parent has state INACTIVE (its name is new). Did you remove that common?

@elatif2020
Copy link
Collaborator Author

I can't reproduce it so I guess it is a special case with some issue in the data

@NoamQA
Copy link
Collaborator

NoamQA commented Jan 4, 2024

@andreymikhadyuk @elatif2020
yes it works fine now

@NoamQA NoamQA added the V [production] verified on production enviroment label Jan 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority - B V [production] verified on production enviroment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants