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(organization): add new route for organization projects TASK-975 #5240

Merged
merged 55 commits into from
Nov 14, 2024

Conversation

magicznyleszek
Copy link
Member

@magicznyleszek magicznyleszek commented Nov 7, 2024

🗒️ Checklist

  1. run linter locally
  2. update all related docs (API, README, inline, etc.), if any
  3. draft PR with a title <type>(<scope>)<!>: <title> TASK-1234
  4. tag PR: at least frontend or backend unless it's global
  5. fill in the template below and delete template comments
  6. review thyself: read the diff and repro the preview as written
  7. open PR & confirm that CI passes
  8. request reviewers, if needed
  9. delete this section before merging

📣 Summary

Make it possible to view your organization projects in a table.

📖 Description

Add new route for viewing your organization projects at #/projects/organization. Make it possible to switch into the new route through the View Switcher UI element.

👀 Preview steps

  1. ℹ️ have a non admin account (e.g. "joe") with couple of projects
  2. enable feature flag mmosEnabled
  3. navigate to "My projects"
  4. 🟢 notice that "My projects" is just a text, not a View Switcher (kind of a dropdown)
  5. log in as admin and go to http://kf.kobo.local/admin/organizations/organization/
  6. choose non admin account oganization (e.g. "joe's organization")
  7. enable "Multi-members override"
  8. log in as non admin account ("joe")
  9. navigate to "My projects"
  10. 🟢 notice that "My projects" is a View Switcher (kind of a dropdown), and one of the options would be the non admin account organization name ("joe's organization")
  11. select organization
  12. 🟢 notice that in the Projects Table the organizations projects load properly

💭 Notes

This is build atop #5218 so it would be best to wait with merge until the BE PR is done. Still, this one is totally reviewable ❤️

noliveleger and others added 30 commits October 21, 2024 15:29
# Conflicts:
#	kpi/views/v2/asset_file.py
…-975-org-viewswticher

# Conflicts:
#	jsapp/js/projects/projectViews/viewSwitcher.tsx
@magicznyleszek
Copy link
Member Author

@jamesrkiger because this is built atop #5218 and requires #5251, I will update it and make it review-ready after either of them is merged.

Base automatically changed from task-960-organization-assets-endpoint to main November 11, 2024 18:41
@magicznyleszek magicznyleszek marked this pull request as ready for review November 12, 2024 20:54
Copy link
Contributor

@jamesrkiger jamesrkiger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@magicznyleszek magicznyleszek merged commit 699114b into main Nov 14, 2024
6 of 7 checks passed
@magicznyleszek magicznyleszek deleted the leszek/task-975-org-viewswticher branch November 14, 2024 17:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants