Skip to content

OpenConceptLab/ocl_online#487 | The mapping form fills in a concept's name only if the concept is public - #126

Draft
paynejd wants to merge 4 commits into
mainfrom
ocl_online-487-mapping-form
Draft

paynejd wants to merge 4 commits into
mainfrom
ocl_online-487-mapping-form

Conversation

@paynejd

@paynejd paynejd commented Dec 3, 2026

Copy link
Copy Markdown
Member

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). getNameToCopy in src/common/mappings.js is 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

paynejd and others added 4 commits December 3, 2026 07:49
… 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
@paynejd
paynejd requested a review from snyaggarwal December 3, 2026 12:50
@paynejd

paynejd commented Dec 3, 2026

Copy link
Copy Markdown
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

No deployments
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