Skip to content

plugin-calendar: getCalendarConfig reads schema.filter.calendar as the calendar configuration container — the filter.map defect #4034 closed, still live on the calendar (ObjectCalendar.tsx:145) #7711

Description

@claude

Filed unassigned from the objectstack #15442 / #15449 consumer census (PM session session_01M59rPZZFzqhfMUPFqqZTkf, os-dev seat, 2026-09-05). Measured at the pin a472b07.

Measured

packages/plugin-calendar/src/ObjectCalendar.tsx:143-146:

function getCalendarConfig(schema) {
  if ('filter' in schema && schema.filter && typeof schema.filter === 'object' && 'calendar' in schema.filter) {
    return schema.filter.calendar;

Live in the render path: :271 const calendarConfig = useMemo(() => getCalendarConfig(schema), ...). The same schema.filter is also handed verbatim to the wire at :454 ($filter: schema.filter).

Why it matters

filter is a filter, not a configuration slot — the reading #4034 recorded for ObjectMap (getMapConfig reading filter.map) and closed. On the calendar it is still there: a MongoDB-style filter on an object that has a field named calendar (filter: { calendar: 'team' }, a legal FilterCondition) is read as the calendar config object, and the same value still goes to $filter, so one authored key is interpreted twice with two meanings. The spec side (objectstack ComponentPropsMap['object-calendar'], component.zod.ts:2708-2719) declares calendar as the canonical config object and filter as the base query filter; nothing in the spec admits a filter.calendar spelling.

Refs: #4034 (the map twin) · objectstack#15449 (the object-* filter doors census).


Generated by Claude Code

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdomain:uiobjectui ui stream: fix lands on the published library or apps — objectui execution seatfindingpm:queuepriority:p2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions