Skip to content

Generate static JSON to power website modals#27

Merged
epistrephein merged 14 commits into
mainfrom
website/json-backend
May 21, 2026
Merged

Generate static JSON to power website modals#27
epistrephein merged 14 commits into
mainfrom
website/json-backend

Conversation

@epistrephein

@epistrephein epistrephein commented May 20, 2026

Copy link
Copy Markdown
Member

Website modals content relied on a symbolic link of the subgraphs directory and its turtle files to power the dynamic generation of stages and divergences. This made the process brittle and a little hacky, so we redesigned it using a python script that dumps the subgraphs content into a static JSON file which is then read by the javascript, populating the modals accordingly.

Together with this change, the modals frontend was redesigned a little:

  • Removed the flaky divergences tooltip and moved their content below the stage realization description
  • The stage title display also the canonical stage it realizes
  • The monomyth expression label is shown instead of a generic label
  • Stage 1 is preselected when opening a modal of a work
  • Right and left arrow keys can be used to navigate the stages forward and backward (when a work has more than 1 journey, arrows move the last moved journey)
  • Added box with ontology documentation link

@epistrephein epistrephein self-assigned this May 20, 2026
@epistrephein epistrephein force-pushed the website/json-backend branch from a508b01 to e0422e1 Compare May 20, 2026 07:39
@epistrephein epistrephein force-pushed the website/json-backend branch from e0422e1 to 110029c Compare May 20, 2026 07:39
@epistrephein epistrephein merged commit e690180 into main May 21, 2026
@epistrephein epistrephein deleted the website/json-backend branch May 21, 2026 10:24
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