Skip to content

Commit

Permalink
Tracker-Status description modal
Browse files Browse the repository at this point in the history
  • Loading branch information
sanjaytkbabu committed Nov 20, 2024
1 parent 1ec62c8 commit 1ec53eb
Show file tree
Hide file tree
Showing 2 changed files with 104 additions and 1 deletion.
97 changes: 97 additions & 0 deletions frontend/src/components/permit/PermitStatusDescriptionModal.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
<script setup lang="ts">
import StatusPill from '@/components/common/StatusPill.vue';
import { Dialog } from '@/lib/primevue';
import { PermitAuthorizationStatus } from '@/utils/enums/housing';
const visible = defineModel<boolean>('visible');
</script>

<template>
<Dialog
v-model:visible="visible"
:draggable="false"
:modal="true"
class="app-info-dialog w-6"
>
<template #header>
<span class="p-dialog-title">Application stages</span>
</template>
<div>The application reviewing process includes four stages.</div>
<div class="my-4">
<div class="text-lg font-bold mb-2">Application submission</div>
<div>
The technical review stage is when the reviewing authority conducts a thorough evaluation of the application in
preparation for making a decision.
</div>
</div>
<div class="my-4">
<div class="text-lg font-bold mb-2">Technical review</div>
<div>
The technical review stage is when the reviewing authority conducts a thorough evaluation of the application in
preparation for making a decision.
</div>
</div>
<div class="my-4">
<div class="text-lg font-bold mb-2">Pending decision</div>
<div>
The pending decision stage is when the decision-makers review the evaluation and issue their final decision.
</div>
</div>
<div class="my-4">
<div class="text-lg font-bold mb-2">Post-decision</div>
<div>The post-decision stage is when a final decision has been made. This concludes the application.</div>
</div>

<div class="text-2xl font-bold mb-2">Application statuses</div>
<div class="my-4">
<div class="flex">
<StatusPill :auth-status="PermitAuthorizationStatus.IN_PROGRESS" />
</div>
<div class="mt-2">The application is currently active.</div>
</div>
<div class="my-4">
<div class="flex">
<StatusPill :auth-status="PermitAuthorizationStatus.PENDING_CLIENT_ACTION" />
</div>
<div class="mt-2">
The application is currently pending the applicant’s action in response to the reviewing authority’s request.
</div>
</div>
<div class="my-4">
<div class="flex">
<StatusPill :auth-status="PermitAuthorizationStatus.ABANDONDED" />
</div>
<div class="mt-2">The application has been abandoned by the applicant.</div>
</div>
<div class="my-4">
<div class="flex">
<StatusPill :auth-status="PermitAuthorizationStatus.WITHDRAWN" />
</div>
<div class="mt-2">The application has been withdrawn by the applicant.</div>
</div>
<div class="my-4">
<div class="flex">
<StatusPill :auth-status="PermitAuthorizationStatus.CANCELLED" />
</div>
<div class="mt-2">The application has been cancelled by the reviewing authority.</div>
</div>
<div class="my-4">
<div class="flex">
<StatusPill :auth-status="PermitAuthorizationStatus.DENIED" />
</div>
<div class="mt-2">
The application has completed the review process, however, the reviewing authority has decided not to approve
the application.
</div>
</div>
<div class="my-4">
<div class="flex">
<StatusPill :auth-status="PermitAuthorizationStatus.GRANTED" />
</div>
<div class="mt-2">
The application has successfully completed the review process. A positive final decision has been granted to the
applicant.
</div>
</div>
</Dialog>
</template>
8 changes: 7 additions & 1 deletion frontend/src/utils/enums/housing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,17 @@ export enum NumResidentialUnits {
}

export enum PermitAuthorizationStatus {
ABANDONDED = 'Abandoned',
ISSUED = 'Issued',
CANCELLED = 'Cancelled',
DENIED = 'Denied',
GRANTED = 'Granted',
PENDING = 'Pending',
PENDING_CLIENT_ACTION = 'Pending client',
IN_PROGRESS = 'In Progress',
IN_REVIEW = 'In Review',
NONE = 'None'
NONE = 'None',
WITHDRAWN = 'Withdrawn'
}

export enum PermitNeeded {
Expand Down

0 comments on commit 1ec53eb

Please sign in to comment.