-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adds scheme names/labels section #153
base: main
Are you sure you want to change the base?
Conversation
This will need to merge into main before/at the same time as JC's form editor ticket. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
works well, just some code design questions
arches_lingo/src/arches_lingo/components/scheme/report/SchemeStandard.vue
Show resolved
Hide resolved
arches_lingo/src/arches_lingo/components/scheme/report/SchemeStandard.vue
Show resolved
Hide resolved
arches_lingo/src/arches_lingo/components/scheme/report/SchemeSection.vue
Show resolved
Hide resolved
arches_lingo/src/arches_lingo/components/generic/LabelViewer.vue
Outdated
Show resolved
Hide resolved
arches_lingo/src/arches_lingo/components/generic/LabelViewer.vue
Outdated
Show resolved
Hide resolved
arches_lingo/src/arches_lingo/components/generic/LabelViewer.vue
Outdated
Show resolved
Hide resolved
arches_lingo/src/arches_lingo/components/generic/LabelViewer.vue
Outdated
Show resolved
Hide resolved
arches_lingo/src/arches_lingo/components/generic/LabelViewer.vue
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There appear to be some warnings in the console relating to various Scheme*
components. Mind giving those a look?
But yeah overall looking good 👍
/> | ||
<Column | ||
field="appellative_status_ascribed_name_content" | ||
header="Label" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i18n for headers 😄
@@ -26,7 +26,9 @@ function onUpdate(val: string[]) { | |||
<div v-if="mode === EDIT"> | |||
<ResourceInstanceRelationshipsEditor | |||
:options="options" | |||
:val="value?.map((x) => x.resourceId) ?? []" | |||
:val=" | |||
value?.map((referenceValue) => referenceValue.resourceId) ?? [] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❤️
|
||
async function deleteSectionValue(tileId: string) { | ||
const result = await deleteSchemeLabelTile(tileId); | ||
if (result) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, there should be error handling for sure. IMO wrap this in a try/catch that will raise a Toast error. I'd say same with getSectionValue
and any other API.
arches_lingo/src/arches_lingo/components/scheme/report/SchemeStandard.vue
Show resolved
Hide resolved
There is a second, related item to genericize the label viewer. I separated it from this PR to get commentary on patterns therein. See #161 - set to merge into this PR. |
Adds scheme names/labels section