Skip to content
This repository was archived by the owner on Mar 18, 2025. It is now read-only.

refactor: api types#200

Open
PetrBulanek wants to merge 5 commits into
mainfrom
refactor-api-types
Open

refactor: api types#200
PetrBulanek wants to merge 5 commits into
mainfrom
refactor-api-types

Conversation

@PetrBulanek

Copy link
Copy Markdown
Contributor

No description provided.

@PetrBulanek PetrBulanek requested a review from kapetr February 3, 2025 16:24
@PetrBulanek PetrBulanek requested a review from a team as a code owner February 3, 2025 16:24
Comment thread src/layout/providers/AppProvider.tsx Outdated
export interface AppContextValue {
assistant: Assistant | null;
project: Project;
project: ProjectResponse;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I'm not sure this type of refactor is necessary, I personally wouldn't do it - project is entity (it is also found in the list, not just project detail response) in this context, so I'd keep the current naming. I understand the entity = response object in this case, but I'd just do this, if we want to explicitly export the detail response type:
export type Project = ProjectResponse;

But it's open for debate :)

@PetrBulanek PetrBulanek Feb 5, 2025

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I totally agree. Will make use of the export type Project = ProjectResponse;.

@PetrBulanek PetrBulanek requested a review from kapetr February 5, 2025 08:47
# Conflicts:
#	src/app/(main)/[projectId]/apps/builder/t/[threadId]/page.tsx
#	src/modules/chat/message/RunSetupDelta.tsx
#	src/modules/chat/types.ts
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants