Sink firms with no login to the bottom, and name the account type plainly
A firm with no stored Tradovate login can do nothing until someone enters one, so it no longer interleaves by name with the firms that are actually running. Sorted at render rather than in /api/firms, which keeps serving the catalog in the master's own order. Name order is preserved within each group. The account-type picker showed "Auto — Flex 50k Funded", which put the mechanism before the answer in the one place the answer is what you are reading. It shows the type's name now, or Unassigned when nothing matched. That first entry still clears a manual pin; the dot beside the select is what says a pin is in effect. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5
parent
8bdc85080c
commit
3ce14d4928
@@ -53,7 +53,7 @@ function AccountTypePicker({ account, firm, onAssigned }: {
|
||||
className="border border-slate-200 rounded-md px-1.5 py-1 text-xs bg-white text-slate-700 focus:outline-none focus:ring-1 focus:ring-blue-400"
|
||||
>
|
||||
<option value="">
|
||||
{account.accountTypeLabel ? `Auto — ${account.accountTypeLabel}` : 'Auto — unassigned'}
|
||||
{account.accountTypeLabel ?? 'Unassigned'}
|
||||
</option>
|
||||
{firm.accounts.map((type) => (
|
||||
<option key={type.id} value={type.id}>
|
||||
|
||||
Reference in New Issue
Block a user