Skip to content

chore: remove non-essential modules and AI/RAG framework#145

Merged
antosubash merged 4 commits intomainfrom
feature/interesting-matsumoto-2c0a82
May 6, 2026
Merged

chore: remove non-essential modules and AI/RAG framework#145
antosubash merged 4 commits intomainfrom
feature/interesting-matsumoto-2c0a82

Conversation

@antosubash
Copy link
Copy Markdown
Owner

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: removed agent-chat, agent-playground, agent-selector components and use-agent-chat hook
  • CLI: removed sm new agent subcommand (NewAgentCommand / NewAgentSettings); swapped Products/CreateProduct examples for Customers/CreateCustomer; pruned dead RAG/Agents strip patterns from HostTemplates.ProgramCs()
  • template/SimpleModule.Host/Program.cs and template/SimpleModule.Worker/Program.cs: dropped Ollama/RAG/Agents wiring and AddModuleAgents()
  • Tests.Shared: dropped Product/Order fakers, TestDatasetsDbContext, AgentTestFixture, MockChatClient, and references to removed DbContexts/seed services in SimpleModuleWebApplicationFactory
  • Benchmarks/LoadTests: removed scenarios for deleted modules; pruned permission lists; dropped MixedWorkloadScenario
  • tests/SimpleModule.Core.Tests/Infrastructure/ModuleOptionsTests.cs: removed Products/Orders/PageBuilder option assertions

Test plan

  • `dotnet build SimpleModule.slnx` — succeeds
  • `npm run validate-pages` — all kept modules pass
  • `npm run typecheck` — 12/12 passed
  • Smoke-test `sm new project` to confirm the scaffolded template still builds without the deleted modules
  • Run `dotnet test` for the kept modules

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.
@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages Bot commented May 6, 2026

Deploying simplemodule-website with  Cloudflare Pages  Cloudflare Pages

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

View logs

antosubash added 3 commits May 6, 2026 12:27
- 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
@antosubash antosubash merged commit b269896 into main May 6, 2026
6 checks passed
@antosubash antosubash deleted the feature/interesting-matsumoto-2c0a82 branch May 6, 2026 11:06
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.

1 participant