Skip to content

Commit

Permalink
Merge pull request #32 from performant-software/feature/udcsl202_user…
Browse files Browse the repository at this point in the history
…_defined_field_errors

UDCSL #202 - User defined field errors
  • Loading branch information
dleadbetter authored May 4, 2023
2 parents 793a5cc + cf4c93b commit 7005986
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 24 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ gem 'exif', '~> 2.2.3'
gem 'httparty', '~> 0.17.3'

# User defined fields
gem 'user_defined_fields', git: 'https://github.com/performant-software/user-defined-fields.git', tag: 'v0.1.4'
gem 'user_defined_fields', git: 'https://github.com/performant-software/user-defined-fields.git', tag: 'v0.1.5'

# Data migrations
gem 'data_migrate', '~> 8.1.1'
Expand Down
4 changes: 2 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ GIT

GIT
remote: https://github.com/performant-software/user-defined-fields.git
revision: 3ee864cc829e35b6c470905af97043ed10e0b02c
tag: v0.1.4
revision: 8be734aead7c44211b49d16017e99741186bbdcd
tag: v0.1.5
specs:
user_defined_fields (0.1.0)
rails (>= 6.0.3.2, < 8)
Expand Down
6 changes: 3 additions & 3 deletions client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
"flow": "flow"
},
"dependencies": {
"@performant-software/semantic-components": "^1.0.4",
"@performant-software/shared-components": "^1.0.4",
"@performant-software/user-defined-fields": "^1.0.4",
"@performant-software/semantic-components": "^1.0.12",
"@performant-software/shared-components": "^1.0.12",
"@performant-software/user-defined-fields": "^1.0.12",
"classnames": "^2.3.1",
"i18next": "^21.8.0",
"react": "^17.0.2",
Expand Down
5 changes: 3 additions & 2 deletions client/src/pages/Project.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// @flow

import { AssociatedDropdown, FileInputButton, LazyImage } from '@performant-software/semantic-components';
import { UserDefinedFieldsEmbeddedList } from '@performant-software/user-defined-fields';
import { UserDefinedFields, UserDefinedFieldsEmbeddedList } from '@performant-software/user-defined-fields';
import React, { type ComponentType, useEffect } from 'react';
import { withTranslation } from 'react-i18next';
import { Button, Form } from 'semantic-ui-react';
Expand Down Expand Up @@ -129,7 +129,8 @@ const Project: ComponentType<any> = withEditPage(ProjectForm, {
.save(project)
.then(({ data }) => data.project)
),
required: ['name', 'description', 'organization_id']
required: ['name', 'description', 'organization_id'],
resolveValidationError: UserDefinedFields.resolveError.bind(this)
});

export default Project;
33 changes: 17 additions & 16 deletions client/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1606,15 +1606,14 @@
"@stitches/react" "^1.2.7"
react "^18.2.0"

"@performant-software/semantic-components@^1.0.4":
version "1.0.4"
resolved "https://registry.yarnpkg.com/@performant-software/semantic-components/-/semantic-components-1.0.4.tgz#4145b7937332b495694d26e96778176bce51e2ea"
integrity sha512-fkqioC01Vi6XhtWZOgrmKjbjDZb+7qkdP8grIzCwn59mbGEHzinL4H8Wiv/WU3CWCr2h5SlmT+BGNbTlczyM5w==
"@performant-software/semantic-components@^1.0.12":
version "1.0.12"
resolved "https://registry.yarnpkg.com/@performant-software/semantic-components/-/semantic-components-1.0.12.tgz#dd99502c534b8955b9c81a123b8377f00a27b3a6"
integrity sha512-ovoyVpql/V9TEcZ4fNZCl3NNj/eXhE4qdslhvu37XKljJ99arR8INuYI27t2sVi2bYdGibiqIWEiBYyLWdPABw==
dependencies:
"@performant-software/shared-components" "^1.0.4"
"@performant-software/shared-components" "^1.0.12"
"@react-google-maps/api" "^2.8.1"
axios "^0.26.1"
citeproc "^2.4.62"
i18next "^19.4.4"
react-calendar "^3.3.0"
react-color "^2.18.1"
Expand All @@ -1630,14 +1629,15 @@
zotero-api-client "^0.40.0"
zotero-translation-client "^5.0.1"

"@performant-software/shared-components@^1.0.4":
version "1.0.4"
resolved "https://registry.yarnpkg.com/@performant-software/shared-components/-/shared-components-1.0.4.tgz#0b2be8edb1359ef0e1da8fcd7e8379ec3156f347"
integrity sha512-tePGzd7fv+wZuZ3KuELl/YzGM3fY0wSnYmypQaC2iAwYV6lNuCi+JnEqJb7OSrZ5zzua4leRsn/pQ19JERDYLA==
"@performant-software/shared-components@^1.0.12":
version "1.0.12"
resolved "https://registry.yarnpkg.com/@performant-software/shared-components/-/shared-components-1.0.12.tgz#ca08303feaa3227a38d571b00c54e33de7a915f7"
integrity sha512-P+/HpkCl/Gng+q6U3bFhxGQ34ZxWFzEi35SlQq1+HNH5RvYpkn4oNttOq5M7JO9Y/BbVy2sKlT2zP8QQ36FoWQ==
dependencies:
"@react-google-maps/api" "^2.8.1"
"@samvera/clover-iiif" "^1.10.3"
axios "^0.26.1"
citeproc "^2.4.62"
i18next "^19.4.4"
moment "^2.27.0"
moment-islamic-civil ACGC/moment-islamic-civil
Expand All @@ -1650,14 +1650,15 @@
simple-keyboard "^3.0.0"
simple-keyboard-layouts "^3.0.0"
underscore "^1.13.2"
zotero-translation-client "^5.0.1"

"@performant-software/user-defined-fields@^1.0.4":
version "1.0.4"
resolved "https://registry.yarnpkg.com/@performant-software/user-defined-fields/-/user-defined-fields-1.0.4.tgz#091f79fec013507955deac111b8d9f73030aeead"
integrity sha512-gTJud8tJDnWdNF9hJynztuVCRyZUJtEZ1c2/91YwzKHMjn3Z/aUtbgoa/R8ZRfJnws6uZeID3S2kstfiJamm3w==
"@performant-software/user-defined-fields@^1.0.12":
version "1.0.12"
resolved "https://registry.yarnpkg.com/@performant-software/user-defined-fields/-/user-defined-fields-1.0.12.tgz#e44506d39f7ec8d0f82da0b4cca67ef3456b95ca"
integrity sha512-HK1oW6cgPSekmvVmPikaHgB8FnnhRJe2JjSyOFG6SkXWdFCEQjKLJDR5EdUd/ee3KDVvYM/O4vyYzr5ltCFpcA==
dependencies:
"@performant-software/semantic-components" "^1.0.4"
"@performant-software/shared-components" "^1.0.4"
"@performant-software/semantic-components" "^1.0.12"
"@performant-software/shared-components" "^1.0.12"
i18next "^21.9.1"
semantic-ui-react "^2.1.2"
underscore "^1.13.2"
Expand Down

0 comments on commit 7005986

Please sign in to comment.