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

feat: redesign organisation layout #3257

Merged
merged 11 commits into from
Jan 24, 2024

Conversation

azaiko-akveo
Copy link
Contributor

Thanks for submitting a PR! Please check the boxes below:

  • I have run pre-commit to check linting
  • I have added information to docs/ if required so people know about the feature!
  • I have filled in the "Changes" section below?
  • I have filled in the "How did you test this code" section below?
  • I have used a Conventional Commit title for this Pull Request

Changes

Apply new design to organization management functionality

How did you test this code?

Test application locally

Copy link

vercel bot commented Jan 9, 2024

@azaiko-akveo is attempting to deploy a commit to the Flagsmith Team on Vercel.

A member of the Team first needs to authorize it.

Copy link

vercel bot commented Jan 9, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 24, 2024 6:23pm
flagsmith-frontend-preview ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 24, 2024 6:23pm
flagsmith-frontend-staging ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 24, 2024 6:23pm

@github-actions github-actions bot added the front-end Issue related to the React Front End Dashboard label Jan 9, 2024
Copy link
Contributor

github-actions bot commented Jan 9, 2024

Uffizzi Preview deployment-44671 was deleted.

@dabeeeenster
Copy link
Contributor

Can we fix the layout shifting as per the screen recording

2024-01-10.11-27-57.mp4

@azaiko-akveo azaiko-akveo marked this pull request as ready for review January 10, 2024 15:00
@azaiko-akveo
Copy link
Contributor Author

azaiko-akveo commented Jan 10, 2024

Can we fix the layout shifting as per the screen recording

The shift occurs due to hiding/displaying the global application scrollbar (the effect also exists on the Account page).
The effect is not reproduced for most recent browser versions (verified for Chrome, Firefox, and Safari).

To resolve this issue, we need to update the global application layout styles. It will take significant time and considers testing all existing pages to handle unexpected issues.

@dabeeeenster dabeeeenster requested a review from kyle-ssg January 10, 2024 15:32
@kyle-ssg
Copy link
Member

kyle-ssg commented Jan 10, 2024

Upon logging in I see the following with no ability to change organisation. I suspect that we haven't considered permissions / viewing organisations as non admins ?

This needs to be tested with the following permissions

  • Org admin
  • Non org admin
  • Non org admin but with Manage user groups / Manage users permissions

image

@azaiko-akveo
Copy link
Contributor Author

Upon logging in I see the following with no ability to change organisation. I suspect that we haven't considered permissions / viewing organisations as non admins ?

This needs to be tested with the following permissions

  • Org admin
  • Non org admin
  • Non org admin but with Manage user groups / Manage users permissions

image

Fixed. Now it is possible to choose an organization if user doesn't have permissions

image

@kyle-ssg
Copy link
Member

@azaiko-akveo I can switch org now but I can't do what I previously could?

After:

image

Previously:

Note: I can select a project to view.

image

Please check that you can perform the same actions that you can on staging.flagsmith.com.

Also as mentioned, please check this with Manage user groups / Manage users permissions

@dabeeeenster
Copy link
Contributor

@azaiko-akveo can we get an update?

@azaiko-akveo
Copy link
Contributor Author

azaiko-akveo commented Jan 16, 2024

an we get an update?

still in the process of applying the logic of permissions

@dabeeeenster
Copy link
Contributor

dabeeeenster commented Jan 16, 2024

an we get an update?

still in the process of applying the logic of permissions

Thanks for the update

@azaiko-akveo
Copy link
Contributor Author

@dabeeeenster , @kyle-ssg.
Permissions logic was updated. The PR is ready for review

@azaiko-akveo
Copy link
Contributor Author

Just a couple comments

@kyle-ssg , code was updated

@kyle-ssg
Copy link
Member

kyle-ssg commented Jan 23, 2024

@azaiko-akveo When I click on the flagsmith logo it goes to /projects which looks just like the organisation link except without tabs. Is there a need for /projects? It doesn't seem useful.

Unless I'm missing something I think we can:

  • Remove the /projects route
  • Make the home button behave the same was as clicking organisation

See following comment instead

@dabeeeenster
Copy link
Contributor

It should redirect to the new projects tab in the org screen?

@kyle-ssg
Copy link
Member

kyle-ssg commented Jan 23, 2024

After discussion, let's just remove the logo from the nav so that we have the following @azaiko-akveo. If I'm not mistaken, we can remove the projects page unless it's being used?
image

@azaiko-akveo
Copy link
Contributor Author

azaiko-akveo commented Jan 24, 2024

@kyle-ssg , @dabeeeenster

  • there is a case when user has access only for reading projects. To avoid displaying single tab we display a separate page. The same behaviour currently exists for /organisation-groups
  • navigation to the /projects (projects page) is used in many other components withing the app including login functionality

@kyle-ssg kyle-ssg added this pull request to the merge queue Jan 24, 2024
Merged via the queue into Flagsmith:main with commit 61d0585 Jan 24, 2024
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
front-end Issue related to the React Front End Dashboard
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants