Add filter options for delegator and delegatee

Description

Change

The approvals list in the global view and in the project (Jira) / space (Confluence) view has two new filters next to Originator: Delegator and Delegatee. They work like the Originator filter (pick one or more users), are kept in the URL and in saved filters, and are reset by Clear filters. They also apply to the CSV export. Results only narrow what the view already shows, so a project/space view never shows approvals from outside that project/space.

An approval matches Delegator X and Delegatee Y when:

  • Y can act for X on a step that is waiting for X right now (X's user step or vote moderation, or a group step or vote of a group the delegation covers), through an active delegation from X to Y that covers the approval's project/space, or

  • Y already took a decision on X's behalf in the approval (the "action taken by delegate" information shown in the approval).

With only Delegator chosen, any delegatee counts; with only Delegatee chosen, any delegator counts.

Decisions

  • "Waiting for X right now" uses the same awaiting-approvers data as the "awaiting my decision" filters, so it follows the same delegation rules (dates, project/space scope, groups).

  • The customer portal ignores both filters.

  • The personal view keeps its existing Delegator filter (delegations to you) and gets no Delegatee filter. The dashboard gadget filters are unchanged.

Manual tester notes

  • As a site admin, create a delegation from user A to user B (Delegate page) and start an approval with a step for A. In Approvals (global view) open Delegators, pick A: the approval is listed. Pick Delegatees B instead: it is listed. Pick Delegatees C (not a delegatee of A): it is not listed.

  • As B, decide that step on behalf of A. Remove or end the delegation. Filter Delegator A + Delegatee B again: the approval is still listed (decision taken on A's behalf).

  • Create a delegation limited to project/space P1 and an approval for A in project/space P2: filtering by A and B does not list it.

  • Open the project/space view of P1 as its admin: the Delegator and Delegatee filters are there and only P1 approvals are listed.

  • Combine the filters with status and Originator, reload the page: the selection stays. Save the filter, clear it, apply the saved filter: the same results come back. Clear filters resets both.

  • Export to CSV with the filters on: the file has the same approvals.

  • The personal view (Approvals as a regular user) still shows only the Delegator filter and works as before.

  • Repeat in Confluence (global and space views).