fillAll function exported

Last updated: 2026-03-05T23:41:17.531Z

Metrics

LOC: 12 Complexity: 3 Params: 0

Signature

fillAll(): : Promise<void>

Source Code

export async function fillAll(): Promise<void> {
  addLog(t("logFilling"));
  try {
    const result = (await sendToPage({
      type: "FILL_ALL_FIELDS",
      payload: { fillEmptyOnly: false },
    })) as { filled?: number };
    addLog(`${result?.filled ?? 0} ${t("filled")}`, "success");
  } catch (err) {
    addLog(`Erro ao preencher: ${err}`, "error");
  }
}

Dependencies (Outgoing)

graph LR fillAll["fillAll"] DetectedFieldSummary["DetectedFieldSummary"] ExtensionMessage["ExtensionMessage"] FieldRule["FieldRule"] IgnoredField["IgnoredField"] StreamedFieldMessage["StreamedFieldMessage"] openAIContextModal["openAIContextModal"] t["t"] sendToPage["sendToPage"] sendToBackground["sendToBackground"] getInspectedUrl["getInspectedUrl"] addLog["addLog"] updateStatusBar["updateStatusBar"] renderTo["renderTo"] FieldEditorSavePayload["FieldEditorSavePayload"] GeneratorOption["GeneratorOption"] fillAll -->|uses| DetectedFieldSummary fillAll -->|uses| ExtensionMessage fillAll -->|uses| FieldRule fillAll -->|uses| IgnoredField fillAll -->|uses| StreamedFieldMessage fillAll -->|uses| openAIContextModal fillAll -->|uses| t fillAll -->|uses| sendToPage fillAll -->|uses| sendToBackground fillAll -->|uses| getInspectedUrl fillAll -->|uses| addLog fillAll -->|uses| updateStatusBar fillAll -->|uses| renderTo fillAll -->|uses| FieldEditorSavePayload fillAll -->|uses| GeneratorOption style fillAll fill:#dbeafe,stroke:#2563eb,stroke-width:2px click fillAll "388f033c1be0f292.html" click DetectedFieldSummary "bfdc4d4bda59a49c.html" click ExtensionMessage "c70465261f6c12b8.html" click FieldRule "2faad09a4e9d7546.html" click IgnoredField "96aec4ca58122359.html" click StreamedFieldMessage "ebfee25020bbeb89.html" click openAIContextModal "97760a8ce5debd4a.html" click t "8e8864a3c5cfd1e1.html" click sendToPage "c08387d99fb8cee4.html" click sendToBackground "03b807c063349446.html" click getInspectedUrl "243642e595ba0672.html" click addLog "0260edfd6415154b.html" click updateStatusBar "98f5b4bdf9734d7c.html" click renderTo "82b88bd90e760d1a.html" click FieldEditorSavePayload "43f9545433be93a3.html" click GeneratorOption "46d00f7f04960150.html"

Impact (Incoming)

graph LR fillAll["fillAll"] toggleWatch["toggleWatch"] renderActionsTab["renderActionsTab"] renderFieldsTab["renderFieldsTab"] toggleWatch -->|uses| fillAll renderActionsTab -->|calls| fillAll renderFieldsTab -->|calls| fillAll style fillAll fill:#dbeafe,stroke:#2563eb,stroke-width:2px click fillAll "388f033c1be0f292.html" click toggleWatch "5b1d47a07d7aa0c9.html" click renderActionsTab "40e45c39675a3592.html" click renderFieldsTab "f02a4b6eabef0223.html"
SourceType
toggleWatch uses
renderActionsTab calls
renderFieldsTab calls