nyudlts / ultraviolet

UltraViolet 💜 is NYU Libraries' DLTS deployment of the InvenioRDM framework. All info in the link.
https://nyudlts.github.io/ultraviolet/
5 stars 5 forks source link

Define UI options to better convey UV policies to users #43

Open andrewbattista opened 3 years ago

andrewbattista commented 3 years ago

6-PAT and 17-PAT are related to general work with the deposit form. Certain fields can benefit from "helpers" in the vein of the default text in the version field (i.e., short sentences that link to patron facing policies or information that helps depositors). These can include but are not limited to:

This is related to work required for #31 and involves a two step process of generating the information/text/links required for the form and then overriding the theme detail pages

dismorfo commented 2 years ago

See: https://react.semantic-ui.com/modules/popup/#types-trigger

Looks like we will need to update RDMDepositForm.js

From:

import { Card, Container, Divider, Grid, Ref, Sticky } from "semantic-ui-react";

To:

import { Popup, Card, Container, Divider, Grid, Ref, Sticky } from "semantic-ui-react";

And then we can use the component. Example of updating TitlesField component.

<Popup
  trigger={
    <div>
      <TitlesField
        options={this.vocabularies.metadata.titles}
        recordUI={this.props.record.ui}
        required
      />
    </div>
  }
>
  <Popup.Header>
    Popup example
  </Popup.Header>
  <Popup.Content>
    Popup body
  </Popup.Content>
</Popup>
ekate commented 2 years ago

@dismorfo thank you ! The next step will be for me to work with @nmwolf and @kwissel to determine where we need to add popups