Skip to content

give NGO users the full opportunity view - #950

Open
ivannissimrch wants to merge 4 commits into
developfrom
934-scope-ngo-opportunity-view
Open

give NGO users the full opportunity view#950
ivannissimrch wants to merge 4 commits into
developfrom
934-scope-ngo-opportunity-view

Conversation

@ivannissimrch

Copy link
Copy Markdown
Collaborator

Description

NGO users get the same opportunity view as coordinators: the list tab, full table columns, clickable rows and cards, and the schedule filter. Previously, they got a read-only version with fewer columns and nothing clickable.

Needs the backend scoping first, so the list only contains their own opportunities. I'll open the backend issue shortly.

Quick clarification before I open the be issue.
The one thing I want to confirm: does "their own domain" mean every shelter under that domain, or just the shelter the user belongs to? The issue says "their own operator their email domain" but then "for their own shelter", and those give different lists if a domain has more than one shelter.

Changes

  • useAuth returns isAgent; isOwnProfile
  • Opportunity table, cards, and filters use isAuthorized || isAgent instead of isAuthorized
  • All three tabs list, cards, and map are shown to agents; the list was hidden
  • isAuthorized itself is unchanged, so the other places that use it keep their current meaning

Related Issues

Closes #934

Screenshots / Demos

Screenshot from 2026-08-23 13-58-19

Checklist

  • WITHIN THE SCOPE OF AN ISSUE; No unnecessary files included
  • Tests added/updated
  • Documentation updated
  • CI passes

@ivannissimrch ivannissimrch self-assigned this Aug 23, 2026
@need4deed

Copy link
Copy Markdown
Contributor

@ivannissimrch to make it simple now - anyone from the same NGO/agent can see the oppotunities there of that NGO/agent

@ivannissimrch

Copy link
Copy Markdown
Collaborator Author

Thanks, scoping by agent then. I created a PR on be, 916 it limits the list to the caller's own agent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

limit ngos opportunities listst to their domain (träger)

3 participants