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

API integration #3

Merged
merged 5 commits into from
Jan 17, 2024
Merged

API integration #3

merged 5 commits into from
Jan 17, 2024

Conversation

confxsd
Copy link
Contributor

@confxsd confxsd commented Jan 15, 2024

  • create index
  • list indexes

uses dev.index.network in apiConfig, need to change that in prod

@confxsd confxsd self-assigned this Jan 15, 2024
@confxsd confxsd requested a review from serefyarar January 16, 2024 16:57
web-app/src/hooks/useApp.tsx Outdated Show resolved Hide resolved
web-app/src/hooks/useApp.tsx Show resolved Hide resolved
};

const getAllIndexes = useCallback(async () => {
if (!viewedProfile || !viewedProfile.id) return; // TODO: handle better maybe?
Copy link
Contributor

Choose a reason for hiding this comment

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

I need to clarify the flow of the 'viewedProfile' variable and the reason it is managed as a session object rather than a route parameter in a seperate session. Due to this approach, it's possible that this variable might not be present. Also, I agree that it could be handled much better.

web-app/src/services/api-service.ts Outdated Show resolved Hide resolved
Comment on lines 97 to 98
private signerPublicKey: string = '';
private signerFunction: string = appConfig.defaultCID;
Copy link
Contributor

Choose a reason for hiding this comment

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

Since the API is not all about indexes, these properties ideally should belong to index type, we should talk a little bit about the client structure.

@confxsd confxsd requested a review from serefyarar January 17, 2024 13:20
@confxsd confxsd merged commit d57bb4c into dev Jan 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants