@kelpie/ui 0.26.0 → 0.28.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/resources/account.d.ts +7 -1
- package/dist/api/resources/account.d.ts.map +1 -1
- package/dist/api/resources/account.js +17 -1
- package/dist/api/resources/account.js.map +1 -1
- package/dist/api/resources/bulkActions.d.ts +50 -0
- package/dist/api/resources/bulkActions.d.ts.map +1 -0
- package/dist/api/resources/bulkActions.js +192 -0
- package/dist/api/resources/bulkActions.js.map +1 -0
- package/dist/api/resources/forms.d.ts +26 -1
- package/dist/api/resources/forms.d.ts.map +1 -1
- package/dist/api/resources/forms.js +98 -1
- package/dist/api/resources/forms.js.map +1 -1
- package/dist/app/KelpieApp.d.ts.map +1 -1
- package/dist/app/KelpieApp.js +3 -1
- package/dist/app/KelpieApp.js.map +1 -1
- package/dist/components/ActivitiesPanel.d.ts.map +1 -1
- package/dist/components/ActivitiesPanel.js +3 -12
- package/dist/components/ActivitiesPanel.js.map +1 -1
- package/dist/components/BulkActions.d.ts +61 -0
- package/dist/components/BulkActions.d.ts.map +1 -0
- package/dist/components/BulkActions.js +351 -0
- package/dist/components/BulkActions.js.map +1 -0
- package/dist/components/BulkParamFields.d.ts +13 -0
- package/dist/components/BulkParamFields.d.ts.map +1 -0
- package/dist/components/BulkParamFields.js +177 -0
- package/dist/components/BulkParamFields.js.map +1 -0
- package/dist/components/CellLinks.d.ts +38 -0
- package/dist/components/CellLinks.d.ts.map +1 -0
- package/dist/components/CellLinks.js +58 -0
- package/dist/components/CellLinks.js.map +1 -0
- package/dist/components/CustomFieldsPanel.d.ts +12 -1
- package/dist/components/CustomFieldsPanel.d.ts.map +1 -1
- package/dist/components/CustomFieldsPanel.js +5 -1
- package/dist/components/CustomFieldsPanel.js.map +1 -1
- package/dist/components/DataTable.d.ts +42 -1
- package/dist/components/DataTable.d.ts.map +1 -1
- package/dist/components/DataTable.js +51 -16
- package/dist/components/DataTable.js.map +1 -1
- package/dist/components/NotesPanel.d.ts.map +1 -1
- package/dist/components/NotesPanel.js +2 -15
- package/dist/components/NotesPanel.js.map +1 -1
- package/dist/components/PhonesField.d.ts.map +1 -1
- package/dist/components/PhonesField.js +1 -3
- package/dist/components/PhonesField.js.map +1 -1
- package/dist/components/Shell.d.ts.map +1 -1
- package/dist/components/Shell.js +16 -6
- package/dist/components/Shell.js.map +1 -1
- package/dist/components/TagInput.d.ts.map +1 -1
- package/dist/components/TagInput.js +5 -0
- package/dist/components/TagInput.js.map +1 -1
- package/dist/components/bulkActionParams.d.ts +71 -0
- package/dist/components/bulkActionParams.d.ts.map +1 -0
- package/dist/components/bulkActionParams.js +241 -0
- package/dist/components/bulkActionParams.js.map +1 -0
- package/dist/components/bulkActionSummary.d.ts +22 -0
- package/dist/components/bulkActionSummary.d.ts.map +1 -0
- package/dist/components/bulkActionSummary.js +68 -0
- package/dist/components/bulkActionSummary.js.map +1 -0
- package/dist/components/bulkJobStatus.d.ts +4 -0
- package/dist/components/bulkJobStatus.d.ts.map +1 -0
- package/dist/components/bulkJobStatus.js +10 -0
- package/dist/components/bulkJobStatus.js.map +1 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/lib/attribution.d.ts +31 -0
- package/dist/lib/attribution.d.ts.map +1 -0
- package/dist/lib/attribution.js +48 -0
- package/dist/lib/attribution.js.map +1 -0
- package/dist/lib/bulkSelection.d.ts +43 -0
- package/dist/lib/bulkSelection.d.ts.map +1 -0
- package/dist/lib/bulkSelection.js +70 -0
- package/dist/lib/bulkSelection.js.map +1 -0
- package/dist/lib/contactLinks.d.ts +15 -0
- package/dist/lib/contactLinks.d.ts.map +1 -0
- package/dist/lib/contactLinks.js +22 -0
- package/dist/lib/contactLinks.js.map +1 -0
- package/dist/pages/BulkJobsPage.d.ts +3 -0
- package/dist/pages/BulkJobsPage.d.ts.map +1 -0
- package/dist/pages/BulkJobsPage.js +92 -0
- package/dist/pages/BulkJobsPage.js.map +1 -0
- package/dist/pages/CompaniesPage.d.ts.map +1 -1
- package/dist/pages/CompaniesPage.js +9 -5
- package/dist/pages/CompaniesPage.js.map +1 -1
- package/dist/pages/CompanyDetail.d.ts.map +1 -1
- package/dist/pages/CompanyDetail.js +4 -3
- package/dist/pages/CompanyDetail.js.map +1 -1
- package/dist/pages/DealsPage.d.ts.map +1 -1
- package/dist/pages/DealsPage.js +15 -4
- package/dist/pages/DealsPage.js.map +1 -1
- package/dist/pages/DecisionsPage.d.ts.map +1 -1
- package/dist/pages/DecisionsPage.js +11 -1
- package/dist/pages/DecisionsPage.js.map +1 -1
- package/dist/pages/EnquiriesPage.d.ts.map +1 -1
- package/dist/pages/EnquiriesPage.js +15 -6
- package/dist/pages/EnquiriesPage.js.map +1 -1
- package/dist/pages/EventDetail.d.ts.map +1 -1
- package/dist/pages/EventDetail.js +14 -6
- package/dist/pages/EventDetail.js.map +1 -1
- package/dist/pages/EventsPage.d.ts.map +1 -1
- package/dist/pages/EventsPage.js +22 -5
- package/dist/pages/EventsPage.js.map +1 -1
- package/dist/pages/FormsPage.d.ts.map +1 -1
- package/dist/pages/FormsPage.js +2 -2
- package/dist/pages/FormsPage.js.map +1 -1
- package/dist/pages/FundraisingPage.d.ts.map +1 -1
- package/dist/pages/FundraisingPage.js +15 -4
- package/dist/pages/FundraisingPage.js.map +1 -1
- package/dist/pages/HiringPage.d.ts.map +1 -1
- package/dist/pages/HiringPage.js +2 -1
- package/dist/pages/HiringPage.js.map +1 -1
- package/dist/pages/ListDetail.d.ts.map +1 -1
- package/dist/pages/ListDetail.js +39 -7
- package/dist/pages/ListDetail.js.map +1 -1
- package/dist/pages/ListsPage.d.ts.map +1 -1
- package/dist/pages/ListsPage.js +2 -1
- package/dist/pages/ListsPage.js.map +1 -1
- package/dist/pages/OpportunitiesPage.d.ts.map +1 -1
- package/dist/pages/OpportunitiesPage.js +15 -6
- package/dist/pages/OpportunitiesPage.js.map +1 -1
- package/dist/pages/PartnershipsPage.d.ts.map +1 -1
- package/dist/pages/PartnershipsPage.js +15 -4
- package/dist/pages/PartnershipsPage.js.map +1 -1
- package/dist/pages/PeoplePage.d.ts.map +1 -1
- package/dist/pages/PeoplePage.js +10 -9
- package/dist/pages/PeoplePage.js.map +1 -1
- package/dist/pages/PlanningPage.d.ts.map +1 -1
- package/dist/pages/PlanningPage.js +15 -4
- package/dist/pages/PlanningPage.js.map +1 -1
- package/dist/pages/RoleDetail.d.ts.map +1 -1
- package/dist/pages/RoleDetail.js +12 -4
- package/dist/pages/RoleDetail.js.map +1 -1
- package/dist/pages/dashboard/sections.d.ts.map +1 -1
- package/dist/pages/dashboard/sections.js +8 -10
- package/dist/pages/dashboard/sections.js.map +1 -1
- package/dist/pages/forms/BlockedSendersPage.d.ts +10 -0
- package/dist/pages/forms/BlockedSendersPage.d.ts.map +1 -0
- package/dist/pages/forms/BlockedSendersPage.js +65 -0
- package/dist/pages/forms/BlockedSendersPage.js.map +1 -0
- package/dist/pages/forms/MarkSpamPanel.d.ts +19 -0
- package/dist/pages/forms/MarkSpamPanel.d.ts.map +1 -0
- package/dist/pages/forms/MarkSpamPanel.js +62 -0
- package/dist/pages/forms/MarkSpamPanel.js.map +1 -0
- package/dist/pages/forms/SubmissionDetail.d.ts.map +1 -1
- package/dist/pages/forms/SubmissionDetail.js +41 -11
- package/dist/pages/forms/SubmissionDetail.js.map +1 -1
- package/dist/pages/forms/SubmissionsTable.d.ts +1 -1
- package/dist/pages/forms/SubmissionsTable.d.ts.map +1 -1
- package/dist/pages/forms/SubmissionsTable.js +6 -4
- package/dist/pages/forms/SubmissionsTable.js.map +1 -1
- package/dist/pages/forms/markSpamChoices.d.ts +51 -0
- package/dist/pages/forms/markSpamChoices.d.ts.map +1 -0
- package/dist/pages/forms/markSpamChoices.js +96 -0
- package/dist/pages/forms/markSpamChoices.js.map +1 -0
- package/dist/pages/positionDirectory.d.ts +5 -0
- package/dist/pages/positionDirectory.d.ts.map +1 -1
- package/dist/pages/positionDirectory.js +11 -3
- package/dist/pages/positionDirectory.js.map +1 -1
- package/dist/registry/context.d.ts +3 -1
- package/dist/registry/context.d.ts.map +1 -1
- package/dist/registry/context.js +4 -0
- package/dist/registry/context.js.map +1 -1
- package/dist/registry/contributions.d.ts +23 -0
- package/dist/registry/contributions.d.ts.map +1 -1
- package/dist/registry/contributions.js.map +1 -1
- package/dist/registry/registry.d.ts +4 -1
- package/dist/registry/registry.d.ts.map +1 -1
- package/dist/registry/registry.js +6 -0
- package/dist/registry/registry.js.map +1 -1
- package/dist/registry/visibleNav.d.ts.map +1 -1
- package/dist/registry/visibleNav.js +1 -0
- package/dist/registry/visibleNav.js.map +1 -1
- package/package.json +3 -3
- package/src/api/resources/account.ts +20 -0
- package/src/api/resources/bulkActions.ts +267 -0
- package/src/api/resources/forms.ts +135 -0
- package/src/app/KelpieApp.tsx +5 -0
- package/src/components/ActivitiesPanel.tsx +3 -14
- package/src/components/BulkActions.tsx +961 -0
- package/src/components/BulkParamFields.tsx +524 -0
- package/src/components/CellLinks.tsx +138 -0
- package/src/components/CustomFieldsPanel.tsx +6 -2
- package/src/components/DataTable.tsx +142 -2
- package/src/components/NotesPanel.tsx +2 -17
- package/src/components/PhonesField.tsx +2 -4
- package/src/components/Shell.tsx +23 -6
- package/src/components/TagInput.tsx +5 -0
- package/src/components/bulkActionParams.ts +405 -0
- package/src/components/bulkActionSummary.ts +104 -0
- package/src/components/bulkJobStatus.ts +11 -0
- package/src/index.ts +3 -0
- package/src/lib/attribution.ts +59 -0
- package/src/lib/bulkSelection.ts +128 -0
- package/src/lib/contactLinks.ts +25 -0
- package/src/pages/BulkJobsPage.tsx +206 -0
- package/src/pages/CompaniesPage.tsx +21 -6
- package/src/pages/CompanyDetail.tsx +4 -3
- package/src/pages/DealsPage.tsx +30 -2
- package/src/pages/DecisionsPage.tsx +21 -1
- package/src/pages/EnquiriesPage.tsx +33 -5
- package/src/pages/EventDetail.tsx +43 -16
- package/src/pages/EventsPage.tsx +35 -4
- package/src/pages/FormsPage.tsx +7 -1
- package/src/pages/FundraisingPage.tsx +30 -2
- package/src/pages/HiringPage.tsx +6 -1
- package/src/pages/ListDetail.tsx +69 -5
- package/src/pages/ListsPage.tsx +6 -1
- package/src/pages/OpportunitiesPage.tsx +33 -5
- package/src/pages/PartnershipsPage.tsx +30 -2
- package/src/pages/PeoplePage.tsx +26 -21
- package/src/pages/PlanningPage.tsx +65 -24
- package/src/pages/RoleDetail.tsx +35 -7
- package/src/pages/dashboard/sections.tsx +13 -14
- package/src/pages/forms/BlockedSendersPage.tsx +155 -0
- package/src/pages/forms/MarkSpamPanel.tsx +193 -0
- package/src/pages/forms/SubmissionDetail.tsx +73 -18
- package/src/pages/forms/SubmissionsTable.tsx +7 -5
- package/src/pages/forms/markSpamChoices.ts +141 -0
- package/src/pages/positionDirectory.ts +16 -4
- package/src/registry/context.ts +6 -0
- package/src/registry/contributions.ts +25 -0
- package/src/registry/registry.ts +12 -0
- package/src/registry/visibleNav.ts +1 -0
|
@@ -14,6 +14,8 @@ import { MAX_PAGE_SIZE, usePlanItems } from '../api/resources/planItems.ts'
|
|
|
14
14
|
import { useTimezone } from '../api/resources/account.ts'
|
|
15
15
|
import { AddRecordPanel } from '../components/AddRecordPanel.tsx'
|
|
16
16
|
import type { AddRecordValues } from '../components/AddRecordPanel.tsx'
|
|
17
|
+
import { CompanyLink, RecordLink } from '../components/CellLinks.tsx'
|
|
18
|
+
import { BulkActions } from '../components/BulkActions.tsx'
|
|
17
19
|
import { Chip } from '../components/Chip.tsx'
|
|
18
20
|
import type { ChipTone } from '../components/Chip.tsx'
|
|
19
21
|
import { ColumnPicker } from '../components/ColumnPicker.tsx'
|
|
@@ -24,6 +26,7 @@ import { PageHeader } from '../components/PageHeader.tsx'
|
|
|
24
26
|
import { Paginator } from '../components/Paginator.tsx'
|
|
25
27
|
import { ErrorPanel, LoadingPanel } from '../components/QueryState.tsx'
|
|
26
28
|
import { SegmentedControl } from '../components/SegmentedControl.tsx'
|
|
29
|
+
import { useBulkSelection } from '../lib/bulkSelection.ts'
|
|
27
30
|
import { formatDate, formatDay } from '../lib/dates.ts'
|
|
28
31
|
import { useListView } from '../lib/listView.ts'
|
|
29
32
|
import { DUE_BUCKETS, byDateThenTitle, dueBucketFor, nextOpenByTarget } from '../lib/plan.ts'
|
|
@@ -108,6 +111,15 @@ export function EnquiriesPage(): React.JSX.Element {
|
|
|
108
111
|
visibleStageIds.has(enquiry.stageId),
|
|
109
112
|
)
|
|
110
113
|
|
|
114
|
+
// The board has no checkboxes, so a selection lives only in the list, and
|
|
115
|
+
// switching view clears it. The Open scope is a filter on stage, so a
|
|
116
|
+
// filter selection names the open stages the list is showing.
|
|
117
|
+
const openStageIds = visibleStages.map((stage) => stage.id)
|
|
118
|
+
const bulk = useBulkSelection({
|
|
119
|
+
filter: scope === 'open' && openStageIds.length > 0 ? { stage_id: openStageIds } : {},
|
|
120
|
+
resetOn: [sort, view],
|
|
121
|
+
})
|
|
122
|
+
|
|
111
123
|
const askedIds = visibleEnquiries.slice(0, MAX_PAGE_SIZE).map((enquiry) => enquiry.id)
|
|
112
124
|
const planItems = usePlanItems(
|
|
113
125
|
{
|
|
@@ -140,7 +152,11 @@ export function EnquiriesPage(): React.JSX.Element {
|
|
|
140
152
|
key: 'name',
|
|
141
153
|
header: 'Enquiry',
|
|
142
154
|
sortKey: 'name',
|
|
143
|
-
render: (enquiry) =>
|
|
155
|
+
render: (enquiry) => (
|
|
156
|
+
<RecordLink to={`/enquiries/${enquiry.id}`} className="font-medium text-ink">
|
|
157
|
+
{enquiry.name}
|
|
158
|
+
</RecordLink>
|
|
159
|
+
),
|
|
144
160
|
},
|
|
145
161
|
{
|
|
146
162
|
key: 'source',
|
|
@@ -153,10 +169,12 @@ export function EnquiriesPage(): React.JSX.Element {
|
|
|
153
169
|
header: 'Company',
|
|
154
170
|
getSortValue: (enquiry) =>
|
|
155
171
|
enquiry.companyId === null ? null : (companyNameById.get(enquiry.companyId) ?? null),
|
|
156
|
-
render: (enquiry) =>
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
:
|
|
172
|
+
render: (enquiry) => (
|
|
173
|
+
<CompanyLink
|
|
174
|
+
id={enquiry.companyId}
|
|
175
|
+
name={enquiry.companyId === null ? undefined : companyNameById.get(enquiry.companyId)}
|
|
176
|
+
/>
|
|
177
|
+
),
|
|
160
178
|
},
|
|
161
179
|
{
|
|
162
180
|
key: 'stage',
|
|
@@ -369,6 +387,15 @@ export function EnquiriesPage(): React.JSX.Element {
|
|
|
369
387
|
<LoadingPanel label="Loading enquiries…" />
|
|
370
388
|
) : (
|
|
371
389
|
<>
|
|
390
|
+
{view === 'list' && (
|
|
391
|
+
<BulkActions
|
|
392
|
+
targetType="enquiry"
|
|
393
|
+
selection={bulk}
|
|
394
|
+
pageIds={visibleEnquiries.map((enquiry) => enquiry.id)}
|
|
395
|
+
hasNextPage={enquiries.hasNext}
|
|
396
|
+
noun={{ one: 'enquiry', many: 'enquiries' }}
|
|
397
|
+
/>
|
|
398
|
+
)}
|
|
372
399
|
{view === 'list' && <Paginator list={enquiries} placement="top" />}
|
|
373
400
|
{view === 'columns' ? (
|
|
374
401
|
<KanbanBoard
|
|
@@ -426,6 +453,7 @@ export function EnquiriesPage(): React.JSX.Element {
|
|
|
426
453
|
listView.setSort(next)
|
|
427
454
|
}}
|
|
428
455
|
visibleColumnKeys={listView.visibleKeys}
|
|
456
|
+
selection={{ ...bulk, rowLabel: (enquiry) => enquiry.name }}
|
|
429
457
|
/>
|
|
430
458
|
)}
|
|
431
459
|
{updateEnquiry.error !== null && (
|
|
@@ -44,8 +44,10 @@ import { useRaises } from '../api/resources/raises.ts'
|
|
|
44
44
|
import { useRoles } from '../api/resources/roles.ts'
|
|
45
45
|
import { ActivitiesPanel, LatestActivity } from '../components/ActivitiesPanel.tsx'
|
|
46
46
|
import { AgentTasks } from '../components/AgentTasks.tsx'
|
|
47
|
+
import { BulkActions } from '../components/BulkActions.tsx'
|
|
47
48
|
import { Chip } from '../components/Chip.tsx'
|
|
48
49
|
import type { ChipTone } from '../components/Chip.tsx'
|
|
50
|
+
import { CardSelectionHeader, RowCheckbox } from '../components/DataTable.tsx'
|
|
49
51
|
import { DecisionsPanel } from '../components/DecisionsPanel.tsx'
|
|
50
52
|
import { DeleteRecord } from '../components/DeleteRecord.tsx'
|
|
51
53
|
import { EntitySearch } from '../components/EntitySearch.tsx'
|
|
@@ -58,6 +60,7 @@ import { PlanAttention } from '../components/PlanAttention.tsx'
|
|
|
58
60
|
import { PlanPanel } from '../components/PlanPanel.tsx'
|
|
59
61
|
import { ErrorPanel, LoadingPanel, NotFoundPanel } from '../components/QueryState.tsx'
|
|
60
62
|
import { RecordTabs } from '../components/RecordTabs.tsx'
|
|
63
|
+
import { useBulkSelection } from '../lib/bulkSelection.ts'
|
|
61
64
|
import type { RecordTabDescriptor } from '../components/RecordTabs.tsx'
|
|
62
65
|
import { SectionHeader } from '../components/SectionHeader.tsx'
|
|
63
66
|
import { SidebarField } from '../components/SidebarField.tsx'
|
|
@@ -420,6 +423,9 @@ function EventAttendees({ event }: { readonly event: CrmEvent }): React.JSX.Elem
|
|
|
420
423
|
const directory = usePeople({ limit: 200 })
|
|
421
424
|
const nameById = new Map(directory.records.map((person) => [person.id, person.name]))
|
|
422
425
|
const registered = new Set(attendances.records.map((row) => row.personId))
|
|
426
|
+
// "All that match" is every attendance on this event, as the API filters them.
|
|
427
|
+
const bulk = useBulkSelection({ filter: { event_id: [event.id] } })
|
|
428
|
+
const pageIds = attendances.records.map((row) => row.id)
|
|
423
429
|
|
|
424
430
|
function add(submitEvent: FormEvent): void {
|
|
425
431
|
submitEvent.preventDefault()
|
|
@@ -436,6 +442,13 @@ function EventAttendees({ event }: { readonly event: CrmEvent }): React.JSX.Elem
|
|
|
436
442
|
return (
|
|
437
443
|
<section>
|
|
438
444
|
<SectionHeader title="Attendees" />
|
|
445
|
+
<BulkActions
|
|
446
|
+
targetType="attendance"
|
|
447
|
+
selection={bulk}
|
|
448
|
+
pageIds={pageIds}
|
|
449
|
+
hasNextPage={attendances.hasNext}
|
|
450
|
+
noun={{ one: 'attendance', many: 'attendances' }}
|
|
451
|
+
/>
|
|
439
452
|
{createAttendance.error !== null && (
|
|
440
453
|
<div className="mb-3">
|
|
441
454
|
<ErrorPanel error={createAttendance.error} />
|
|
@@ -445,22 +458,31 @@ function EventAttendees({ event }: { readonly event: CrmEvent }): React.JSX.Elem
|
|
|
445
458
|
{attendances.isLoading ? (
|
|
446
459
|
<p className="text-[13px] text-ink-faint">Loading attendees…</p>
|
|
447
460
|
) : (
|
|
448
|
-
|
|
449
|
-
{
|
|
450
|
-
<
|
|
461
|
+
<>
|
|
462
|
+
{pageIds.length > 0 && (
|
|
463
|
+
<CardSelectionHeader ids={pageIds} isSelected={bulk.isSelected} onTogglePage={bulk.onTogglePage} />
|
|
451
464
|
)}
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
465
|
+
<ul className="divide-y divide-border overflow-hidden rounded-md border border-border">
|
|
466
|
+
{attendances.records.length === 0 && (
|
|
467
|
+
<li className="px-3 py-3 text-[13px] text-ink-faint">No attendees yet.</li>
|
|
468
|
+
)}
|
|
469
|
+
{attendances.records.map((row) => (
|
|
470
|
+
<AttendanceRow
|
|
471
|
+
key={row.id}
|
|
472
|
+
attendance={row}
|
|
473
|
+
personName={nameById.get(row.personId) ?? row.personId}
|
|
474
|
+
selected={bulk.isSelected(row.id)}
|
|
475
|
+
onToggle={() => {
|
|
476
|
+
bulk.onToggle(row.id)
|
|
477
|
+
}}
|
|
478
|
+
notesOpen={openNotesId === row.id}
|
|
479
|
+
onToggleNotes={() => {
|
|
480
|
+
setOpenNotesId((current) => (current === row.id ? null : row.id))
|
|
481
|
+
}}
|
|
482
|
+
/>
|
|
483
|
+
))}
|
|
484
|
+
</ul>
|
|
485
|
+
</>
|
|
464
486
|
)}
|
|
465
487
|
<form onSubmit={add} className="mt-3 flex flex-wrap items-end gap-2">
|
|
466
488
|
<div className="min-w-[220px] flex-1">
|
|
@@ -494,11 +516,15 @@ function EventAttendees({ event }: { readonly event: CrmEvent }): React.JSX.Elem
|
|
|
494
516
|
function AttendanceRow({
|
|
495
517
|
attendance,
|
|
496
518
|
personName,
|
|
519
|
+
selected,
|
|
520
|
+
onToggle,
|
|
497
521
|
notesOpen,
|
|
498
522
|
onToggleNotes,
|
|
499
523
|
}: {
|
|
500
524
|
readonly attendance: Attendance
|
|
501
525
|
readonly personName: string
|
|
526
|
+
readonly selected: boolean
|
|
527
|
+
readonly onToggle: () => void
|
|
502
528
|
readonly notesOpen: boolean
|
|
503
529
|
readonly onToggleNotes: () => void
|
|
504
530
|
}): React.JSX.Element {
|
|
@@ -507,8 +533,9 @@ function AttendanceRow({
|
|
|
507
533
|
const error = updateAttendance.error ?? deleteAttendance.error
|
|
508
534
|
|
|
509
535
|
return (
|
|
510
|
-
<li className=
|
|
536
|
+
<li className={`px-3 py-2 ${selected ? 'bg-accent-soft/40' : ''}`}>
|
|
511
537
|
<div className="flex flex-wrap items-center gap-2">
|
|
538
|
+
<RowCheckbox label={personName} checked={selected} onToggle={onToggle} />
|
|
512
539
|
<Link
|
|
513
540
|
to={`/people/${attendance.personId}`}
|
|
514
541
|
className="min-w-0 flex-1 text-[13px] font-medium text-accent hover:underline"
|
package/src/pages/EventsPage.tsx
CHANGED
|
@@ -9,6 +9,8 @@ import { Link, useNavigate } from 'react-router'
|
|
|
9
9
|
|
|
10
10
|
import { useTimezone } from '../api/resources/account.ts'
|
|
11
11
|
import { useCreateEvent, useEvents } from '../api/resources/events.ts'
|
|
12
|
+
import { BulkActions } from '../components/BulkActions.tsx'
|
|
13
|
+
import { RecordLink } from '../components/CellLinks.tsx'
|
|
12
14
|
import { Chip } from '../components/Chip.tsx'
|
|
13
15
|
import type { ChipTone } from '../components/Chip.tsx'
|
|
14
16
|
import { ColumnPicker } from '../components/ColumnPicker.tsx'
|
|
@@ -18,6 +20,8 @@ import { FilterBar, PageHeader } from '../components/PageHeader.tsx'
|
|
|
18
20
|
import { Paginator } from '../components/Paginator.tsx'
|
|
19
21
|
import { ErrorPanel, LoadingPanel } from '../components/QueryState.tsx'
|
|
20
22
|
import { SegmentedControl } from '../components/SegmentedControl.tsx'
|
|
23
|
+
import { useBulkSelection } from '../lib/bulkSelection.ts'
|
|
24
|
+
import type { BulkFilter } from '../lib/bulkSelection.ts'
|
|
21
25
|
import { formatDateTime } from '../lib/dates.ts'
|
|
22
26
|
import { useListView } from '../lib/listView.ts'
|
|
23
27
|
import { serverSortOnly } from '../lib/sort.ts'
|
|
@@ -57,7 +61,11 @@ export function EventsPage(): React.JSX.Element {
|
|
|
57
61
|
const [sort, setSort] = useState<string | undefined>(undefined)
|
|
58
62
|
const navigate = useNavigate()
|
|
59
63
|
const timezone = useTimezone()
|
|
60
|
-
|
|
64
|
+
// One clock reading, not one per render. The Upcoming and Past filters put
|
|
65
|
+
// `now` in the list's query key, so a fresh `new Date()` on every render
|
|
66
|
+
// gave every render a new key, a new fetch, and another render: a refetch
|
|
67
|
+
// loop at frame rate. Choosing a scope takes a fresh reading.
|
|
68
|
+
const [now, setNow] = useState(() => new Date())
|
|
61
69
|
const [month, setMonth] = useState({ year: now.getFullYear(), month: now.getMonth() })
|
|
62
70
|
const createEvent = useCreateEvent()
|
|
63
71
|
|
|
@@ -80,6 +88,13 @@ export function EventsPage(): React.JSX.Element {
|
|
|
80
88
|
),
|
|
81
89
|
limit: board === 'calendar' ? 200 : undefined,
|
|
82
90
|
})
|
|
91
|
+
// The calendar has no checkboxes, so switching to it clears a selection.
|
|
92
|
+
const bulkFilter: BulkFilter = {
|
|
93
|
+
...(term.trim().length > 0 ? { q: term.trim() } : {}),
|
|
94
|
+
...(fromTo.from === undefined ? {} : { from: fromTo.from }),
|
|
95
|
+
...(fromTo.to === undefined ? {} : { to: fromTo.to }),
|
|
96
|
+
}
|
|
97
|
+
const bulk = useBulkSelection({ filter: bulkFilter, resetOn: [sort, board] })
|
|
83
98
|
|
|
84
99
|
async function addEvent(event: FormEvent): Promise<void> {
|
|
85
100
|
event.preventDefault()
|
|
@@ -109,7 +124,11 @@ export function EventsPage(): React.JSX.Element {
|
|
|
109
124
|
key: 'name',
|
|
110
125
|
header: 'Event',
|
|
111
126
|
sortKey: 'name',
|
|
112
|
-
render: (record) =>
|
|
127
|
+
render: (record) => (
|
|
128
|
+
<RecordLink to={`/events/${record.id}`} className="font-medium text-ink">
|
|
129
|
+
{record.name}
|
|
130
|
+
</RecordLink>
|
|
131
|
+
),
|
|
113
132
|
},
|
|
114
133
|
{
|
|
115
134
|
key: 'starts',
|
|
@@ -164,7 +183,10 @@ export function EventsPage(): React.JSX.Element {
|
|
|
164
183
|
<SegmentedControl
|
|
165
184
|
ariaLabel="Upcoming or past"
|
|
166
185
|
value={scope}
|
|
167
|
-
onChange={
|
|
186
|
+
onChange={(next) => {
|
|
187
|
+
setNow(new Date())
|
|
188
|
+
setScope(next)
|
|
189
|
+
}}
|
|
168
190
|
options={[
|
|
169
191
|
{ id: 'upcoming', label: 'Upcoming' },
|
|
170
192
|
{ id: 'past', label: 'Past' },
|
|
@@ -189,7 +211,15 @@ export function EventsPage(): React.JSX.Element {
|
|
|
189
211
|
}
|
|
190
212
|
/>
|
|
191
213
|
|
|
192
|
-
<
|
|
214
|
+
<BulkActions
|
|
215
|
+
targetType="event"
|
|
216
|
+
selection={bulk}
|
|
217
|
+
pageIds={events.records.map((record) => record.id)}
|
|
218
|
+
hasNextPage={events.hasNext}
|
|
219
|
+
noun={{ one: 'event', many: 'events' }}
|
|
220
|
+
>
|
|
221
|
+
<FilterBar value={term} onChange={setTerm} placeholder="Search events…" />
|
|
222
|
+
</BulkActions>
|
|
193
223
|
|
|
194
224
|
{adding && (
|
|
195
225
|
<form
|
|
@@ -262,6 +292,7 @@ export function EventsPage(): React.JSX.Element {
|
|
|
262
292
|
sort={sort}
|
|
263
293
|
onSortChange={setSort}
|
|
264
294
|
visibleColumnKeys={listView.visibleKeys}
|
|
295
|
+
selection={{ ...bulk, rowLabel: (record) => record.name }}
|
|
265
296
|
/>
|
|
266
297
|
<Paginator list={events} />
|
|
267
298
|
</>
|
package/src/pages/FormsPage.tsx
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Form } from '@kelpie/schemas'
|
|
2
2
|
import { useState } from 'react'
|
|
3
|
-
import { useNavigate } from 'react-router'
|
|
3
|
+
import { Link, useNavigate } from 'react-router'
|
|
4
4
|
|
|
5
5
|
import { useTimezone } from '../api/resources/account.ts'
|
|
6
6
|
import { useCreateForm, useForms } from '../api/resources/forms.ts'
|
|
@@ -185,6 +185,12 @@ export function FormsPage(): React.JSX.Element {
|
|
|
185
185
|
visibleKeys={listView.visibleKeys}
|
|
186
186
|
onChange={listView.setVisibleKeys}
|
|
187
187
|
/>
|
|
188
|
+
<Link
|
|
189
|
+
to="/forms/blocked-senders"
|
|
190
|
+
className="rounded-md border border-border px-2.5 py-1 text-[12px] font-medium text-ink-muted transition hover:border-border-strong hover:text-ink"
|
|
191
|
+
>
|
|
192
|
+
Blocked senders
|
|
193
|
+
</Link>
|
|
188
194
|
</>
|
|
189
195
|
}
|
|
190
196
|
/>
|
|
@@ -10,6 +10,8 @@ import { useCreateRaise, useRaises, useUpdateRaise } from '../api/resources/rais
|
|
|
10
10
|
import { useTimezone } from '../api/resources/account.ts'
|
|
11
11
|
import { AddCompanyRecordPanel } from '../components/AddRecordPanel.tsx'
|
|
12
12
|
import type { AddRecordValues } from '../components/AddRecordPanel.tsx'
|
|
13
|
+
import { CompanyLink, RecordLink } from '../components/CellLinks.tsx'
|
|
14
|
+
import { BulkActions } from '../components/BulkActions.tsx'
|
|
13
15
|
import { Chip } from '../components/Chip.tsx'
|
|
14
16
|
import type { ChipTone } from '../components/Chip.tsx'
|
|
15
17
|
import { ColumnPicker } from '../components/ColumnPicker.tsx'
|
|
@@ -20,6 +22,7 @@ import { PageHeader } from '../components/PageHeader.tsx'
|
|
|
20
22
|
import { Paginator } from '../components/Paginator.tsx'
|
|
21
23
|
import { ErrorPanel, LoadingPanel } from '../components/QueryState.tsx'
|
|
22
24
|
import { SegmentedControl } from '../components/SegmentedControl.tsx'
|
|
25
|
+
import { useBulkSelection } from '../lib/bulkSelection.ts'
|
|
23
26
|
import { formatDate, formatDay } from '../lib/dates.ts'
|
|
24
27
|
import { useListView } from '../lib/listView.ts'
|
|
25
28
|
import { formatMoney } from '../lib/money.ts'
|
|
@@ -111,6 +114,15 @@ export function FundraisingPage(): React.JSX.Element {
|
|
|
111
114
|
const visibleStageIds = new Set(visibleStages.map((stage) => stage.id))
|
|
112
115
|
const visibleRaises = raises.records.filter((raise) => visibleStageIds.has(raise.stageId))
|
|
113
116
|
|
|
117
|
+
// The board has no checkboxes, so a selection lives only in the list, and
|
|
118
|
+
// switching view clears it. The Open scope is a filter on stage, so a
|
|
119
|
+
// filter selection names the open stages the list is showing.
|
|
120
|
+
const openStageIds = visibleStages.map((stage) => stage.id)
|
|
121
|
+
const bulk = useBulkSelection({
|
|
122
|
+
filter: scope === 'open' && openStageIds.length > 0 ? { stage_id: openStageIds } : {},
|
|
123
|
+
resetOn: [sort, view],
|
|
124
|
+
})
|
|
125
|
+
|
|
114
126
|
// The next-step column asks about the records on screen by id. `?target_id=`
|
|
115
127
|
// takes at most one page of them (`docs/agents/api-and-webhooks.md`), so past that ceiling the rest
|
|
116
128
|
// read as having no plan; the note under the table says so.
|
|
@@ -151,13 +163,19 @@ export function FundraisingPage(): React.JSX.Element {
|
|
|
151
163
|
key: 'name',
|
|
152
164
|
header: 'Raise',
|
|
153
165
|
sortKey: 'name',
|
|
154
|
-
render: (raise) =>
|
|
166
|
+
render: (raise) => (
|
|
167
|
+
<RecordLink to={`/fundraising/${raise.id}`} className="font-medium text-ink">
|
|
168
|
+
{raise.name}
|
|
169
|
+
</RecordLink>
|
|
170
|
+
),
|
|
155
171
|
},
|
|
156
172
|
{
|
|
157
173
|
key: 'company',
|
|
158
174
|
header: 'Firm',
|
|
159
175
|
getSortValue: (raise) => companyNameById.get(raise.companyId) ?? null,
|
|
160
|
-
render: (raise) =>
|
|
176
|
+
render: (raise) => (
|
|
177
|
+
<CompanyLink id={raise.companyId} name={companyNameById.get(raise.companyId)} />
|
|
178
|
+
),
|
|
161
179
|
},
|
|
162
180
|
{
|
|
163
181
|
key: 'stage',
|
|
@@ -416,6 +434,15 @@ export function FundraisingPage(): React.JSX.Element {
|
|
|
416
434
|
<LoadingPanel label="Loading raises…" />
|
|
417
435
|
) : (
|
|
418
436
|
<>
|
|
437
|
+
{view === 'list' && (
|
|
438
|
+
<BulkActions
|
|
439
|
+
targetType="raise"
|
|
440
|
+
selection={bulk}
|
|
441
|
+
pageIds={visibleRaises.map((raise) => raise.id)}
|
|
442
|
+
hasNextPage={raises.hasNext}
|
|
443
|
+
noun={{ one: 'raise', many: 'raises' }}
|
|
444
|
+
/>
|
|
445
|
+
)}
|
|
419
446
|
{view === 'list' && <Paginator list={raises} placement="top" />}
|
|
420
447
|
{view === 'columns' ? (
|
|
421
448
|
<KanbanBoard
|
|
@@ -471,6 +498,7 @@ export function FundraisingPage(): React.JSX.Element {
|
|
|
471
498
|
listView.setSort(next)
|
|
472
499
|
}}
|
|
473
500
|
visibleColumnKeys={listView.visibleKeys}
|
|
501
|
+
selection={{ ...bulk, rowLabel: (raise) => raise.name }}
|
|
474
502
|
/>
|
|
475
503
|
)}
|
|
476
504
|
{updateRaise.error !== null && (
|
package/src/pages/HiringPage.tsx
CHANGED
|
@@ -5,6 +5,7 @@ import { useNavigate } from 'react-router'
|
|
|
5
5
|
|
|
6
6
|
import { useTimezone } from '../api/resources/account.ts'
|
|
7
7
|
import { useCreateRole, useRoles } from '../api/resources/roles.ts'
|
|
8
|
+
import { RecordLink } from '../components/CellLinks.tsx'
|
|
8
9
|
import { Chip } from '../components/Chip.tsx'
|
|
9
10
|
import { ColumnPicker } from '../components/ColumnPicker.tsx'
|
|
10
11
|
import { DataTable } from '../components/DataTable.tsx'
|
|
@@ -67,7 +68,11 @@ export function HiringPage(): React.JSX.Element {
|
|
|
67
68
|
key: 'title',
|
|
68
69
|
header: 'Role',
|
|
69
70
|
sortKey: 'title',
|
|
70
|
-
render: (role) =>
|
|
71
|
+
render: (role) => (
|
|
72
|
+
<RecordLink to={`/hiring/${role.id}`} className="font-medium text-ink">
|
|
73
|
+
{role.title}
|
|
74
|
+
</RecordLink>
|
|
75
|
+
),
|
|
71
76
|
},
|
|
72
77
|
{
|
|
73
78
|
key: 'status',
|
package/src/pages/ListDetail.tsx
CHANGED
|
@@ -20,7 +20,10 @@ import { useOpportunities } from '../api/resources/opportunities.ts'
|
|
|
20
20
|
import { usePartnerships } from '../api/resources/partnerships.ts'
|
|
21
21
|
import { usePeople } from '../api/resources/people.ts'
|
|
22
22
|
import { useRaises } from '../api/resources/raises.ts'
|
|
23
|
+
import { BulkActions } from '../components/BulkActions.tsx'
|
|
24
|
+
import type { BulkActionPreset, RecordNoun } from '../components/BulkActions.tsx'
|
|
23
25
|
import { Chip } from '../components/Chip.tsx'
|
|
26
|
+
import { CardSelectionHeader, RowCheckbox } from '../components/DataTable.tsx'
|
|
24
27
|
import { DeleteRecord } from '../components/DeleteRecord.tsx'
|
|
25
28
|
import { EntitySearch } from '../components/EntitySearch.tsx'
|
|
26
29
|
import type { SearchOption } from '../components/EntitySearch.tsx'
|
|
@@ -28,6 +31,7 @@ import { InlineEdit } from '../components/InlineEdit.tsx'
|
|
|
28
31
|
import { Paginator } from '../components/Paginator.tsx'
|
|
29
32
|
import { ErrorPanel, LoadingPanel, NotFoundPanel } from '../components/QueryState.tsx'
|
|
30
33
|
import { SectionHeader } from '../components/SectionHeader.tsx'
|
|
34
|
+
import { useBulkSelection } from '../lib/bulkSelection.ts'
|
|
31
35
|
import { formatRelativeTime } from '../lib/dates.ts'
|
|
32
36
|
import type { List, ListInput } from '@kelpie/schemas'
|
|
33
37
|
|
|
@@ -92,7 +96,7 @@ export function ListDetail(): React.JSX.Element {
|
|
|
92
96
|
|
|
93
97
|
<ListStatsRow listId={record.id} />
|
|
94
98
|
|
|
95
|
-
<ListMembers listId={record.id} targetType={record.targetType} />
|
|
99
|
+
<ListMembers listId={record.id} listName={record.name} targetType={record.targetType} />
|
|
96
100
|
</div>
|
|
97
101
|
)
|
|
98
102
|
}
|
|
@@ -193,16 +197,48 @@ function StatTile({
|
|
|
193
197
|
)
|
|
194
198
|
}
|
|
195
199
|
|
|
200
|
+
/** The action that takes records off a list, fixed to this one on its page. */
|
|
201
|
+
const REMOVE_FROM_LIST = 'core.remove_from_list'
|
|
202
|
+
|
|
203
|
+
/** No filter: no list `GET` of a record type filters by list membership. */
|
|
204
|
+
const NO_FILTER = {}
|
|
205
|
+
|
|
206
|
+
/** How the action bar counts a list's records: "3 people selected". */
|
|
207
|
+
const MEMBER_NOUNS: Readonly<Record<RecordTargetType, RecordNoun>> = {
|
|
208
|
+
person: { one: 'person', many: 'people' },
|
|
209
|
+
company: { one: 'company', many: 'companies' },
|
|
210
|
+
deal: { one: 'deal', many: 'deals' },
|
|
211
|
+
opportunity: { one: 'opportunity', many: 'opportunities' },
|
|
212
|
+
partnership: { one: 'partnership', many: 'partnerships' },
|
|
213
|
+
raise: { one: 'raise', many: 'raises' },
|
|
214
|
+
enquiry: { one: 'enquiry', many: 'enquiries' },
|
|
215
|
+
candidate: { one: 'candidate', many: 'candidates' },
|
|
216
|
+
event: { one: 'event', many: 'events' },
|
|
217
|
+
attendance: { one: 'attendance', many: 'attendances' },
|
|
218
|
+
}
|
|
219
|
+
|
|
196
220
|
function ListMembers({
|
|
197
221
|
listId,
|
|
222
|
+
listName,
|
|
198
223
|
targetType,
|
|
199
224
|
}: {
|
|
200
225
|
readonly listId: string
|
|
226
|
+
readonly listName: string
|
|
201
227
|
readonly targetType: RecordTargetType
|
|
202
228
|
}): React.JSX.Element {
|
|
203
229
|
const members = useListMembers(listId)
|
|
204
230
|
const addMember = useAddListMember()
|
|
205
231
|
const [adding, setAdding] = useState(false)
|
|
232
|
+
// A bulk job runs on the records, so the selection holds their ids, not the memberships'.
|
|
233
|
+
const bulk = useBulkSelection({ filter: NO_FILTER })
|
|
234
|
+
const pageIds = members.records.map((member) => member.targetId)
|
|
235
|
+
const presets: Readonly<Record<string, BulkActionPreset>> = {
|
|
236
|
+
[REMOVE_FROM_LIST]: {
|
|
237
|
+
label: 'Remove from this list',
|
|
238
|
+
params: { list_id: listId },
|
|
239
|
+
choices: { list_id: listName },
|
|
240
|
+
},
|
|
241
|
+
}
|
|
206
242
|
|
|
207
243
|
const attached = new Set(members.records.map((member) => member.targetId))
|
|
208
244
|
|
|
@@ -225,6 +261,18 @@ function ListMembers({
|
|
|
225
261
|
addLabel={`Add ${RECORD_TARGET_TYPE_LABELS[targetType].toLowerCase()}`}
|
|
226
262
|
/>
|
|
227
263
|
|
|
264
|
+
{/* The record type's own actions, with "Remove from this list" among
|
|
265
|
+
them. "Select all that match" is not offered: it would select every
|
|
266
|
+
record of the type, since no filter narrows a type to one list. */}
|
|
267
|
+
<BulkActions
|
|
268
|
+
targetType={targetType}
|
|
269
|
+
selection={bulk}
|
|
270
|
+
pageIds={pageIds}
|
|
271
|
+
hasNextPage={false}
|
|
272
|
+
noun={MEMBER_NOUNS[targetType]}
|
|
273
|
+
presets={presets}
|
|
274
|
+
/>
|
|
275
|
+
|
|
228
276
|
{adding && (
|
|
229
277
|
<div className="mb-3 flex gap-2">
|
|
230
278
|
<div className="min-w-0 flex-1">
|
|
@@ -260,9 +308,20 @@ function ListMembers({
|
|
|
260
308
|
) : (
|
|
261
309
|
<>
|
|
262
310
|
<Paginator list={members} placement="top" />
|
|
311
|
+
{pageIds.length > 0 && (
|
|
312
|
+
<CardSelectionHeader ids={pageIds} isSelected={bulk.isSelected} onTogglePage={bulk.onTogglePage} />
|
|
313
|
+
)}
|
|
263
314
|
<ul className="overflow-hidden rounded-md border border-border">
|
|
264
315
|
{members.records.map((member) => (
|
|
265
|
-
<MemberRow
|
|
316
|
+
<MemberRow
|
|
317
|
+
key={member.id}
|
|
318
|
+
listId={listId}
|
|
319
|
+
member={member}
|
|
320
|
+
selected={bulk.isSelected(member.targetId)}
|
|
321
|
+
onToggle={() => {
|
|
322
|
+
bulk.onToggle(member.targetId)
|
|
323
|
+
}}
|
|
324
|
+
/>
|
|
266
325
|
))}
|
|
267
326
|
</ul>
|
|
268
327
|
</>
|
|
@@ -276,15 +335,20 @@ function ListMembers({
|
|
|
276
335
|
function MemberRow({
|
|
277
336
|
listId,
|
|
278
337
|
member,
|
|
338
|
+
selected,
|
|
339
|
+
onToggle,
|
|
279
340
|
}: {
|
|
280
341
|
readonly listId: string
|
|
281
342
|
readonly member: ListMember
|
|
343
|
+
readonly selected: boolean
|
|
344
|
+
readonly onToggle: () => void
|
|
282
345
|
}): React.JSX.Element {
|
|
283
346
|
const remove = useRemoveListMember()
|
|
284
347
|
|
|
285
348
|
return (
|
|
286
|
-
<li className=
|
|
287
|
-
<div className="flex flex-wrap items-center
|
|
349
|
+
<li className={`border-b border-border px-4 py-3 last:border-0 ${selected ? 'bg-accent-soft/40' : ''}`}>
|
|
350
|
+
<div className="flex flex-wrap items-center gap-3">
|
|
351
|
+
<RowCheckbox label={member.targetName ?? member.targetId} checked={selected} onToggle={onToggle} />
|
|
288
352
|
<Link
|
|
289
353
|
to={detailPathFor(member.targetType, member.targetId)}
|
|
290
354
|
className="text-left text-[13px] font-medium text-ink hover:text-accent"
|
|
@@ -296,7 +360,7 @@ function MemberRow({
|
|
|
296
360
|
onClick={() => {
|
|
297
361
|
remove.run({ listId, id: member.id })
|
|
298
362
|
}}
|
|
299
|
-
className="text-[11px] font-medium text-danger hover:underline"
|
|
363
|
+
className="ml-auto text-[11px] font-medium text-danger hover:underline"
|
|
300
364
|
>
|
|
301
365
|
Remove
|
|
302
366
|
</button>
|
package/src/pages/ListsPage.tsx
CHANGED
|
@@ -9,6 +9,7 @@ import { useNavigate } from 'react-router'
|
|
|
9
9
|
|
|
10
10
|
import { useTimezone } from '../api/resources/account.ts'
|
|
11
11
|
import { useCreateList, useLists } from '../api/resources/lists.ts'
|
|
12
|
+
import { RecordLink } from '../components/CellLinks.tsx'
|
|
12
13
|
import { Chip } from '../components/Chip.tsx'
|
|
13
14
|
import { ColumnPicker } from '../components/ColumnPicker.tsx'
|
|
14
15
|
import { DataTable } from '../components/DataTable.tsx'
|
|
@@ -49,7 +50,11 @@ export function ListsPage(): React.JSX.Element {
|
|
|
49
50
|
key: 'name',
|
|
50
51
|
header: 'Name',
|
|
51
52
|
sortKey: 'name',
|
|
52
|
-
render: (list) =>
|
|
53
|
+
render: (list) => (
|
|
54
|
+
<RecordLink to={`/lists/${list.id}`} className="font-medium text-ink">
|
|
55
|
+
{list.name}
|
|
56
|
+
</RecordLink>
|
|
57
|
+
),
|
|
53
58
|
},
|
|
54
59
|
{
|
|
55
60
|
key: 'type',
|