mirror of
https://github.com/christianvidalwolf-prog/Craze-Data-check.git
synced 2026-08-03 13:55:23 +02:00
Add classification dropdown in Missing Data edit panel
This commit is contained in:
@@ -390,18 +390,21 @@ export function MissingDataView({ data, headers, onSaveRow, onCaptureState }: Mi
|
||||
<div className="flex-1 overflow-auto p-6 space-y-5">
|
||||
<div className="flex flex-col gap-1.5">
|
||||
<label className="text-xs font-medium text-slate-400 uppercase tracking-wider">Classification</label>
|
||||
<input
|
||||
type="text"
|
||||
<select
|
||||
value={editing.classification}
|
||||
onChange={e => setEditing(prev => prev ? { ...prev, classification: e.target.value } : prev)}
|
||||
placeholder="e.g. CORE, OOC..."
|
||||
className={cn(
|
||||
"w-full bg-slate-900 border rounded-md px-3 py-2.5 text-sm text-white focus:outline-none focus:ring-1 transition-colors",
|
||||
editing.classification !== String(editingRow[COLUMNS.CLASSIFICATION] || '')
|
||||
? "border-blue-500 focus:ring-blue-500"
|
||||
: "border-slate-700 focus:border-slate-500 focus:ring-slate-500"
|
||||
)}
|
||||
/>
|
||||
>
|
||||
<option value="">Select classification...</option>
|
||||
{getUniqueValues(COLUMNS.CLASSIFICATION).map(val => (
|
||||
<option key={val} value={val}>{val}</option>
|
||||
))}
|
||||
</select>
|
||||
</div>
|
||||
|
||||
{launchDateCol >= 0 && (
|
||||
|
||||
Reference in New Issue
Block a user