@odla-ai/chapter 0.27.1 → 0.28.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -330,6 +330,28 @@ export const chapter = defineChapter({
330
330
  });
331
331
  ```
332
332
 
333
+ The leader may make `chapter` its own durable aggregate while retaining the
334
+ preset's required identity and relations. `chapter.fields` and
335
+ `chapter.facets` merge with the defaults; `chapter.pipeline` replaces the
336
+ generic proposed/forming/active lifecycle. The final configuration is still
337
+ validated by `defineCrm()`:
338
+
339
+ ```ts
340
+ crm: leaderCrmConfig({
341
+ base: existingCrmConfig,
342
+ chapter: {
343
+ fields: {
344
+ marketKey: { type: "string", label: "Market key", slot: "s3" },
345
+ signalScore: { type: "number", label: "Signal score", slot: "n1" },
346
+ },
347
+ pipeline: {
348
+ stages: [{ id: "investigation" }, { id: "growth" }],
349
+ transitions: { investigation: ["growth"] },
350
+ },
351
+ },
352
+ }),
353
+ ```
354
+
333
355
  The preset adds `chapter`, `chapter_application`, and `deal` record types in
334
356
  the `portfolio` workspace, with formation, operating, and deal-flow pipelines.
335
357
  It also composes relations to base `person` and `company` types when present.
@@ -1490,7 +1490,12 @@ function RecordsExplorer(props) {
1490
1490
  detailLabel: "Follower record details, private notes, and shared notes",
1491
1491
  detailOpen: Boolean(selected),
1492
1492
  closeHref: ctx.href({ recordId: null, detailTab: null }),
1493
- master: /* @__PURE__ */ jsxs13(Panel, { title: `${target.name} \xB7 ${type.replaceAll("_", " ")}`, children: [
1493
+ master: /* @__PURE__ */ jsxs13("div", { style: { display: "grid", gap: 14, padding: "var(--ui-space-4)" }, children: [
1494
+ /* @__PURE__ */ jsxs13("h2", { style: { margin: 0, fontSize: 18 }, children: [
1495
+ target.name,
1496
+ " \xB7 ",
1497
+ type.replaceAll("_", " ")
1498
+ ] }),
1494
1499
  /* @__PURE__ */ jsx16(
1495
1500
  DataTable3,
1496
1501
  {
@@ -1526,7 +1531,7 @@ function RecordsExplorer(props) {
1526
1531
  }
1527
1532
  )
1528
1533
  ] }),
1529
- detail: selected ? /* @__PURE__ */ jsx16(Panel, { children: /* @__PURE__ */ jsx16(
1534
+ detail: selected ? /* @__PURE__ */ jsx16(
1530
1535
  NetworkRecordDetail,
1531
1536
  {
1532
1537
  ctx,
@@ -1536,7 +1541,7 @@ function RecordsExplorer(props) {
1536
1541
  sharedEnabled: target.sharedNotes.includes(type),
1537
1542
  record: selected
1538
1543
  }
1539
- ) }) : void 0
1544
+ ) : void 0
1540
1545
  }
1541
1546
  );
1542
1547
  }
@@ -2197,4 +2202,4 @@ export {
2197
2202
  defaultAdminSections,
2198
2203
  meetingsSection
2199
2204
  };
2200
- //# sourceMappingURL=chunk-L2SA47IO.js.map
2205
+ //# sourceMappingURL=chunk-VJLXHBIP.js.map