Skip to content

Commit

Permalink
add broker status option to qa custom
Browse files Browse the repository at this point in the history
  • Loading branch information
codemist committed Jan 14, 2025
1 parent 5ca796c commit 0fc1e24
Showing 1 changed file with 27 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

import React, { useState, useEffect } from "react";
import styles from "./ConfigPage.module.scss";
import { RemovalStatus } from "../../../../../functions/universal/scanResult";
import { DataBrokerRemovalStatus } from "../../../../../functions/universal/dataBroker";

interface QaBrokerDataCounts {
onerep_scan_result_id?: number;
Expand All @@ -23,6 +25,9 @@ interface QaBrokerDataCounts {
status: string;
manually_resolved: string;
optout_attempts?: number;
scan_result_status: RemovalStatus;
broker_status: DataBrokerRemovalStatus;
url: string;
}

const endpointBase = "/api/v1/admin/qa-customs/onerep";
Expand Down Expand Up @@ -63,6 +68,9 @@ const OnerepConfigPage = (props: Props) => {
last_name: "",
status: "new",
manually_resolved: "false",
scan_result_status: "new",
broker_status: "active",
url: "",
};

// Temporary state to hold form input for a new broker
Expand Down Expand Up @@ -383,6 +391,25 @@ const OnerepConfigPage = (props: Props) => {
</select>
</label>

<label>
Broker status:
<select
name="status"
value={newBroker.broker_status}
onChange={(e) => void handleChange(e)}
>
<option value="active">Active</option>
<option value="on_hold">In Progress</option>
<option value="ceased_operation">Ceased operation</option>
<option value="scan_under_maintenance">
Scan under maintenance
</option>
<option value="removal_under_maintenance">
Removal under maintenance
</option>
</select>
</label>

<label className={styles.label}>
Optout Attempts:
<input
Expand Down

0 comments on commit 0fc1e24

Please sign in to comment.