Repository navigation
Conversation
… name only if the concept is public Everyone who can view a mapping sees the name saved on it. A private concept's name stays empty for the author to type. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AaZ4qUWvM4HRKZktm5NSVk
…ows its concept When the ends are swapped or an end becomes another concept. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AaZ4qUWvM4HRKZktm5NSVk
…'t sent with a new URL Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AaZ4qUWvM4HRKZktm5NSVk
…its code, or by its URL without the last slash Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AaZ4qUWvM4HRKZktm5NSVk
Member
Author
|
Reviews: Codex passes, a check of the commits after them and a simplification review, recorded on OpenConceptLab/ocl_online#487. No P0 or P1 is open. |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Draft: merge it once OpenConceptLab/oclapi2#1122 is in production.
What changes
The mapping form fills in and saves a concept's name only if the concept is public. A private concept's name stays empty, and the author can type one. Everyone who can view a mapping sees the name saved on it.
With a public concept the form works as before.
A name that was filled in follows its concept when the two ends are swapped, and goes when that end becomes another concept.
How
A list doesn't say whether a concept is public, so the form asks for the concept itself (
public_can_view).getNameToCopyinsrc/common/mappings.jsis the rule, with a test.OpenConceptLab/oclapi2#1122 makes an update that moves a mapping without a new name drop the old one. The form relies on it.
Checked
Unit tests and ESLint, and the form by itself in a browser with a stand-in API: two selected concepts, one public and one private; the ends swapped before the answers arrive; a typed name; a URL changed or emptied in Advanced; and what Submit sends.
Refs OpenConceptLab/ocl_online#487.
🤖 Generated with Claude Code
https://claude.ai/code/session_01AaZ4qUWvM4HRKZktm5NSVk