Skip to content

Simplify template repo - #214

Merged
sfc-gh-lmasuch merged 1 commit into
masterfrom
simplify-component-templates
Oct 16, 2026
Merged

sfc-gh-lmasuch merged 1 commit into
masterfrom
simplify-component-templates

Conversation

@lukasmasuch

@lukasmasuch lukasmasuch commented Oct 16, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Makes this repo the cookiecutter sources and their rendered templates. Components v2 is the recommended path; v1 stays as the legacy template.

  • Removes examples/ (CustomDataframe, MaterialLogin, RadioButton), the v1 Playwright end-to-end suites, the Docker image, and the CI that built wheels against an unreleased streamlit-component-lib.
  • CI now builds the four template frontends with Vite on Node 24, and checks that templates/ still matches the cookiecutter sources.
  • Drops vendored Bootstrap and unused Create React App fields from the v1 frontend. v1 still starts the Vite dev server with npm run start, which the v1 docs use. v2 keeps npm run dev (vite build --watch) and npm run build for production, matching the package-based components docs.
  • Aligns the v2 wrapper and README with the current component API: data and setStateValue, default paired with on_<key>_change, and a dev loop of Vite build, uv pip install -e ., then streamlit run example.py.
  • Updates the repo README and contributing guide to use uv and Python 3.13, and to point new components at Components v2.

Test plan

  • ./dev.py templates-check-not-modified passes for all four replay files (cookiecutter 2.2.2)
  • ./dev.py all-npm-install and ./dev.py all-npm-build succeed on Node 24 for both v1 and both v2 templates
  • Generate a v2 project with uvx --from cookiecutter cookiecutter gh:streamlit/component-template --directory cookiecutter/v2 and run the README dev loop
  • Confirm a v1 template still starts with npm run start from my_component/frontend

@lukasmasuch
lukasmasuch requested review from a team as code owners October 16, 2026 20:38
Copilot AI balanced review requested due to automatic review settings October 16, 2026 20:38

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.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@sfc-gh-lmasuch
sfc-gh-lmasuch merged commit 465144f into master Oct 16, 2026
2 checks passed
@sfc-gh-lmasuch
sfc-gh-lmasuch deleted the simplify-component-templates branch October 16, 2026 20:40
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.

3 participants