mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-04-30 03:00:41 -04:00
fix(frontend): rename executionIdFilter/Input to executionIDFilter/Input
Fully-capitalize the ID acronym in symbol names per repo convention (graphID, useBackendAPI pattern). No functional change.
This commit is contained in:
@@ -48,8 +48,8 @@ export function PlatformCostContent({ searchParams }: Props) {
|
||||
setBlockInput,
|
||||
typeInput,
|
||||
setTypeInput,
|
||||
executionIdInput,
|
||||
setExecutionIdInput,
|
||||
executionIDInput,
|
||||
setExecutionIDInput,
|
||||
rateOverrides,
|
||||
handleRateOverride,
|
||||
updateUrl,
|
||||
@@ -250,8 +250,8 @@ export function PlatformCostContent({ searchParams }: Props) {
|
||||
type="text"
|
||||
placeholder="Filter by execution"
|
||||
className="rounded border px-3 py-1.5 text-sm"
|
||||
value={executionIdInput}
|
||||
onChange={(e) => setExecutionIdInput(e.target.value)}
|
||||
value={executionIDInput}
|
||||
onChange={(e) => setExecutionIDInput(e.target.value)}
|
||||
/>
|
||||
</div>
|
||||
<button
|
||||
@@ -269,7 +269,7 @@ export function PlatformCostContent({ searchParams }: Props) {
|
||||
setModelInput("");
|
||||
setBlockInput("");
|
||||
setTypeInput("");
|
||||
setExecutionIdInput("");
|
||||
setExecutionIDInput("");
|
||||
updateUrl({
|
||||
start: "",
|
||||
end: "",
|
||||
|
||||
@@ -44,7 +44,7 @@ export function usePlatformCostContent(searchParams: InitialSearchParams) {
|
||||
urlParams.get("block_name") || searchParams.block_name || "";
|
||||
const typeFilter =
|
||||
urlParams.get("tracking_type") || searchParams.tracking_type || "";
|
||||
const executionIdFilter =
|
||||
const executionIDFilter =
|
||||
urlParams.get("graph_exec_id") || searchParams.graph_exec_id || "";
|
||||
|
||||
const [startInput, setStartInput] = useState(toLocalInput(startDate));
|
||||
@@ -54,7 +54,7 @@ export function usePlatformCostContent(searchParams: InitialSearchParams) {
|
||||
const [modelInput, setModelInput] = useState(modelFilter);
|
||||
const [blockInput, setBlockInput] = useState(blockFilter);
|
||||
const [typeInput, setTypeInput] = useState(typeFilter);
|
||||
const [executionIdInput, setExecutionIdInput] = useState(executionIdFilter);
|
||||
const [executionIDInput, setExecutionIDInput] = useState(executionIDFilter);
|
||||
const [rateOverrides, setRateOverrides] = useState<Record<string, number>>(
|
||||
{},
|
||||
);
|
||||
@@ -71,7 +71,7 @@ export function usePlatformCostContent(searchParams: InitialSearchParams) {
|
||||
model: modelFilter || undefined,
|
||||
block_name: blockFilter || undefined,
|
||||
tracking_type: typeFilter || undefined,
|
||||
graph_exec_id: executionIdFilter || undefined,
|
||||
graph_exec_id: executionIDFilter || undefined,
|
||||
};
|
||||
|
||||
const {
|
||||
@@ -120,7 +120,7 @@ export function usePlatformCostContent(searchParams: InitialSearchParams) {
|
||||
model: modelInput,
|
||||
block_name: blockInput,
|
||||
tracking_type: typeInput,
|
||||
graph_exec_id: executionIdInput,
|
||||
graph_exec_id: executionIDInput,
|
||||
page: "1",
|
||||
});
|
||||
}
|
||||
@@ -191,8 +191,8 @@ export function usePlatformCostContent(searchParams: InitialSearchParams) {
|
||||
setBlockInput,
|
||||
typeInput,
|
||||
setTypeInput,
|
||||
executionIdInput,
|
||||
setExecutionIdInput,
|
||||
executionIDInput,
|
||||
setExecutionIDInput,
|
||||
rateOverrides,
|
||||
handleRateOverride,
|
||||
updateUrl,
|
||||
|
||||
Reference in New Issue
Block a user