Skip to content

Commit

Permalink
Merge pull request #410 from Smithsonian/develop
Browse files Browse the repository at this point in the history
v0.9.10 Release Candidate 6
  • Loading branch information
jahjedtieson authored May 14, 2022
2 parents 85df469 + 0c9effc commit a16cc6a
Show file tree
Hide file tree
Showing 103 changed files with 3,663 additions and 1,913 deletions.
4 changes: 2 additions & 2 deletions client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dpo-packrat/client",
"version": "0.9.9",
"version": "0.9.10",
"private": true,
"license": "Apache-2.0",
"description": "Client for Packrat",
Expand Down Expand Up @@ -28,7 +28,7 @@
"dependencies": {
"@apollo/client": "3.1.5",
"@date-io/date-fns": "1.3.13",
"@dpo-packrat/common": "0.9.9",
"@dpo-packrat/common": "0.9.10",
"@material-ui/core": "4.11.0",
"@material-ui/data-grid": "4.0.0-alpha.33",
"@material-ui/icons": "4.9.1",
Expand Down
7 changes: 5 additions & 2 deletions client/src/components/shared/AssetIdentifiers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,12 @@ interface AssetIdentifiersProps {
onRemoveIdentifer: (identifiers: StateIdentifier[]) => void;
subjectView?: boolean;
onUpdateIdIdentifierPreferred?: (id: number) => void;
identifierName: string;
}

function AssetIdentifiers(props: AssetIdentifiersProps): React.ReactElement {
const { systemCreated, identifiers, onSystemCreatedChange, onAddIdentifer, onUpdateIdentifer, onRemoveIdentifer, subjectView, onUpdateIdIdentifierPreferred } = props;
const { systemCreated, identifiers, onSystemCreatedChange, onAddIdentifer, onUpdateIdentifer, onRemoveIdentifer,
subjectView, onUpdateIdIdentifierPreferred, identifierName } = props;
const classes = useStyles();
const [getEntries, getInitialEntry] = useVocabularyStore(state => [state.getEntries, state.getInitialEntry]);

Expand Down Expand Up @@ -78,9 +80,10 @@ function AssetIdentifiers(props: AssetIdentifiersProps): React.ReactElement {
onUpdateIdentifer(updatedIdentifiers);
};

const label: string = (identifierName ? identifierName : 'Asset') + ' Identifier(s)';
return (
<Box marginBottom='10px'>
<FieldType required label='Asset Identifier(s)' padding='10px'>
<FieldType required label={label} padding='10px'>
<Box display='flex' justifyContent='space-between'>
<Box className={classes.assetIdentifier}>
<label htmlFor='systemCreated' style={{ display: 'none' }}>System Created Identifier</label>
Expand Down
272 changes: 0 additions & 272 deletions client/src/components/shared/DataGridWithPagination.tsx

This file was deleted.

5 changes: 3 additions & 2 deletions client/src/components/shared/GenericBreadcrumbsView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,9 @@ interface BreadcrumbsViewProps {
function GenericBreadcrumbsView(props: BreadcrumbsViewProps): React.ReactElement {
const { items, highlighted = false, end = null } = props;
const classes = useStyles();

const splitPathCrumbsArray = items.split('/');
if (!items || items.length === 0 || !items.includes('/')) return <React.Fragment />;
const trimmedItems = items[items.length - 1] === '/' ? items.slice(0, items.length - 1) : items;
const splitPathCrumbsArray = trimmedItems.split('/');
const finalPathCrumbsArray = splitPathCrumbsArray.map(subPath => {
return {
subPath,
Expand Down
2 changes: 1 addition & 1 deletion client/src/components/shared/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ function Header(): React.ReactElement {
// Filter and keyword clear when in Repository
const clearSearchAndUpdateRepositorySearch = (): void => {
resetKeywordSearch();
resetRepositoryFilter();
resetRepositoryFilter(true, true);
updateRepositorySearch();
};

Expand Down
Loading

0 comments on commit a16cc6a

Please sign in to comment.