mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-03 17:41:51 +00:00
feat: quality of life sweep from the feature discussions
Small requests from the discussions, each built end to end: planner and map (cycling mode, date first headings, clear a day, stay times per day, off-route stops, map lock, compact unplanned markers, pending stays, cable car, transit quick picks), places (location filter, category from OSM, open in maps, geo: link, image from an attachment, enrichment on file import, places near a pin, place name language, Amap first in China), lists and costs (packed counter, inherited sharing, Markdown to-dos, payment notes, bookings CSV, my plan PDF), sharing (unplanned places, travel only, without photos), journey (photo zoom, drafts, photo order, trip suggestion, day jump), atlas (region counter, region bucket list, places per country), vacay half company holidays, studio copy and paste plus the book's own layouts, and RESTORE_FROM_BACKUP for a first start restore.
This commit is contained in:
@@ -263,6 +263,8 @@ export const budgetSettlementSchema = z.object({
|
||||
// vs. created_at. Null/absent on rows recorded before this column existed; the
|
||||
// ledger falls back to `created_at`'s date for those.
|
||||
settled_at: z.string().nullable().optional(),
|
||||
// A free-text note on the payment (#2340). Null when none was written.
|
||||
note: z.string().nullable().optional(),
|
||||
created_by_user_id: z.number().nullable().optional(),
|
||||
from_username: z.string().optional(),
|
||||
from_avatar_url: z.string().nullable().optional(),
|
||||
@@ -280,6 +282,8 @@ export const budgetCreateSettlementRequestSchema = z.object({
|
||||
// The day the transfer happened. Null when the caller sets none; the ledger then
|
||||
// uses the day it was recorded, which is where every older payment already sits.
|
||||
settled_at: z.string().nullable().optional(),
|
||||
// A free-text note on the payment (#2340); blank stores none.
|
||||
note: z.string().max(500).nullable().optional(),
|
||||
// Rates to freeze `currency` with when the server has none of its own.
|
||||
fallback_fx: budgetFallbackFxSchema.optional(),
|
||||
});
|
||||
@@ -292,6 +296,8 @@ export const budgetUpdateSettlementRequestSchema = z.object({
|
||||
amount: z.number(),
|
||||
currency: z.string().nullable().optional(),
|
||||
settled_at: z.string().nullable().optional(),
|
||||
// Omitted leaves the note as it is; null or blank clears it (#2340).
|
||||
note: z.string().max(500).nullable().optional(),
|
||||
fallback_fx: budgetFallbackFxSchema.optional(),
|
||||
});
|
||||
export type BudgetUpdateSettlementRequest = z.infer<typeof budgetUpdateSettlementRequestSchema>;
|
||||
|
||||
Reference in New Issue
Block a user