Major overhaul to the Notes/Issues. Minor tweaks to the UI. Added Profile photos

This commit is contained in:
2026-02-19 06:30:57 +02:00
parent a9a1531d57
commit f09979c653
21 changed files with 988 additions and 308 deletions

View File

@@ -2,7 +2,7 @@ import { useState, useEffect } from "react";
import { useNavigate, useParams, useSearchParams } from "react-router-dom";
import api from "../api/client";
const CATEGORIES = ["general", "maintenance", "installation", "issue", "other"];
const CATEGORIES = ["general", "maintenance", "installation", "issue", "action_item", "other"];
export default function NoteForm() {
const { id } = useParams();
@@ -193,7 +193,7 @@ export default function NoteForm() {
>
{CATEGORIES.map((c) => (
<option key={c} value={c}>
{c.charAt(0).toUpperCase() + c.slice(1)}
{c.replace(/_/g, " ").replace(/\b\w/g, ch => ch.toUpperCase())}
</option>
))}
</select>