generated from TBD54566975/tbd-project-template
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: deployment pages layout issues with large systems (#1442)
- Loading branch information
1 parent
23b18fa
commit 090442a
Showing
6 changed files
with
59 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { Module } from '../../protos/xyz/block/ftl/v1/console/console_pb' | ||
import { MetadataCalls, Ref } from '../../protos/xyz/block/ftl/v1/schema/schema_pb' | ||
|
||
export const getCalls = (module: Module) => { | ||
const verbCalls: Ref[] = [] | ||
|
||
const metadata = module.verbs | ||
.map((v) => v.verb) | ||
.map((v) => v?.metadata) | ||
.flat() | ||
|
||
const metadataCalls = metadata | ||
.filter((metadata) => metadata?.value.case === 'calls') | ||
.map((metadata) => metadata?.value.value as MetadataCalls) | ||
|
||
const calls = metadataCalls.map((metadata) => metadata?.calls).flat() | ||
|
||
calls.forEach((call) => { | ||
if (!verbCalls.find((v) => v.name === call.name && v.module === call.module)) { | ||
verbCalls.push({ name: call.name, module: call.module } as Ref) | ||
} | ||
}) | ||
return calls | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters