Skip to content

OpenConceptLab/ocl_issues#3061, OpenConceptLab/ocl_online#863, OpenConceptLab/ocl_online#865 | Saved text and links show the same way everywhere, and requests with a token go to the app's own servers - #124

Merged
snyaggarwal merged 8 commits into
mainfrom
ocl_issues-3061-about-display
Dec 3, 2026

Conversation

@paynejd

@paynejd paynejd commented Dec 3, 2026

Copy link
Copy Markdown
Member

Please merge this at once. Production already runs the first seven commits. Until they're on main, a production deploy from main would undo them.

Text, links and addresses that people save in OCL are handled the same way everywhere, and requests with a person's token go to the app's own servers.

Closes OpenConceptLab/ocl_issues#3061. Part of OpenConceptLab/ocl_online#863 and OpenConceptLab/ocl_online#865. The first seven commits are live as 3.0.59-alpha-3de288df. This brings them to main, with one more from their review.

One commit each:

  1. Organization About text and user bios use MarkdownContent, as the repository About tab does. Text stored as HTML or Markdown keeps its headings, lists, links, underlines, phone links, pasted images and in-page links. The hidden copy of the text, which nothing read, is gone.
  2. The About editor (RTEditor, in the organization and repository forms) opens stored text through the same rules. It also keeps what the editor writes and the page leaves out: alignment, indents, fonts, checklists and colors, so saving doesn't lose them.
  3. Concept search results show the matched synonym as text, with every matched part in bold. Only the first was bold; the others were in italics.
  4. A link to the new repository form (copyFrom) fetches a repository from this server only. Another server's address is filled in, for the person to fetch.
  5. Requests with a person's token go to the OCL API (the one set for the app, or chosen in it), and to the analytics server and the OCL AI Assistant set for the app. overrideURL takes a path, or a full address on the API. This is the Classic Term Browser's check (API requests only go to the API host oclweb2#56). The compare pages now say when a concept, mapping or version in their link can't be found, where they showed a spinner.
  6. An id in a request's path is one part of it. One that's already encoded isn't encoded twice.
  7. A link opens only as a web, mail or phone address, or one of the app's own downloads. One check of every click covers them all.
  8. An id of one or two dots isn't a part of a path, so a request for one is refused. Ids with dots in them, such as v1.0 or 1D62.1, work as before.

What looks different

  • On organization pages, headings are smaller (the repository About tab's sizes), links are in the primary color, and colors that came with pasted text are gone.
  • Text written in Markdown is formatted. WHO's About text showed its links as [icd.who.int](…).
  • A bio of up to three lines still has no Read more. A longer one closes to exactly three lines.
  • The compare pages' "could not be found" messages. errors.version_404 is new, in en, es, pt-BR and zh.

For whoever adds a request or a link

  • A request to another server with the person's token needs that server in getAppServers() (APIService.js). Anything else is refused, and fails as a request that never reached the server does.
  • request() passes on only the config keys in REQUEST_CONFIG_KEYS. To set a whole address, set service.URL.

Checks

  • ESLint as CI runs it exits 0. npm test passes: 410 tests, 53 of them new. No new dependency: loadComponent.js compiles the app's own components with Babel, and the tests read their static markup.
  • All 45 public organizations with About text: 44 keep the same words, elements and links. The other is WHO, as above.
  • In real Quill, the stored text of 600 organizations and repositories, and a sample of everything the toolbar writes, loads the same as before.
  • In Chrome, with the private analytics package: 12 signed-in pages (home, Usage, profile, forms, imports, search) make the same requests and show the same text as before. Real concept pages with spaces, dots, percent signs and slashes in their ids do too.
  • By hand in Chrome, because they need a real page: Read more and Read less, the organization form, search results in cards across two searches, Create similar, the AI change comment, the compare pages, links inside the app, middle clicks and downloads.

🤖 Generated with Claude Code

https://claude.ai/code/session_01AaZ4qWA7kift9SmfdNbRe8

paynejd and others added 8 commits December 3, 2026 00:27
…ser bios show through the sanitized display

- About renders with MarkdownContent, as the repository About tab does, for organizations with and without a banner and for user bios. Text stored as HTML or Markdown keeps its headings, lists, links and other formatting.
- The hidden copy of the text, which nothing read, is gone.
- The display also keeps underlines, phone links and pasted images, which the About editor saves, and the ids and names that in-page links use: names on links, and ids in lower case or with a hyphen, as the change log's anchors have. A text nested too deeply to format shows as it was written.
- A bio of up to three lines still has no Read more. A longer one closes to exactly three lines.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AaZ4qWA7kift9SmfdNbRe8
…rough the sanitized display's rules

It also keeps what the editor writes and the display leaves out: alignment, indents, fonts and checklists, and the colors that come with pasted text, so saving doesn't lose them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AaZ4qWA7kift9SmfdNbRe8
…ed synonym as text, with every matched part in bold

Only the first matched part was bold; the others were in italics.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AaZ4qWA7kift9SmfdNbRe8
…ches a repository from this server only

Another server's address in copyFrom is filled in, for the person to fetch. The app's own Create similar links are to this server, and the box for an OCL address still takes other servers.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AaZ4qWA7kift9SmfdNbRe8
…the app's own servers only

- overrideURL takes a path, or a full address on the OCL API. Anything else fails as a request that never reached the server does. Where a request with a token goes is checked again when it's sent, by whole origin. This is the Classic Term Browser's check (OpenConceptLab/oclweb2#56).
- The server set for the app, or chosen in it, is the API. The others are the analytics server, which the usage pages read, and the OCL AI Assistant, which writes change comments, each as set for the app. Their redirects aren't followed.
- The compare pages say when a concept, mapping or version in their link can't be found, and an answer for a link that's been left changes nothing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AaZ4qWA7kift9SmfdNbRe8
… of it

Ids given to users(), orgs() and the like are encoded, and one that's already encoded isn't encoded twice. A backslash in any path stays inside its part, where a browser would read it as a slash.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AaZ4qWA7kift9SmfdNbRe8
…hone address

Links can hold addresses that people saved, such as a mapping's target source. One check of every click covers them all. Downloads work as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AaZ4qWA7kift9SmfdNbRe8
… of a path

A request for one is refused, however the dots are encoded. Ids with dots in them, such as v1.0 or 1D62.1, work as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AaZ4qWA7kift9SmfdNbRe8
@paynejd
paynejd requested a review from snyaggarwal December 3, 2026 09:59
@paynejd

paynejd commented Dec 3, 2026

Copy link
Copy Markdown
Member Author

Reviews. These were done on a private ticket, the first seven commits' before they went to production. This is the summary.

  • Codex (codex-cli 0.169.0): three passes and a clean final check on commits 1 to 4, and the same on commits 5 to 7. One pass on commit 8, clean. No P0 or P1 is open.
  • Adversarial reviews by fresh Claude subagents: five, covering the display, the editor and search, requests, the two servers besides the API, and ids and links. No P0 or P1 is open.
  • Sunny reviewed commits 1 to 7 before the release. Commit 8 is from that review.
  • Fixed on the way, each with a test unless it says otherwise:
    • the display keeps phone links, pasted images, in-page links, and links typed with a capital or a space in front;
    • the editor keeps alignment, indents, checklists and newer color formats;
    • the Usage pages and the AI change comment still reach their own servers;
    • an answer for a compare link that's been left changes nothing;
    • a bio just over three lines gets its Read more (checked in Chrome).
  • Accepted:
    • colors that came with pasted text aren't shown on the page. The repository About tab drops them too, and the editor keeps them;
    • the editor drops video embeds. It has no button for them, and none is stored;
    • no automated test opens the version compare page itself. The request behind it is tested, and the page was checked in Chrome;
    • an indented list item looks flat on the page, as it did before.
  • Not done: the simplification review.
  • Not tested: Firefox, and Safari beyond one check of request headers.

@snyaggarwal
snyaggarwal merged commit abbfb2a into main Dec 3, 2026
2 checks passed
@snyaggarwal
snyaggarwal deleted the ocl_issues-3061-about-display branch December 3, 2026 10:03
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.

Bug: TBv3 organization and user About content is rendered without sanitization

2 participants