From e3972643cae0f502627b59340668bd0f82b0d7b3 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 16 Nov 2026 06:59:47 +0000 Subject: [PATCH 1/4] README: short and human-friendly, with screenshots; details on the website Docs pass before the paper submission: what it is, install, first use and help in one screen, with real screenshots of the released plugin and apps, and links to the LabConstrictor website for the details. Co-Authored-By: Claude Fable 5.2 Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01Scma6VXx7mT1FYsKmB1184 --- README.md | 34 +++++++++++++++++++++------------- 1 file changed, 21 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index e2532d5..899fe7e 100644 --- a/README.md +++ b/README.md @@ -1,31 +1,39 @@ -# LabConstrictor repository initialiser +# LabConstrictor repository form -A Streamlit web form for [LabConstrictor](https://github.com/CellMigrationLab/LabConstrictor) app repositories. It is deployed at https://labconstrictor-form.streamlit.app (the app sleeps when idle, so the first load can be slow). +A web form that sets up a [LabConstrictor](https://cellmigrationlab.github.io/LabConstrictor-Site/) app repository for you, so that you do not have to edit its files by hand. -It does two things, each by opening a pull request on your repository with a GitHub Personal Access Token (classic): +**Open the form: ** (it sleeps when idle, so the first load can be slow). -- **Initialise a repository** made from the LabConstrictor template: you give the project name, the first version, whether code cells are hidden, and optional welcome, header and icon images. The form clones the repository, replaces the template placeholders (`placeholders.py`), turns the icon into `.ico` and `.icns`, writes a starter README and, if you describe the app, `labconstrictor-app.yaml` for the LabConstrictor App Centre (`manifest_form.py`, `app_manifest.py`, checked against `schemas/labconstrictor-app.schema.json`). -- **Upload or update notebooks**: each notebook with its `requirements.yaml` goes to `notebooks//`. +## What it does -## Run it locally +The form opens a pull request on your repository; you review and merge it. It needs a GitHub Personal Access Token (classic). It can: -Needs Python (CI uses 3.11) and `git` on the PATH. +- **Initialise a repository** made from the LabConstrictor template. You give the project name, the first version, whether code cells are hidden, and optional welcome, header and icon images. The form fills in the template, converts the icon, writes a starter README and, if you describe your app, the `labconstrictor-app.yaml` file that lists it in the [App Centre](https://cellmigrationlab.github.io/LabConstrictor-Site/apps/). +- **Upload or update notebooks.** Each notebook goes to `notebooks//` together with its `requirements.yaml`. + +The guides on the [LabConstrictor website](https://cellmigrationlab.github.io/LabConstrictor-Site/guides/) show where the form fits into making an app, step by step. + +## Getting help + +Questions and bugs: the [issue tracker](https://github.com/CellMigrationLab/LabConstrictor_streamlit/issues). + +## For developers + +Run the form on your computer (needs Python and `git`; the automated tests use Python 3.11): ``` pip install -r requirements.txt streamlit run app.py ``` -## Tests +Run the tests: ``` python -m unittest discover -s tests -v ``` -The test that initialises a copy of the template is skipped unless `LC_TEMPLATE_DIR` points to a clone of [CellMigrationLab/LabConstrictor](https://github.com/CellMigrationLab/LabConstrictor). CI (`.github/workflows/tests.yml`) runs it against the template's `main` on every push, pull request and weekly. - -`docs/labconstrictor-project.yaml` is how this project is listed on the LabConstrictor website. `schemas/README.md` says where the manifest schema comes from. +The test that initialises a copy of the template is skipped unless `LC_TEMPLATE_DIR` points to a clone of [CellMigrationLab/LabConstrictor](https://github.com/CellMigrationLab/LabConstrictor). -## License +Where things are: `app.py` is the form, `placeholders.py` fills in the template, `manifest_form.py` and `app_manifest.py` write `labconstrictor-app.yaml`, and [schemas/README.md](schemas/README.md) says where the manifest schema comes from. -[MIT](LICENSE) +License: [MIT](LICENSE). From c7a073427d07dfc6e7d62aa06649c29ee2d41237 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 16 Nov 2026 07:09:05 +0000 Subject: [PATCH 2/4] Manifests and schema: the site's GitHub Pages address The editor schema lines (and, in the initialiser, the schema copy and the schema URL it writes into new manifests) now name https://cellmigrationlab.github.io/LabConstrictor-Site/, where the site and its schemas live; the custom domain labconstrictor.cellmig.org was never live. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01Scma6VXx7mT1FYsKmB1184 --- app_manifest.py | 2 +- docs/labconstrictor-project.yaml | 2 +- schemas/README.md | 2 +- schemas/labconstrictor-app.schema.json | 4 ++-- tests/test_app_manifest.py | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app_manifest.py b/app_manifest.py index 891598d..aba6512 100644 --- a/app_manifest.py +++ b/app_manifest.py @@ -18,7 +18,7 @@ MANIFEST_NAME = "labconstrictor-app.yaml" SCHEMA_PATH = Path(__file__).resolve().parent / "schemas" / "labconstrictor-app.schema.json" -SCHEMA_URL = "https://labconstrictor.cellmig.org/schema/labconstrictor-app.schema.json" +SCHEMA_URL = "https://cellmigrationlab.github.io/LabConstrictor-Site/schema/labconstrictor-app.schema.json" KINDS = {"Analysis": "analysis", "Segmentation": "segmentation", "Simulation": "simulation", "Game": "game", "Training": "training", "Utility": "utility"} HOSTS = ("notebook", "napari", "fiji", "qupath") diff --git a/docs/labconstrictor-project.yaml b/docs/labconstrictor-project.yaml index 7d487f3..6590251 100644 --- a/docs/labconstrictor-project.yaml +++ b/docs/labconstrictor-project.yaml @@ -1,4 +1,4 @@ -# yaml-language-server: $schema=https://labconstrictor.cellmig.org/schema/labconstrictor-project.schema.json +# yaml-language-server: $schema=https://cellmigrationlab.github.io/LabConstrictor-Site/schema/labconstrictor-project.schema.json # How this project is listed on the LabConstrictor website's Ecosystem page. Keep the status true. name: Repository initialiser summary: A web form that sets up a new app repository and opens a pull request. It sleeps when idle, so the first load can be slow. diff --git a/schemas/README.md b/schemas/README.md index 6c52f7e..0000650 100644 --- a/schemas/README.md +++ b/schemas/README.md @@ -3,5 +3,5 @@ `labconstrictor-app.schema.json` is a copy of the schema of the LabConstrictor App Centre manifest (`labconstrictor-app.yaml`). The authority is the LabConstrictor site repository (`schema/labconstrictor-app.schema.json`, published at -https://labconstrictor.cellmig.org/schema/labconstrictor-app.schema.json). When that file changes, +https://cellmigrationlab.github.io/LabConstrictor-Site/schema/labconstrictor-app.schema.json). When that file changes, copy it here and into the template (`.tools/schema/`). diff --git a/schemas/labconstrictor-app.schema.json b/schemas/labconstrictor-app.schema.json index 30ae4ae..1e67f94 100644 --- a/schemas/labconstrictor-app.schema.json +++ b/schemas/labconstrictor-app.schema.json @@ -1,8 +1,8 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "https://labconstrictor.cellmig.org/schema/labconstrictor-app.schema.json", + "$id": "https://cellmigrationlab.github.io/LabConstrictor-Site/schema/labconstrictor-app.schema.json", "title": "labconstrictor-app.yaml", - "description": "Manifest that an app keeps in the root of its own repository so that it can be listed in the LabConstrictor App Centre. Edit it with schema support: add `# yaml-language-server: $schema=https://labconstrictor.cellmig.org/schema/labconstrictor-app.schema.json` as the first line.", + "description": "Manifest that an app keeps in the root of its own repository so that it can be listed in the LabConstrictor App Centre. Edit it with schema support: add `# yaml-language-server: $schema=https://cellmigrationlab.github.io/LabConstrictor-Site/schema/labconstrictor-app.schema.json` as the first line.", "type": "object", "additionalProperties": false, "required": ["schema", "name", "summary", "kind", "distribution"], diff --git a/tests/test_app_manifest.py b/tests/test_app_manifest.py index a93c86e..4d9f45b 100644 --- a/tests/test_app_manifest.py +++ b/tests/test_app_manifest.py @@ -19,7 +19,7 @@ def build(self, **overrides): def test_a_valid_manifest_round_trips(self) -> None: text = am.render(self.build(description="First paragraph.\n\nSecond paragraph.", icon_path="app/logo/icon.png")) - self.assertTrue(text.startswith("# yaml-language-server: $schema=https://labconstrictor.cellmig.org/")) + self.assertTrue(text.startswith("# yaml-language-server: $schema=https://cellmigrationlab.github.io/LabConstrictor-Site/")) data = yaml.safe_load(text) self.assertEqual(data["kind"], "analysis") self.assertEqual(data["distribution"], {"installer": True}) From f8189e4ffc05158029435aed78d3e6b76ab7013f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20Hidalgo?= <47150974+IvanHCenalmor@users.noreply.github.com> Date: Mon, 16 Nov 2026 13:54:41 +0200 Subject: [PATCH 3/4] Enhance README with usage instructions Added step-by-step instructions for using the LabConstrictor form. --- README.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 899fe7e..8d09840 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,16 @@ A web form that sets up a [LabConstrictor](https://cellmigrationlab.github.io/LabConstrictor-Site/) app repository for you, so that you do not have to edit its files by hand. -**Open the form: ** (it sleeps when idle, so the first load can be slow). +## Get Started + +1. **Open the form: ** +2. If you find the following window, click on `Yes, get this app back up!` + + image + +3. When you arrive to this page, chose between `Initialise a repository` or `Upload or update notebooks`, please take a look into [What it does](#what-it-does) for further information + + image ## What it does From 79428e3d76c37f71955655f2f05cc8b77315ce03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20Hidalgo?= <47150974+IvanHCenalmor@users.noreply.github.com> Date: Mon, 16 Nov 2026 13:55:07 +0200 Subject: [PATCH 4/4] Fix typo in README step instructions --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 8d09840..23bbe94 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ A web form that sets up a [LabConstrictor](https://cellmigrationlab.github.io/La image -3. When you arrive to this page, chose between `Initialise a repository` or `Upload or update notebooks`, please take a look into [What it does](#what-it-does) for further information +3. When you arrive to the following page, chose between `Initialise a repository` or `Upload or update notebooks`, please take a look into [What it does](#what-it-does) for further information image