scribe stores the language per USER, in its database - `PATCH /api/me`, whose docstring says "the language choice follows the user, not the browser". chrome's is a cookie, which is browser-local and therefore strictly weaker for that case. Adopting the shell would otherwise have quietly swapped a preference that follows you to another machine for one that does not, and left two switchers on the page disagreeing about the same setting. `language_switcher=False` makes the shell stand down. Only the language control: the theme toggle is unaffected, which the test pins, because scribe's theme IS chrome's - the same localStorage key and the same three values, so that one is a straight swap. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
35 lines
895 B
TOML
35 lines
895 B
TOML
[project]
|
|
name = "chrome"
|
|
version = "0.5.0"
|
|
description = "Shared page shell, design tokens and service helpers for the internal services."
|
|
requires-python = ">=3.13"
|
|
dependencies = [
|
|
"fastapi>=0.115",
|
|
"jinja2>=3.1",
|
|
]
|
|
|
|
[project.optional-dependencies]
|
|
dev = ["pytest>=8", "httpx>=0.27", "uvicorn[standard]>=0.30"]
|
|
|
|
[build-system]
|
|
requires = ["setuptools>=68"]
|
|
build-backend = "setuptools.build_meta"
|
|
|
|
[tool.setuptools.packages.find]
|
|
include = ["chrome*"]
|
|
|
|
# The shell is useless without its templates and static tree, and a wheel
|
|
# carries only .py files unless told otherwise. scribe shipped a broken wheel
|
|
# this way once; the container worked only because uvicorn imported from the
|
|
# source tree.
|
|
[tool.setuptools.package-data]
|
|
chrome = [
|
|
"templates/*.html",
|
|
"static/*.css",
|
|
"static/*.js",
|
|
"static/vendor/*",
|
|
"static/wa/**/*",
|
|
]
|
|
|
|
[tool.pytest.ini_options]
|
|
testpaths = ["tests"]
|