Skip to content

Remove the "All Applications" from the add modals - #110

Merged
GeekInTheNorth merged 3 commits into
developfrom
bug/109
Jun 23, 2026
Merged

Remove the "All Applications" from the add modals#110
GeekInTheNorth merged 3 commits into
developfrom
bug/109

Conversation

@GeekInTheNorth

Copy link
Copy Markdown
Owner

Closes 109

Copilot AI left a comment

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.

Pull request overview

This PR removes the synthetic “All Applications” option from the applications API response (used by the UI “add configuration” modals) and hardens server-side validation so configurations can’t be saved without a valid AppId.

Changes:

  • Removed the injected “All Applications” entry from ApplicationDefinitionController.Applications().
  • Added/updated AppId validation in robots/llms save flows (controllers + content services) and updated/added tests to cover the new bad-request behavior.
  • Removed the sample appsettings.Development.json and added a .gitignore rule to avoid committing development settings.

Reviewed changes

Copilot reviewed 8 out of 10 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/Stott.Optimizely.RobotsHandler/Robots/RobotsContentService.cs Fixes AppId validation to correctly treat missing/blank IDs as invalid.
src/Stott.Optimizely.RobotsHandler/Robots/RobotsApiController.cs Returns HTTP 400 when AppId is missing before checking conflicts/saving.
src/Stott.Optimizely.RobotsHandler/Llms/LlmsApiController.cs Returns HTTP 400 when AppId is missing before checking conflicts/saving.
src/Stott.Optimizely.RobotsHandler/Llms/DefaultLlmsContentService.cs Fixes AppId validation to correctly treat missing/blank IDs as invalid.
src/Stott.Optimizely.RobotsHandler/Applications/ApplicationDefinitionController.cs Stops injecting the “All Applications” entry into the API response.
src/Stott.Optimizely.RobotsHandler.Ui/src/AddSiteLlms.jsx Minor formatting/indentation change in the add LLMS modal markup.
src/Stott.Optimizely.RobotsHandler.Test/Robots/RobotsApiControllerTests.cs Updates existing save tests to provide AppId; adds coverage for missing AppId returning 400 and not invoking service calls.
src/Stott.Optimizely.RobotsHandler.Test/Llms/LlmsApiControllerTests.cs Updates existing save tests to provide AppId; adds coverage for missing AppId returning 400 and not invoking service calls.
Sample/OptimizelyTwelveTest/appsettings.Development.json Removes sample development settings file.
.gitignore Ignores appsettings.Development.json going forward.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@GeekInTheNorth
GeekInTheNorth merged commit 205d1b6 into develop Jun 23, 2026
2 checks passed
@GeekInTheNorth
GeekInTheNorth deleted the bug/109 branch June 23, 2026 16:15
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.

Remove All Applications from the LLMS.txt and robots.txt add modal

2 participants