chore: remove non-essential modules and AI/RAG framework#145
Merged
antosubash merged 4 commits intomainfrom May 6, 2026
Merged
chore: remove non-essential modules and AI/RAG framework#145antosubash merged 4 commits intomainfrom
antosubash merged 4 commits intomainfrom
Conversation
Strip the template down to core framework + auth/admin essentials. Removes demo/showcase modules (Datasets, Map, PageBuilder, Orders, Products, Marketplace) and AI/agentic modules (Rag, Agents, Chat) along with their framework dependencies (SimpleModule.Rag*, SimpleModule.Agents, SimpleModule.AI.*). Kept: Admin, AuditLogs, BackgroundJobs, Dashboard, Email, FeatureFlags, FileStorage, Localization, OpenIddict, Permissions, RateLimiting, Settings, Tenants, Users. Also removes the agent UI components from @simplemodule/ui, the sm new agent CLI subcommand, and corresponding test fixtures, benchmarks, and load-test scenarios. Updates Host/Worker Program.cs and csprojs and the Tests.Shared factory to drop references to deleted contexts and seed services.
Deploying simplemodule-website with
|
| Latest commit: |
785441b
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://ee25e70c.simplemodule-website.pages.dev |
| Branch Preview URL: | https://feature-interesting-matsumot.simplemodule-website.pages.dev |
- Dockerfile / Dockerfile.worker: remove COPY entries for the deleted modules and framework projects (Rag*, Agents, AI.*, Datasets, Map, etc.) Drop the tippecanoe build stage and GIS tooling (gdal-bin, spatialite) from the worker runtime image — those existed solely for the Datasets module's geospatial jobs. - docker-compose.yml: tweak the storage volume comment now that the dataset upload path is gone. - docs/CONSTITUTION.md: rename Products examples to a hypothetical Customers; replace SimpleModule.Agents.AI.Anthropic sub-project example with SimpleModule.FileStorage.S3. - docs/site/: prune the AI Agents & RAG guide and sidebar entry; remove the AI providers / Agent / RAG configuration sections from the reference docs and acknowledgments; rename Products/Orders/PageBuilder illustrative examples to kept-module equivalents (Customers, Users, Admin) across the getting-started, guide, frontend, testing, advanced, and CLI pages. The plans/ folder is left untouched — those are dated historical records of past work.
InertiaResultTests and InertiaTranslationPropsTests were hitting
/products and asserting against the Products/Browse component, which
404'd in CI after the Products module was removed. Switch them to the
Dashboard module's anonymous root view ("/" → Dashboard/Home), which
provides the same Inertia HTML/JSON shape and exercises the same
locale/translations shared props.
The CI e2e job was failing because Playwright was still running smoke and flow specs targeting deleted modules (Products, Orders, Chat, Datasets, Map, PageBuilder, Marketplace) — every page locator 404'd. - Delete smoke + flow specs and page objects for the removed modules - Rewrite tests/e2e/tests/flows/permissions.spec.ts to exercise admin endpoints (the file previously hung off Products/Orders permissions exclusively) - audit-logs-crud.spec.ts: seed audit traffic via /api/admin/users instead of /api/products, since Products is gone
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Strips the template down to core framework + auth/admin essentials.
Modules removed: Datasets, Map, PageBuilder, Orders, Products, Marketplace (demo/showcase) and Rag, Agents, Chat (AI/agentic).
Framework projects removed:
SimpleModule.Rag,SimpleModule.Rag.StructuredRag,SimpleModule.Rag.VectorStore.InMemory,SimpleModule.Rag.VectorStore.Postgres,SimpleModule.Agents,SimpleModule.AI.Ollama,SimpleModule.AI.AzureOpenAI,SimpleModule.AI.OpenAI,SimpleModule.AI.Anthropic.Modules kept: Admin, AuditLogs, BackgroundJobs, Dashboard, Email, FeatureFlags, FileStorage, Localization, OpenIddict, Permissions, RateLimiting, Settings, Tenants, Users.
Other cleanup
@simplemodule/ui: removedagent-chat,agent-playground,agent-selectorcomponents anduse-agent-chathooksm new agentsubcommand (NewAgentCommand/NewAgentSettings); swapped Products/CreateProduct examples for Customers/CreateCustomer; pruned dead RAG/Agents strip patterns fromHostTemplates.ProgramCs()template/SimpleModule.Host/Program.csandtemplate/SimpleModule.Worker/Program.cs: dropped Ollama/RAG/Agents wiring andAddModuleAgents()Tests.Shared: dropped Product/Order fakers,TestDatasetsDbContext,AgentTestFixture,MockChatClient, and references to removed DbContexts/seed services inSimpleModuleWebApplicationFactoryMixedWorkloadScenariotests/SimpleModule.Core.Tests/Infrastructure/ModuleOptionsTests.cs: removed Products/Orders/PageBuilder option assertionsTest plan