GCTC-NTGC / gc-digital-talent

GC Digital Talent is the new recruitment platform for digital and tech jobs in the Government of Canada. // Talents numériques du GC est la nouvelle plateforme de recrutement pour les emplois numériques et technologiques au gouvernement du Canada.
https://talent.canada.ca
GNU Affero General Public License v3.0
19 stars 8 forks source link

✨ Search request history on Manager dashboard #11346

Open petertgiles opened 3 weeks ago

petertgiles commented 3 weeks ago

✨ Feature

The manager dashboard needs to be able to load a list of the manager's search requests and open a preview dialog.

🕵️ Details

🎨 Design

@JoshBeveridge

Manager dashboard page

Dialog view with mobile + dark/light mode views

📸 Screenshot

image

image

🙋‍♀️ Proposed Implementation

This will require adding a method of getting "my requests" from the API. Maybe a "talentRequests" or "talentRequestHistory" field on the User object.

// Schema.graphql
type User {
.
.
.
talentRequest: PoolCandidateSearchRequest!
}
// PoolCandidateSearchResult.php
public function getCandidateCountAttribute()
{
    $applicantFilter = $this->applicantFilter();
    $candidateCount = CountPoolCandidatesByPool::candidateCount($applicantFilter);
    return $candidateCount;
}

For the sorting, that can be done on the front-end similar to ExperienceSortAndFilter.tsx

Status badge table

Enum EN FR
NEW Submitted
IN_PROGRESS Under review
WAITING Awaiting response
DONE Complete
DONE_NO_CANDIDATES Complete
NOT_COMPLIANT Complete

🌎 Localization

✅ Acceptance Criteria

🛑 Blockers

### Blocked By
- [ ] https://github.com/GCTC-NTGC/gc-digital-talent/issues/10785
github-actions[bot] commented 3 weeks ago

Status: Error :warning:

Issues blocking this PR: