Skip to content

fix: allow anonymous geometry (geometry without GUIDs) - #15

Open
gonzalocasas wants to merge 5 commits into
mainfrom
fix/anonymous-geometry
Open

fix: allow anonymous geometry (geometry without GUIDs)#15
gonzalocasas wants to merge 5 commits into
mainfrom
fix/anonymous-geometry

Conversation

@gonzalocasas

@gonzalocasas gonzalocasas commented Aug 15, 2026

Copy link
Copy Markdown
Member

Allow geometry without guids to also be displayed by the viewer. In the past, serialization was enforcing GUIDs always, but now it's only present if the guid is materialized (ie. it's a lazy property and if never called, it's never materialized). This PR fixes support for "anonymous" geometry that has no materialized guid.

And also add PR checks workflow and PR template to the repo, as well as a commit hook to enforce conventional commit messages

The title must be a conventional commit:
fix:, feat:, feat!: for a breaking change, or one of build: chore:
ci: docs: perf: refactor: style: test:. Release Please builds
CHANGELOG.md and the next version number from it. Apply the no changelog
label to skip. Running npm install enables a commit-msg hook that checks
your commits as you make them.

Checklist

  • npm run check is green (formatting, lint, types, unit tests, both builds).
  • npm run test:browser and npm run test:package pass.

gonzalocasas and others added 4 commits August 15, 2026 08:57
The pr-checks workflow was copied from a Python project and used the
compas-actions composite actions, which expect bump-my-version metadata
in pyproject.toml and a hand-maintained Keep a Changelog file.

Release Please generates CHANGELOG.md here from conventional commits, so
a pull request earns its changelog entry by using them rather than by
editing the generated file. Validate the pull request title and every
non-merge commit, since merge, squash and rebase merges are all enabled
and each feeds Release Please a different subject. The `no changelog`
label skips the check.

Add a pull request template, adapted from compas-dev/compas, that
documents the convention alongside this project's check, test, export
and documentation expectations.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@gonzalocasas gonzalocasas changed the title Fix/anonymous geometry fix: allow anonymous geometry (geometry without GUIDs) Aug 15, 2026
@gonzalocasas gonzalocasas reopened this Aug 15, 2026
Add a commit-msg hook, enabled by an npm prepare script that points
core.hooksPath at .githooks, so a non-conventional subject is rejected
before it becomes a commit. The rule lives in one sourced file that both
the hook and the workflow use, so the local and CI checks cannot drift
apart.

Pin .githooks and shell scripts to LF in .gitattributes. Git for Windows
defaults to core.autocrlf=true, and a CRLF hook fails to start with
"env: bash\r: No such file or directory", which aborts every commit
rather than merely skipping the check.

Split the workflow by severity. A non-conventional pull request title is
an error, because retitling is a one-click fix and the title is what a
squash merge records. A non-conventional commit subject is only a
warning, because fixing it means a rebase and a force push. Also trigger
on `edited` so retitling re-runs the check.

Trim the pull request template to the conventional-commit rule and the
two check commands, dropping the type checkboxes that the mandatory
title prefix already covers.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@gonzalocasas

Copy link
Copy Markdown
Member Author

@ericgozzi please test this on your machine, run npm install again so that it installs the commit hook and try to commit a non-conventional commit message, it should reject it

@gonzalocasas
gonzalocasas requested a review from ericgozzi August 15, 2026 09:43
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