• Robert Knight's avatar
    Save context metadata provided by LMS app with new annotations · 4fe2f5bf
    Robert Knight authored
    When the embedder frame (eg. our LMS app) provides context metadata to be saved
    with annotations via the `annotationMetadata` config property, save that with
    new annotations in the `metadata` field.
    
    We add this information only when an annotation is created, and not on
    subsequent edits, because the main use case in the LMS context is to record the
    assignment where the annotation was created. If the user edits that annotation
    subsequently in another assignment, we don't want it to be "moved" by updating
    the `metadata` field.
    
    Part of https://github.com/hypothesis/lms/issues/5698
    4fe2f5bf
Name
Last commit
Last update
..
components Loading commit data...
config Loading commit data...
helpers Loading commit data...
services Loading commit data...
store Loading commit data...
test Loading commit data...
util Loading commit data...
cross-origin-rpc.ts Loading commit data...
index.tsx Loading commit data...
markdown-commands.ts Loading commit data...
media-embedder.ts Loading commit data...
render-markdown.ts Loading commit data...
search-client.ts Loading commit data...
service-context.tsx Loading commit data...
websocket.ts Loading commit data...