Guide · Search and filters

Search, filters, and ordering for list views

Use one rule for every signed in list. Search finds a record by a partial term. Filter narrows a list by a listed value. Sort orders the list by a listed field. This page unifies the terms, matching, and ordering already stated across the navigation map, the assign runs guide, the merge duplicates guide, and the data fields guide. This page also states how a filter set is written in the address, so a view can be refreshed, paged, and shared.

Audit of the lists as described in this pack

Each signed in list was read against the booking, customer, chauffeur, and vehicle fields it uses. The gaps below are the reason for one rule.

Bookings and the day board

Navigation map states filter by date, status, chauffeur, vehicle, service type, or flag. Assign runs states the schedule defaults to pickup time ascending, with call time first on each row, and only listed filters, sort fields, and directions are accepted. No text search term and no partial matching rule is stated for a booking. The unified contract in assign runs also requires a client filter by one customer record and a pickup date range, with assignee and vehicle as separate filters. This page adds that client filter and date range below so the Bookings list, the day board, and the Invoices list use the same set.

Customers and clients

Navigation map states search by name, phone, and email before a record is added. Merge duplicates states name, phone, and email keys are normalized for comparison, with phone as digits only and email in lower case. The search list itself does not state that normalization, so the same phone typed with spaces or dashes may not match.

Chauffeurs

Navigation map states search by name, phone, email, and certificate number. Merge duplicates states certificate numbers compare in upper case with spaces and hyphens removed, and name, phone, and email compare as for customers. The search list does not state that rule.

Vehicles

Navigation map states search by plate, permit number, and vehicle name, and check odometer, permit and inspection dates, and readiness. Merge duplicates states plate and permit compare in upper case with spaces and hyphens removed, and colour and type alone do not group records. The search list does not state that rule.

Invoices and receipts

Navigation map states filter issued and paid invoices by customer and month, from Complete bookings only, with fare, gratuity, and total on separate lines. No text search term, no sort field, and no partial matching rule is stated for this list.

Guide search as the only live search in the pack

The guides index search is case insensitive, collapses extra spaces, matches a partial term inside a title or description, and ranks exact, start, title, description, and section matches when words are present. Signed in record lists have no equivalent ranking rule, and must not use relevance ranking, since a record list must keep its stated sort so the same list reads the same way on every page.

One definition for search, filter, and sort

Use these three terms on every list, on every screen, and in every guide. Do not use search for a filter or filter for a search.

Search

Search takes a text term entered by a person. Matching is partial, meaning the normalized term matches anywhere inside the normalized field value. Search never changes the sort, never widens a list beyond the signed in workspace, and never matches a record from another workspace.

Filter

Filter takes a listed value only, using the canonical parameter name for that group: pickup_date_start and pickup_date_end for the pickup date range, status, service_type, client_id for the customer record, assignee_id for the assigned chauffeur, vehicle_id for the vehicle, and flagged_only for the flag group. On Invoices, the payment groups are invoice_state (Issued, Paid) and payment_status (Unpaid, Paid) and are separate groups; status never takes Paid, Unpaid, or Issued. Place and region are not filter parameters: search places with q (for example q for Lee's Summit or q for MCI) because bookings store pickup place text, not a region column. The plain words client, assignee, vehicle, flag, chauffeur, service type, pickup date range, region, and driver are display labels, not parameter names, and are invalid in the address. A value outside the listed set is invalid. Filter never does partial matching. Filter groups combine with AND, so a record must match every group that has a value. Inside status and inside service_type, any selected value matches. Clearing one group keeps the other groups.

Sort

Sort takes a listed field and a direction, asc or desc only. A sort field or direction outside the listed set is invalid. Sort never reorders stops on a booking, never changes a pickup date, and never re-ranks records by relevance when a search term is present.

  • Search term: the text as typed, after the normalization for that field type stated below
  • Normalized term: the term after trim, case, space, digit, or hyphen removal for that field type
  • Partial matching: the normalized term is a substring of the normalized field value, in any position
  • Exact filter value: the canonical stored value from the data fields guide and the normalized values guide, spelled as listed there
  • Combined filters: pickup_date_start, pickup_date_end, status, service_type, client_id, assignee_id, vehicle_id, flagged_only, and on Invoices invoice_state and payment_status, use AND across groups. Inside status, any selected status matches. Inside service_type, any selected service matches. Inside invoice_state or payment_status, any selected value matches. Status values are Quote, Confirmed, Driver confirmed, En route, On location, Passenger on board, Complete, Cancelled; payment values are never status values.
  • Groups combine with AND. A record must match every group that has a value, and any selected value inside one group matches. Search and filters combine with AND, and sort never changes which records match.

Normalization for every searchable field

Build the key in this order, trim, remove or collapse the stated characters, change case as stated, then compare the whole key. This is the same comparison already stated in the merge duplicates guide, now applied to search as well as to duplicate grouping.

Names: customer, booker, passenger, chauffeur

Trim leading and trailing spaces, collapse each run of spaces to one space, compare in lower case with first and last names in the same order. A middle initial or a company name stays in the key. Search for a partial name matches inside the normalized full name.

Phone numbers

Remove spaces, dashes, brackets, and dots, keep an extension as a separate part, compare digits only. Ten digits compare as 1 plus those ten digits. Eleven digits starting with 1 compare as those digits. A main line and an extension do not match. A blank phone on either side does not match on phone.

Email addresses

Trim spaces, remove internal spaces, compare the full address in lower case, including the part before the at sign and the part after it. Search for a partial email matches inside the normalized full address. A similar address with a different domain does not match on a full term.

Plate, permit number, and certificate number

Trim spaces, use upper case, remove spaces and hyphens for comparison. Colour and type are not part of a vehicle search key, since several vehicles can share a colour and type with different plates. Search for a partial plate, permit, or certificate matches inside the normalized value.

Pickup, drop off, stops, and place names

Use the canonical pickup point names from the data fields guide, MCI, Downtown, Crown Center, Country Club Plaza, Power and Light District, Convention Center, Overland Park, Leawood, Lee's Summit, and Independence, and full addresses as saved on the booking. Trim and collapse spaces and compare in lower case. A place not in the supplied records is not added from general knowledge.

Status, service, and flag values

These are filter values, not search terms. Use the canonical values from the data fields guide and the normalized values guide, Quote, Confirmed, Driver confirmed, En route, On location, Passenger on board, Complete, and Cancelled for booking status, and MCI airport arrival, MCI airport departure, Hourly as directed, Point to point, and Weddings and events for service. A legacy variant displays as the canonical value and is never saved as a new value.

  • When a key is blank on the record or in the term, the records do not match on that key
  • Case, extra spaces, phone punctuation, and plate or certificate hyphens alone never create a new record and never block a match
  • The display value stays as entered on the record kept. Normalization is for comparison and search only

Searchable fields for each list

Only the fields listed for a list can be searched on that list. A field listed for one list is not searchable on another list unless it is listed there too.

Bookings and the day board

Search: customer name, pickup, drop off, stops in saved order, chauffeur name, vehicle name or plate, service type, flight airline and flight number, and reference where present on the record. Filter (canonical names): pickup_date_start, pickup_date_end, status, service_type, client_id, assignee_id, vehicle_id, flagged_only. Pickup date range uses pickup date start and pickup date end, inclusive, in the company timezone saved in the company profile, not request date and not device timezone. On the day board the default is the selected pickup date as both start and end. Client is one customer record, picked by searching name, phone, or email and then selecting that record, never by a typed name alone. Default for client is none, which means no client filter. Assignee is one assigned chauffeur, picked the same way. Default for assignee is none. The only non-ID value accepted is assignee_id with value unassigned (exact lowercase) to select runs with no chauffeur; it is validated before the existence check and combines with AND like any other value. Omitting assignee_id means no driver filter; do not send assignee_id with an empty value. Unassigned is shown only as an explicit assignee choice when it is selected, never as the default, so the default never hides assigned runs. Vehicle stays a separate filter from assignee. Flagged only is the flag group, default off. No region parameter exists; to narrow by place, search pickup place text with q.

Customers

Search: name, phone, and email, normalized as above. Filter: none beyond workspace scope. Use the search before a record is added, as in the merge duplicates guide, so the same customer is not added twice.

Chauffeurs

Search: name, phone, email, and certificate number, normalized as above. Filter: none beyond workspace scope and active state where the list states it. Driver confirmed is a status value only and is never a search term for a person.

Vehicles

Search: plate, permit number, and vehicle name, normalized as above. Filter: none beyond workspace scope and readiness for the pickup date where the list states it. Colour and type alone are not a search key.

Invoices and receipts

Search: customer name on the invoice, where the list states a customer search. Filter (canonical names): client_id and pickup_date_start, pickup_date_end (same names and defaults as Bookings for client and date; a month view sets start and end to the first and last pickup date in that month, it is not a separate invoice date field). Invoice state, Issued and Paid, and payment status, Unpaid and Paid, are two separate filter groups invoice_state and payment_status with those exact values. Payments have no separate list. Read payments on the Invoices list with the payment status filter. Amounts come from Complete bookings only and are never searched as a term.

Schedule and My day

Schedule uses the bookings search and filter set for the selected pickup date, with the pickup date range defaulting to that date as both start and end. My day shows only own runs for the signed in chauffeur, so search on My day is limited to the same booking text fields inside that scope and never widens the scope to another chauffeur run. Clear search removes only the search term and keeps every filter. Clear filters resets every filter group to its default and states the new total count. Clear all is the single action that resets q, every filter group, sort and direction, and pagination to their defaults and states the new total count.

Matching, invalid input, and empty results

Use the same handling on every list, as already stated for list parameters in the assign runs guide.

Partial matching for search

A search term matches when the normalized term is a substring of the normalized field value. An empty search term matches every record in scope and shows the list in its stated sort order. Multiple words in a search term match only when the normalized full term matches, so the term is one substring, not a set of separate words joined across fields.

Exact matching for filters

A filter matches only the canonical value listed for that field. A status, service type, or flag outside the listed set is invalid, even when it looks similar to a listed value. A record is shown only when it matches every filter group that has a value, with AND across groups and any selected value inside status and inside service_type. Clearing one group, such as removing the client, keeps the other groups as they are. If pickup date start is after pickup date end, show an error that names the date field (pickup_date_start), show no list, and keep the other entries.

Invalid parameter handling

An invalid limit, offset, filter, sort field, or sort direction returns an error in plain words that names the field to correct, with no partial list and no silent change to a default. A missing optional filter or search term uses the stated default for that list.

Empty result handling

A valid search or filter that matches no rows returns an empty list with total 0, has_more false, and the next step for that list, not an error. When search is active, the headline is No bookings match that search and the primary action is Clear search, which removes the query and keeps the filters. When a filter is active, the headline is No bookings match these filters, the text names the active filters (by canonical name), and the primary action is Clear filters, which resets every group to its default and states the new total count. When neither search nor any filter is active and the total is 0, use the unfiltered empty state in the empty states guide, such as No bookings yet, with Create a booking as the next step. For invoices, the unfiltered empty state states that an invoice appears only after a booking reaches Complete.

Ordering and pagination for every list

Ordering is the same on every page of a list, and the export matches the screen.

Schedule and day board

Default sort is pickup time ascending, in pickup order, with call time shown first on each row. Call time is pickup time minus the lead hours setting, 3 hours by default. This order applies with or without a search term, so a search narrows the list without re-ranking it. Sort field is pickup_at and direction is dir=asc.

General lists: bookings list, customers, chauffeurs, vehicles, invoices

Default sort is updated time descending, as stated for general lists in the assign runs guide, unless the list is the schedule or day board, which uses pickup time ascending above. The sort field and direction are stated on the screen for each list. Sort fields allowed are pickup_at, call_time, and updated_at only; direction allowed is asc or desc only.

Guide search is not a record list

The guides index may rank guides by match when words are present. That ranking applies to guides only. It must not be copied to bookings, customers, chauffeurs, vehicles, or invoices, where the stated sort above controls.

Pagination

Limit defaults to 50, minimum 1, maximum 200. Offset defaults to 0, minimum 0. The response states limit, offset, total count for the filtered list (total for those filters only), and has_more, so the screen shows the next page without guessing. Every page uses the same workspace scope, the same search, filter, and sort. Total always describes the current filter set, and is unchanged by fields selection.

  • Every list states its period, search term, filters, grouping, limit, offset, and sort on the screen
  • Every query stays inside the signed in workspace and uses the same tenant filter on every page
  • Every number shows its numerator and denominator beside it and opens the filtered list behind it, with the same sort on each page

Shareable links: put the filter set in the address

Use this section for every signed in list. The guides index search already follows this rule for its words and its five filter groups. Record lists must follow the same rule, so a filtered view survives a refresh, survives a page change, and can be shared with a person in the same workspace and role scope.

One address for one list view

The search term, every selected filter group, the sort field and direction, and the limit and offset are written in the address query string, in canonical parameter order: q, pickup_date_start, pickup_date_end, status, service_type, client_id, assignee_id, vehicle_id, flagged_only, invoice_state, payment_status, sort, dir, limit, offset, fields. Sort fields are pickup_at, call_time, updated_at; dir is asc or desc. Multi-value status and service_type use a comma list in canonical order with no spaces, for example status=Confirmed,Driver confirmed. A choice left at its default is left out of the address, so the address stays short and a default view has no query string (except the day board pickup date default). For example, a bookings view filtered to one status and one service type and sorted by pickup time ascending is written as status=Confirmed and service_type=hourly and sort=pickup_at and dir=asc joined with ampersands, and omits every choice left at its default. Plain words like service type, pickup date start, client, assignee, vehicle, flag, region, driver, sort direction, or customer are not parameter names and must never be written in the address.

Groups combine, values inside a group combine the other way

Groups combine with AND, and any selected value inside one group matches. A record must match the search term and every filter group that has a value to appear. Inside status, any selected status matches. Inside service_type, any selected service matches. Clearing one group does not clear another group. Sort never changes which records match.

Refresh, back, and pagination keep the set

A refresh restores the same search, filters, sort, limit, and offset from the address. Back and forward restore the previous set in the same way. Changing the page keeps the search, filters, and sort and changes only limit and offset. Changing the sort keeps the search and filters and changes only the sort field and direction. The guides index search follows this rule, where typing replaces the current address entry and a committed action such as Show guides, Enter, Clear, Escape, or a section toggle adds a new entry, so back can undo it.

Clear search, Clear filters, and Clear all do different jobs

Clear search removes only q and keeps every filter group, sort, pagination, and counts basis, so the filtered list can be read again without retyping a filter; total and has_more are then for that filtered set with no search term. Clear filters removes every filter group and returns each group to its default, keeps sort and pagination unless Clear all is used, and states the new total count for that set. Clear all is the single action that resets q, every filter group, sort and direction, and pagination (limit 50, offset 0) to their defaults, removes the query string except the day board pickup date default, states the new total count, and moves focus to the search box. A filtered empty list offers Clear filters, and does not offer Create a booking or Create an invoice in that state. When no search and no filter are active, Clear all is hidden or disabled and the unfiltered next step is offered instead.

A shared link stays inside one workspace

A shared link carries only filter values, sort, limit, and offset. It carries no record data, no contact detail, and no booking token. The recipient sees only records for the signed in workspace and role scope. My day scope is never widened by a shared link, and a chauffeur recipient sees only own runs. An unknown filter name or a value outside the listed set is invalid in a shared link in the same way as in the address.

Invalid values in a shared link

An invalid limit, offset, filter, sort field, or sort direction returns an error in plain words that names the field to correct, with no partial list and no silent change to a default. A valid set that matches no rows returns an empty list with total 0, has_more false, and the next step for that list, not an error. A missing optional filter uses the stated default for that list, in a shared link as on the screen.

  • Refresh test: set a search term, two filter groups, and a non default sort, refresh, and confirm the same list, total, and sort return
  • Pagination test: move to the second page and confirm the search, filters, and sort are unchanged and only limit and offset changed
  • Clear test: use Clear search and confirm only the search term is removed, then use Clear filters and confirm every group returns to its default and the new total is stated, then use Clear all and confirm the address has no query string (except the day board default), limit is 50, offset is 0, and focus is on the search box
  • Shared link test: open a shared link in the same workspace and role scope and confirm the same list returns, then open it in another workspace and confirm no record from the first workspace appears
  • Invalid test: open a link with an unknown filter name and a link with a value outside the listed set and confirm each shows a plain error naming the field and shows no partial list

Consistency checks before you ship a list change

Run these checks on each list. A list that fails a check is not ready.

  • The screen names the list, the search term, the filters (by canonical parameter name), and the sort in the same words as this page
  • Search with a partial name, a phone with spaces or dashes, an email in upper case, and a plate typed without hyphens each match the same record as the full normalized value
  • A filter outside the listed set returns a plain error naming the field, with no partial list
  • A valid search with no match returns an empty list, total 0, Clear search as the next step, and not an error and not zero as a result
  • Client filter (client_id) picks one customer record by search and selection, and the default none shows runs for every customer
  • Driver filter (assignee_id) picks one chauffeur, assignee_id=unassigned selects no-chauffeur runs, and the default none shows runs for every chauffeur
  • Pickup date range start after end shows an error naming pickup_date_start and shows no list
  • Clear search keeps every filter, Clear filters resets every group to its default and states the new total count, and Clear all resets q, groups, sort, and pagination in one action
  • Flagged only is the flag group, default off, and a date with runs but no flagged run is a filtered empty list, not No bookings for this date yet
  • Inside status and inside service_type, any selected value matches, and groups combine with AND
  • The schedule and day board read in pickup order with call time first, with and without a search term
  • General lists read in updated time descending, with the same order on every page and in the export
  • Search never returns a record from another workspace, another chauffeur run on My day, or a vehicle or chauffeur record outside the signed in role scope
  • Saving the first record after an empty list removes the empty state and shows the record in the stated sort order
  • A refresh, a page change, and a shared link each keep the same search, filters, and sort, and Clear filters returns to the defaults stated in the shareable links section above

Do not use a second term for the same field

Use search for text terms and filter for listed values on every list. A screen that says filter for a text term, or search for a status value, does not match this page.

Do not add a field that is not on the record

Search uses only fields already stated for that list on this page. A field with no saved record is not searched, and a blank stays blank until staff confirm the fact on the named record.

Search the record, filter the list, sort the same way

Use one search term, one filter set, and one sort for every list, then open the record behind the count.