Skip to content

[#72855] Add semantic identifier support to "Add Project"#22330

Merged
thykel merged 18 commits intofeature/71896-change-identifier-with-semantic-identifiersfrom
feature/72855-new-project-with-semantic-identifiers
Mar 19, 2026
Merged

[#72855] Add semantic identifier support to "Add Project"#22330
thykel merged 18 commits intofeature/71896-change-identifier-with-semantic-identifiersfrom
feature/72855-new-project-with-semantic-identifiers

Conversation

@thykel
Copy link
Contributor

@thykel thykel commented Mar 12, 2026

Ticket

https://community.openproject.org/projects/stream-jira-exit/work_packages/72855

What are you trying to accomplish?

We are currently adding support for "semantic work package identifiers".

  • old-style numeric identifiers: project ID project-zeus / work package ID 1
  • new-style semantic identifiers: project ID PZEUS / work package PZEUS-1.

This PR extends the "New Project" page to include an identifier form that gets auto-filled with a suggestion when a user types a project name and then clicks or tabs outside the name input form.

The identifier suggestions are pulled from the API and support both the legacy format as well as the new semantic format.

Screenshots

Screenshot 2026-03-13 at 0 58 01 Screenshot 2026-03-13 at 0 58 15

What approach did you choose and why?

Merge checklist

  • Added/updated tests
  • Added/updated documentation in Lookbook (patterns, previews, etc)
  • Tested major browsers (Chrome, Firefox, Edge, ...)

@thykel thykel marked this pull request as ready for review March 16, 2026 21:52
@thykel thykel requested a review from akabiru March 16, 2026 21:52
@thykel
Copy link
Contributor Author

thykel commented Mar 16, 2026

@github-actions
Copy link

github-actions bot commented Mar 18, 2026

Deploying openproject with PullPreview

Field Value
Latest commit 19ae970
Job deploy
Status ✅ Deploy successful
Preview URL https://pr-22330-72855-new-projec-ip-168-119-51-130.my.opf.run:443

View logs

Copy link
Member

@akabiru akabiru left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coming along nicely! A couple of remarks 🤼


if (this.identifierInput) {
this.identifierInput.readOnly = true;
this.identifierInput.placeholder = I18n.t('js.projects.identifier_suggestion.loading');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🍊 For loading state- you might want to consider: https://primer.style/product/components/text-input/#in-a-loading-state due to a11ly

…rs' into feature/72855-new-project-with-semantic-identifiers
@thykel thykel merged commit dd804dc into feature/71896-change-identifier-with-semantic-identifiers Mar 19, 2026
9 of 11 checks passed
@thykel thykel deleted the feature/72855-new-project-with-semantic-identifiers branch March 19, 2026 00:21
@github-actions github-actions bot locked and limited conversation to collaborators Mar 19, 2026
@thykel
Copy link
Contributor Author

thykel commented Mar 19, 2026

Huh, I thought I somehow understand git, but I'm not sure what happened here. Running git merge to incorporate the parent PR's changes (my usual workflow) somehow merged an old version of this PR into the parent one.

Likely something I messed up in my own repository copy?

I'm just gonna port the PR feedback commits into the older PR, then we can split it again if needed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants