Skip to content

Frontend fetching recommendations #1067

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

Open
2 of 8 tasks
AndyRae opened this issue May 23, 2025 · 0 comments
Open
2 of 8 tasks

Frontend fetching recommendations #1067

AndyRae opened this issue May 23, 2025 · 0 comments
Assignees

Comments

@AndyRae
Copy link
Member

AndyRae commented May 23, 2025

Is this the right issue type?

  • Yes, I'm planning work for this project team.

Summary

The frontend needs to fetch suggestions from Lettuce, therefore the we need to add the api fetching, configuration, and models to do so.

API fetching is currently tightly coupled to the backend, but it would be useful to implement the same pattern, even with the same request function.

  • So best to make this lib/api/request.ts function less tightly coupled with the existing backend.
  • We can then add the same pattern for requests to lettuce api/recommendations.ts - getRecommendations function
  • With corresponding types for a Recommendation(using the existing Concept type maybe?),
  • This should be supported with a url config to pass the recommendation url to fetch from

Currently there is no authentication with this service - so we hold off on that until it is implemented.

Config Url:
recommendation_service_url

Acceptance Criteria

  • Frontend has capability to fetch suggestions
  • Tests pass.

Tasks

  • Update request.ts to be less tightly coupled
  • Add api fetch code
  • Add suggestions types
  • Add configuration for Lettuce url

Confirm creation

  • This issue is ready
@github-project-automation github-project-automation bot moved this to MoreInfo in Carrot Backlog May 23, 2025
@AndyRae AndyRae moved this from MoreInfo to Ready in Carrot Backlog May 23, 2025
@AndyRae AndyRae changed the title Frontend fetching suggestions Frontend fetching recommendations May 23, 2025
@Karthi-DStech Karthi-DStech moved this from Ready to In Progress in Carrot Backlog Jun 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In Progress
Development

No branches or pull requests

2 participants