mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-04 09:54:14 +00:00
fix(ci): align place form pairs and exports
Point the paired-view manifest at the hook that now owns the desktop place form. Keep internals private and lower the unused-types baseline for the types now removed or used.
This commit is contained in:
@@ -12,7 +12,7 @@ export function planField(preview: AssistantChangePreview, field: AssistantChang
|
||||
return preview.rows.find((row) => row.labelKey === field)?.after;
|
||||
}
|
||||
|
||||
export function dayNoteBody(preview: AssistantChangePreview) {
|
||||
function dayNoteBody(preview: AssistantChangePreview) {
|
||||
return planField(preview, 'content') ?? (preview.verbKey === 'addDayNote' ? planField(preview, 'time') : undefined);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,8 +35,6 @@ import { SoftPill, tintOf } from './planParts';
|
||||
|
||||
import { usePlaceFormModal, type PlaceFormModalProps } from './usePlaceFormModal';
|
||||
|
||||
export type { PlaceSubmitData } from './usePlaceFormModal';
|
||||
|
||||
/** The mark itself. Quiet on purpose: it answers a question, it does not advertise. */
|
||||
function SourceBadge({ label }: { label: string | null }) {
|
||||
if (!label) return null;
|
||||
|
||||
@@ -39,7 +39,7 @@ import { usePlaceRefresh } from './usePlaceRefresh';
|
||||
import { usePlaceSearch } from './usePlaceSearch';
|
||||
import { usePlaceTags } from './usePlaceTags';
|
||||
|
||||
export interface PlaceSubmitData extends PlaceFormPayload {
|
||||
interface PlaceSubmitData extends PlaceFormPayload {
|
||||
/**
|
||||
* Where a road-trip service stop belongs on the drive, worked out from the
|
||||
* coordinates being saved. Travels the same way `_pendingFiles` does: the planner
|
||||
|
||||
Reference in New Issue
Block a user