fix(T3): copy + entry points + recommender alias
Batch of small fixes from the post-audit plan:
F11 — "Mark as won" dialog copy
Was: "This will move the interest to Completed and stamp the outcome."
Completed was retired in the 7-stage refactor; copy now reads
"marks Won; stage stays where it is" with a parallel Lost variant.
F13 — Bulk-add berths wizard had no UI entry point
Page existed at /[portSlug]/admin/berths/bulk-add but nothing linked
to it. Added a "Bulk add" button on the Berths list toolbar, gated
on `berths.import`. Also fixed the API route's permission key
(was `berths.create`, a phantom — switched to `berths.import` to
match seed-permissions).
F14 — Audit Log nav entry
Sidebar Admin section now lists "Audit Log" → /admin/audit, gated
by the adminRequired group rule.
F18 — Recommender `limit` param ignored
POST /interests/[id]/recommend-berths now accepts `limit` as an
alias for `topN`. Audit sent `{limit:3}` and silently got 8 rows
back; both names now resolve.
Tests still green.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -126,8 +126,17 @@ export function InterestOutcomeDialog({ interestId, open, onOpenChange, mode }:
|
||||
</div>
|
||||
|
||||
<p className="text-xs text-muted-foreground">
|
||||
This will move the interest to <strong>Completed</strong> and stamp the outcome. You can
|
||||
reopen it later.
|
||||
{mode === 'won' ? (
|
||||
<>
|
||||
This will mark the interest as <strong>Won</strong>. The pipeline stage stays where
|
||||
it is; the outcome flag is set. You can clear the outcome later to reopen.
|
||||
</>
|
||||
) : (
|
||||
<>
|
||||
This will close the interest with a <strong>Lost</strong> outcome. The pipeline
|
||||
stage stays where it is. You can clear the outcome later to reopen.
|
||||
</>
|
||||
)}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user