{"record":{"id":"fef6a2acc4aad0e3","repo":"toeverything/AFFiNE","slug":"unsupported-group-type","errorCode":null,"errorMessage":"unsupported group type","messagePattern":"unsupported group type","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/frontend/core/src/components/explorer/docs-view/docs-list.tsx","lineNumber":66,"sourceCode":"          docCount={itemCount}\n          collapsed={!!collapsed}\n        />\n      );\n    } else if (groupType === 'property') {\n      const property = allProperties.find(p => p.id === groupKey);\n      if (!property) return null;\n\n      const config = WorkspacePropertyTypes[property.type];\n      if (!config?.groupHeader) return null;\n      return (\n        <config.groupHeader\n          groupId={groupId}\n          docCount={itemCount}\n          collapsed={!!collapsed}\n        />\n      );\n    } else {\n      console.warn('unsupported group type', groupType);\n      return null;\n    }\n  }, [allProperties, collapsed, groupId, groupKey, groupType, itemCount]);\n\n  if (!groupType) {\n    return null;\n  }\n\n  return header;\n});\n\nconst ratios = [1.26, 1.304, 1.13, 1.391, 1.521];\nconst calcCardRatioById = (id: string) => {\n  if (!id) {\n    return ratios[0];\n  }\n  const code = id.charCodeAt(0);\n  return ratios[code % ratios.length];","sourceCodeStart":48,"sourceCodeEnd":84,"githubUrl":"https://github.com/toeverything/AFFiNE/blob/b4c8548c09da21b2898443559a5b846f0ccf5dd8/packages/frontend/core/src/components/explorer/docs-view/docs-list.tsx#L48-L84","documentation":"Warning logged in docs-view's group-header renderer when the computed groupType is neither 'tag' nor 'property' — an unexpected grouping value reached the list component. The header is not rendered (returns null); the faulting input is the unhandled `groupType` value.","triggerScenarios":"Triggered when the explorer docs list is grouped by a property type that has no groupHeader renderer, so the group header renders as null.","commonSituations":"Occurs when grouping the docs view by an unsupported or custom property type. Switch grouping to a supported property; headers for that group are hidden otherwise.","solutions":["Use a supported group type in the docs view.","Add a renderer for the new group type."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"b4c8548c09da21b2898443559a5b846f0ccf5dd8","analyzedAt":"2026-08-18T21:16:52.546Z","contentChangedAt":"2026-08-18T21:16:52.546Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}