code4romania / code4romania/vic

[Announcements] Allow announcements to be sent to other targets

Open
#273 0 comments 0 reactions 0 assignees View on GitHub
enhancement :rocket:
Dominant language
TypeScript
Stars
3
Forks
2
PR merge metrics
No merged PRs in 30d

Description

### Description

Allow filtering the target of an announcement based on role; this is additional to the existing filtering by the department.

### Test environment

On the Web interface, in an organization's admin interface.

### Preconditions

You need an organization with different departments and roles.

### Steps of Reproduction

1. Go to `/announcements/add` to create a new announcement
2. In the `Target` section, select the target group of the announcement

### Expected Result

There should also be a section with Roles that can be filtered.

### Actual Result

An admin can only select to filter through the departments of the NGO.

### Screenshots

![Screenshot 2024-03-04 at 10 25 57](https://github.com/code4romania/vic/assets/2820084/f1495133-32eb-4124-b555-a23efb4760c9)
![Screenshot 2024-03-04 at 10 26 46](https://github.com/code4romania/vic/assets/2820084/2ffec40d-4d9f-4aa5-b5f5-155daed3e6c2)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.