Skip to content

Conversation

@JunHammy
Copy link
Contributor

What was done in this PR

1. Metadata Enhancements

  • Additional Information (addInfo):
    • Added addInfo field to metadataDisplay.
    • Used within catalogueItemView to render supplementary metadata details for artefacts.

2. UI Improvements

  • Toaster Notifications:
    • Updated UI styling for better visual clarity and user feedback.

3. Artefact Editor Page

A new ArtefactEditor page was implemented, featuring:

a. EditorCard Display Logic

  • Dynamically renders content depending on artefact type:
    • MM (Meeting Minutes):
      • Includes metadataToggle (segment group for transcription toggling).
      • Displays relevant metadata based on the selected transcription type.
    • HF (Human Figures):
      • Displays addInfo metadata.
      • Shows associated figures via figureDisplay.

b. Edit Mode & Action Bar

  • Edit Mode Activation:
    • Accessed via an Edit button on editorCard.
    • To exit editor mode, hit on the button again and all changes will be reverted.
    • Swaps metadata display fields into editable text areas.
  • Change Detection:
    • Automatically detects unsaved changes.
    • Displays artefactEditorActionBar to allow:
      • Reset: Discard edits and revert to original data.
      • Save: Persist changes to the backend.

4. Figure Display Enhancements

  • figureDisplay Component:
    • Renders headshot images based on figureIds.
    • Edit Mode Interaction:
      • Allows users to remove specific figures from an artefact by clicking on them.

@JunHammy JunHammy requested a review from Prakhar896 August 13, 2025 08:08
@JunHammy JunHammy self-assigned this Aug 13, 2025
@JunHammy JunHammy added the enhancement New feature or request label Aug 13, 2025
Copy link
Contributor

@Prakhar896 Prakhar896 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Prakhar896 Prakhar896 merged commit 963dad3 into main Aug 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants