@fayz-ai/plugin-crm 0.33.0 → 0.33.2

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.
@@ -2995,14 +2995,18 @@ function FormAnswers({ lead }) {
2995
2995
  return /* @__PURE__ */ jsxs("div", { className: "space-y-3", children: [
2996
2996
  entries.length > 0 && /* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
2997
2997
  /* @__PURE__ */ jsx("h4", { className: "text-[11px] font-semibold text-muted-foreground uppercase tracking-wider", children: formId ? `${t("crm.leadDetail.formAnswers")} \xB7 ${formId}` : t("crm.leadDetail.formAnswers") }),
2998
- /* @__PURE__ */ jsx("div", { className: "rounded-xl border divide-y", children: entries.map(([key, value]) => /* @__PURE__ */ jsxs("div", { className: "flex items-start gap-3 px-4 py-2.5", children: [
2999
- /* @__PURE__ */ jsx("span", { className: "text-[11px] text-muted-foreground shrink-0 min-w-24", children: (() => {
3000
- const k = `crm.formField.${key}`;
3001
- const v = t(k);
3002
- return v && v !== k ? v : humanizeKey(key);
3003
- })() }),
3004
- /* @__PURE__ */ jsx("span", { className: "text-xs text-right flex-1 break-words", children: renderFieldValue(value) ?? /* @__PURE__ */ jsx("span", { className: "text-muted-foreground/50", children: "\u2014" }) })
3005
- ] }, key)) })
2998
+ /* @__PURE__ */ jsx("div", { className: "rounded-xl border divide-y", children: entries.map(([key, value]) => (
2999
+ // Label above, answer below: in the card's narrow side panel a
3000
+ // side-by-side row squeezed long answers into one word per line.
3001
+ /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-0.5 px-4 py-2.5", children: [
3002
+ /* @__PURE__ */ jsx("span", { className: "text-[11px] text-muted-foreground", children: (() => {
3003
+ const k = `crm.formField.${key}`;
3004
+ const v = t(k);
3005
+ return v && v !== k ? v : humanizeKey(key);
3006
+ })() }),
3007
+ /* @__PURE__ */ jsx("span", { className: "text-xs break-words [overflow-wrap:anywhere]", children: renderFieldValue(value) ?? /* @__PURE__ */ jsx("span", { className: "text-muted-foreground/50", children: "\u2014" }) })
3008
+ ] }, key)
3009
+ )) })
3006
3010
  ] }),
3007
3011
  /* @__PURE__ */ jsx(LeadAttachments, { attachments, variant: "compact" })
3008
3012
  ] });
@@ -4063,16 +4067,15 @@ function DealCardModal({ dealId, open, onClose, onViewLead, onViewQuote, onViewC
4063
4067
  // não uma casa sem equipe. Dizer "ninguém" seria mentir.
4064
4068
  /* @__PURE__ */ jsx("p", { className: "text-xs text-muted-foreground", children: t("crm.rota.cannotRead") })
4065
4069
  ) : (
4066
- // Uma linha só: quem é o dono (PersonPicker, com o retrato
4067
- // — o rosto é o que distingue duas Anas em meio segundo) e,
4068
- // ao lado, o ASSUMIR de um clique. Pegar a fila é o gesto
4069
- // mais repetido do dia de prospecção; o botão some quando o
4070
- // negócio já é de quem olha.
4071
- /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
4070
+ // Who owns it (PersonPicker, full name and face), and below
4071
+ // it the one-click TAKE OVER, hidden when it is already
4072
+ // yours. Stacked: side by side in this narrow column the
4073
+ // button squeezed the picker down to the initials.
4074
+ /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-stretch gap-2", children: [
4072
4075
  /* @__PURE__ */ jsx(
4073
4076
  PersonPicker,
4074
4077
  {
4075
- className: "min-w-0 flex-1",
4078
+ className: "w-full",
4076
4079
  options: team.map((m) => ({ id: m.userId, name: m.name })),
4077
4080
  value: deal?.assignedToId ?? null,
4078
4081
  onChange: (id) => {
@@ -4095,7 +4098,7 @@ function DealCardModal({ dealId, open, onClose, onViewLead, onViewQuote, onViewC
4095
4098
  void changeOwner(myUserId);
4096
4099
  },
4097
4100
  disabled: savingOwner,
4098
- className: "shrink-0 border border-primary/30 bg-primary/5 px-3 text-xs font-medium text-primary hover:bg-primary/10 disabled:opacity-60",
4101
+ className: "self-start border border-primary/30 bg-primary/5 px-3 text-xs font-medium text-primary hover:bg-primary/10 disabled:opacity-60",
4099
4102
  children: [
4100
4103
  /* @__PURE__ */ jsx(UserCheck, { className: "h-3.5 w-3.5" }),
4101
4104
  deal?.assignedToId ? t("crm.card.takeOverFrom") : t("crm.card.takeOver")
@@ -10274,5 +10277,5 @@ function CrmPage({ config, provider, store, registries }) {
10274
10277
  }
10275
10278
 
10276
10279
  export { CrmPage };
10277
- //# sourceMappingURL=CrmPage-GWYW2YMM.js.map
10278
- //# sourceMappingURL=CrmPage-GWYW2YMM.js.map
10280
+ //# sourceMappingURL=CrmPage-F6SN5RIJ.js.map
10281
+ //# sourceMappingURL=CrmPage-F6SN5RIJ.js.map