Skip to content

Feat: Workspace Templates#4869

Open
17ColinMiPerry wants to merge 9 commits intoMintplex-Labs:masterfrom
17ColinMiPerry:feat-workspace-templates
Open

Feat: Workspace Templates#4869
17ColinMiPerry wants to merge 9 commits intoMintplex-Labs:masterfrom
17ColinMiPerry:feat-workspace-templates

Conversation

@17ColinMiPerry
Copy link
Contributor

@17ColinMiPerry 17ColinMiPerry commented Jan 16, 2026

Pull Request Type

  • ✨ feat
  • 🐛 fix
  • ♻️ refactor
  • 💄 style
  • 🔨 chore
  • 📝 docs

Relevant Issues

resolves #4769

What is in this change?

Basic workspace templates were implemented. Templates can either be made by copying settings from an existing workspace, or an empty template can be made and edited from the WorkspaceTemplate general settings page. When users create a new workspace, they will be given the option to select either a template they have made in the past, or default. Any unedited template settings will use system defaults.

Frontend Changes

  • frontend/src/components/Modals/NewWorkspace.jsx - include the dropdown to allow users to select from their saved templates.
  • frontend/src/components/SettingsSidebar/index.jsx - include the workspace setting in the sidebar
  • frontend/src/main.jsx- added the new route to the workspace template settings page
  • NEW frontend/src/models/workspaceTemplate.js- created the frontend workspace template model
  • NEW frontend/src/pages/GeneralSettings/WorkspaceTemplates/TemplatePreviewModal/CustomSelect/index.jsx - this was necessary to allow for a dropdown in the right style with the AnythingLLM vertical scrollbar
  • NEW frontend/src/pages/GeneralSettings/WorkspaceTemplates/TemplatePreviewModal/ModelSelect/index.jsx - the specific dropdown logic for model selection
  • NEW frontend/src/pages/GeneralSettings/WorkspaceTemplates/TemplatePreviewModal/ProviderSelect/index.jsx - the specific dropdown logic for providers
  • NEW frontend/src/pages/GeneralSettings/WorkspaceTemplates/TemplatePreviewModal/index.jsx - the template preview modal for displaying and editing template data
  • NEW frontend/src/pages/GeneralSettings/WorkspaceTemplates/TemplateRow/index.jsx - this is the subcomponent for rows in the workspace template settings page table
  • NEW frontend/src/pages/GeneralSettings/WorkspaceTemplates/index.jsx - this is the general settings page for workspace templates
  • frontend/src/pages/WorkspaceSettings/AgentConfig/AgentLLMSelection/index.jsx - exported the ENABLED_PROVIDERS to be used in the template provider dropdown
  • NEW frontend/src/pages/WorkspaceSettings/GeneralAppearance/SaveAsTemplate/index.jsx - created the SaveAsTemplate component
  • frontend/src/pages/WorkspaceSettings/GeneralAppearance/index.jsx - implemented the SaveAsTemplate component into the workspace settings page
  • frontend/src/utils/paths.js- registered the workspae template path

Server Changes

  • NEW server/endpoints/workspaceTemplates.js - defined the workspace template endpoints
  • server/endpoints/workspaces.js - updated workspace endpoints to allow for creation from template
  • NEW server/index.js - registered the workspace template endpoints
  • server/models/workspace.js - updated workspace backend models
  • NEW server/models/workspaceTemplate.js- created workspace template backend model

Prisma Schema Change

A table was added to the DB (which stores workspace template information). This change necessitates a migration for template features to work.

Additional Information

make ws from template save as template modal ts modal

Additional Notes

This change does not implement including embedded files in templates. This change does not allow for overwriting existing workspaces with a template. Most strings are hardcoded in English.

Developer Validations

  • I ran yarn lint from the root of the repo & committed changes
  • Relevant documentation has been updated
  • I have tested my code functionality
  • Docker build succeeds locally

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.

[FEAT]: Workspace Templates (Gemini Gems)

1 participant