Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[GEN-2199] UI types linter #2163

Merged
merged 251 commits into from
Jan 8, 2025
Merged

Conversation

alonkeyval
Copy link
Collaborator

This pull request includes several changes to improve type safety and code clarity in the frontend/webapp directory. The most important changes include adding type annotations, refactoring object construction, and updating TypeScript configuration for stricter type checking.

Improvements to type safety:

Code clarity improvements:

TypeScript configuration update:

alonkeyval and others added 30 commits July 30, 2023 10:51
…urces-card

Task 107 overview sources card
…rce-manage-list

Task 142 display source manage list
…sources-connection

Task 145 handle new sources connection
Copy link

Types linter


type Item = InstrumentationRuleSpec | K8sActualSource | ActionDataParsed | ActualDestination;

export const getEntityItemId = (item: Item): string | { kind: string; name: string; namespace: string } | undefined => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
export const getEntityItemId = (item: Item): string | { kind: string; name: string; namespace: string } | undefined => {
export const getEntityItemId = (item: Item): string | WorkloadId | undefined => {

@BenElferink BenElferink added bug Something isn't working frontend labels Jan 8, 2025
@blumamir blumamir merged commit 8e9e2a7 into odigos-io:main Jan 8, 2025
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working frontend
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants