Skip to content

feat(api): habit setup AI suggestion endpoint (#220) - #257

Merged
thomasluizon merged 4 commits into
mainfrom
issue-220
Jun 26, 2026
Merged

thomasluizon merged 4 commits into
mainfrom
issue-220

fix(api): adapt habit-suggest call to generalized CompleteJsonAsync (…

c31271c
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis succeeded Jun 26, 2026 in 38s

Annotations

Check warning on line 109 in src/Orbit.Infrastructure/Services/AiHabitSuggestionService.cs

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Change return type of method 'SanitizeSubHabits' from 'System.Collections.Generic.IReadOnlyList<string>' to 'System.Collections.Generic.List<string>' for improved performance

See more on https://sonarcloud.io/project/issues?id=thomasluizon_orbit-api&issues=AZ8CKImPqWa_Zows7eD7&open=AZ8CKImPqWa_Zows7eD7&pullRequest=257

Check warning on line 95 in src/Orbit.Infrastructure/Services/AiHabitSuggestionService.cs

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Change return type of method 'SanitizeDays' from 'System.Collections.Generic.IReadOnlyList<System.DayOfWeek>' to 'System.Collections.Generic.List<System.DayOfWeek>' for improved performance

See more on https://sonarcloud.io/project/issues?id=thomasluizon_orbit-api&issues=AZ8CKImPqWa_Zows7eD8&open=AZ8CKImPqWa_Zows7eD8&pullRequest=257

Check warning on line 49 in tests/Orbit.Infrastructure.Tests/Services/AiHabitSuggestionServiceTests.cs

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer 'static readonly' fields over constant array arguments if the called method is called repeatedly and is not mutating the passed array

See more on https://sonarcloud.io/project/issues?id=thomasluizon_orbit-api&issues=AZ8CKIpFqWa_Zows7eEA&open=AZ8CKIpFqWa_Zows7eEA&pullRequest=257

Check warning on line 109 in tests/Orbit.Infrastructure.Tests/Services/AiHabitSuggestionServiceTests.cs

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer 'static readonly' fields over constant array arguments if the called method is called repeatedly and is not mutating the passed array

See more on https://sonarcloud.io/project/issues?id=thomasluizon_orbit-api&issues=AZ8CKIpFqWa_Zows7eED&open=AZ8CKIpFqWa_Zows7eED&pullRequest=257

Check warning on line 40 in tests/Orbit.Infrastructure.Tests/Services/AiHabitSuggestionServiceTests.cs

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer 'static readonly' fields over constant array arguments if the called method is called repeatedly and is not mutating the passed array

See more on https://sonarcloud.io/project/issues?id=thomasluizon_orbit-api&issues=AZ8CKIpFqWa_Zows7eD-&open=AZ8CKIpFqWa_Zows7eD-&pullRequest=257

Check warning on line 55 in tests/Orbit.Infrastructure.Tests/Services/AiHabitSuggestionServiceTests.cs

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer 'static readonly' fields over constant array arguments if the called method is called repeatedly and is not mutating the passed array

See more on https://sonarcloud.io/project/issues?id=thomasluizon_orbit-api&issues=AZ8CKIpFqWa_Zows7eEB&open=AZ8CKIpFqWa_Zows7eEB&pullRequest=257

Check warning on line 134 in tests/Orbit.Infrastructure.Tests/Services/AiHabitSuggestionServiceTests.cs

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer 'static readonly' fields over constant array arguments if the called method is called repeatedly and is not mutating the passed array

See more on https://sonarcloud.io/project/issues?id=thomasluizon_orbit-api&issues=AZ8CKIpFqWa_Zows7eEE&open=AZ8CKIpFqWa_Zows7eEE&pullRequest=257

Check warning on line 40 in tests/Orbit.Infrastructure.Tests/Services/AiHabitSuggestionServiceTests.cs

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer 'static readonly' fields over constant array arguments if the called method is called repeatedly and is not mutating the passed array

See more on https://sonarcloud.io/project/issues?id=thomasluizon_orbit-api&issues=AZ8CKIpFqWa_Zows7eD_&open=AZ8CKIpFqWa_Zows7eD_&pullRequest=257

Check warning on line 140 in tests/Orbit.Infrastructure.Tests/Services/AiHabitSuggestionServiceTests.cs

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer 'static readonly' fields over constant array arguments if the called method is called repeatedly and is not mutating the passed array

See more on https://sonarcloud.io/project/issues?id=thomasluizon_orbit-api&issues=AZ8CKIpFqWa_Zows7eEF&open=AZ8CKIpFqWa_Zows7eEF&pullRequest=257

Check warning on line 66 in tests/Orbit.Infrastructure.Tests/Services/AiHabitSuggestionServiceTests.cs

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer 'static readonly' fields over constant array arguments if the called method is called repeatedly and is not mutating the passed array

See more on https://sonarcloud.io/project/issues?id=thomasluizon_orbit-api&issues=AZ8CKIpFqWa_Zows7eEC&open=AZ8CKIpFqWa_Zows7eEC&pullRequest=257

Check warning on line 35 in tests/Orbit.Application.Tests/Commands/Habits/SuggestHabitSetupCommandHandlerTests.cs

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer 'static readonly' fields over constant array arguments if the called method is called repeatedly and is not mutating the passed array

See more on https://sonarcloud.io/project/issues?id=thomasluizon_orbit-api&issues=AZ8CKIo7qWa_Zows7eD9&open=AZ8CKIo7qWa_Zows7eD9&pullRequest=257