Skip to content

Commit

Permalink
Merge pull request #305 from performant-software/feature/cdc301_relat…
Browse files Browse the repository at this point in the history
…ed_record_pagination

CDC #301 - Related Record Pagination
  • Loading branch information
dleadbetter authored Sep 26, 2024
2 parents 65a33b6 + 58f8362 commit 640fe81
Show file tree
Hide file tree
Showing 7 changed files with 42 additions and 15 deletions.
4 changes: 2 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ gem 'jwt', '~> 2.4', '>= 2.4.1'
gem 'bcrypt', '~> 3.1.18'

# Resource API
gem 'resource_api', git: 'https://github.com/performant-software/resource-api.git', tag: 'v0.5.9'
gem 'resource_api', git: 'https://github.com/performant-software/resource-api.git', tag: 'v0.5.12'

# Authentication
gem 'jwt_auth', git: 'https://github.com/performant-software/jwt-auth.git', tag: 'v0.1.2'

# Core data
gem 'core_data_connector', git: 'https://github.com/performant-software/core-data-connector.git', tag: 'v0.1.61'
gem 'core_data_connector', git: 'https://github.com/performant-software/core-data-connector.git', tag: 'v0.1.62'

# IIIF
gem 'triple_eye_effable', git: 'https://github.com/performant-software/triple-eye-effable.git', tag: 'v0.2.1'
Expand Down
8 changes: 4 additions & 4 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
GIT
remote: https://github.com/performant-software/core-data-connector.git
revision: 1894e19f4d0c29ca4c4e531f84ad9fafa1c5fe7d
tag: v0.1.61
revision: 5b091181d7fa3329e8a79eb7687263b06a9e0977
tag: v0.1.62
specs:
core_data_connector (0.1.0)
activerecord-postgis-adapter (~> 8.0)
Expand Down Expand Up @@ -40,8 +40,8 @@ GIT

GIT
remote: https://github.com/performant-software/resource-api.git
revision: 29bb30e0977825e846acc8aa46895ecc798b31c7
tag: v0.5.9
revision: dd731cd55db4c6eaed503c35b2e67ad3b87d7d97
tag: v0.5.12
specs:
resource_api (0.1.0)
pagy (~> 5.10)
Expand Down
20 changes: 13 additions & 7 deletions client/src/components/ManifestLimitIcon.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import cx from 'classnames';
import React, { useMemo } from 'react';
import { useTranslation } from 'react-i18next';
import { IoWarning } from 'react-icons/io5';
import { Icon, Popup } from 'semantic-ui-react';
import { Button, Icon, Popup } from 'semantic-ui-react';
import MediaContentUtils from '../utils/MediaContent';
import styles from './ManifestLimitIcon.module.css';

Expand All @@ -26,13 +26,19 @@ const ManifestLimitIcon = () => {
<Popup
content={t('ManifestLimitIcon.labels.limit', { limit })}
trigger={(
<Icon
className={cx(styles.manifestLimitIcon, styles.icon)}
<Button
basic
compact
size='mini'
>
<IoWarning
size='2em'
/>
</Icon>
<Icon
className={cx(styles.manifestLimitIcon, styles.icon)}
>
<IoWarning
size='2em'
/>
</Icon>
</Button>
)}
/>
);
Expand Down
9 changes: 9 additions & 0 deletions client/src/components/RelatedMediaContents.js
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,15 @@ const RelatedMediaContents = () => {
renderMeta={() => ''}
saved={saved}
searchable={false}
session={{
key: `related_media_contents_${projectModelRelationship?.id}`,
storage: localStorage
}}
sort={[{
name: 'name',
value: 'core_data_connector_media_contents.name',
text: t('RelatedMediaContents.sort.name')
}]}
/>
{ modal === Modal.upload && (
<MediaContentsUploadModal
Expand Down
3 changes: 3 additions & 0 deletions client/src/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,9 @@
"name": "Name",
"title": "Merge Media Contents"
}
},
"sort": {
"name": "Name"
}
},
"MediaContentsSelectize": {
Expand Down
8 changes: 6 additions & 2 deletions client/src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,12 @@ textarea {
box-shadow: none;
}

.list.data-table-column-selector > .header > .ui.grid > .row > .column > .ui.menu .ui.button:focus,
.list.data-table-column-selector > .header > .ui.grid > .row > .column > .ui.menu .ui.button:hover {
.list > .header > .ui.grid > .row > .column > .ui.menu {
min-height: unset;
}

.list > .header > .ui.grid > .row > .column > .ui.menu .ui.button.dropdown:focus,
.list > .header > .ui.grid > .row > .column > .ui.menu .ui.button.dropdown:hover {
background-color: transparent !important;
}

Expand Down
5 changes: 5 additions & 0 deletions client/src/pages/MediaContents.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,11 @@ const MediaContents = () => {
key: `media_contents_${projectModelId}`,
storage: localStorage
}}
sort={[{
key: 'name',
value: 'core_data_connector_media_contents.name',
text: t('MediaContents.sort.name')
}]}
/>
</>
);
Expand Down

0 comments on commit 640fe81

Please sign in to comment.