-
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
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
Outdated
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 😄
arches_lingo/src/arches_lingo/components/generic/ResourceInstanceRelationships.vue
Show resolved
Hide resolved
arches_lingo/src/arches_lingo/components/scheme/report/SchemeStandard.vue
Outdated
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. |
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.
looking good, will wait for the final 👍 until the PRs based off of this one have been merged
emits("deleteLabel", tileId); | ||
}, | ||
rejectProps: { | ||
label: "Cancel", |
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?
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.
done in label viewer genericizing.
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.
not seeing the change?
import type { AppellativeStatus } from "@/arches_lingo/types"; | ||
|
||
const { $gettext } = useGettext(); | ||
const expandedRows = ref([]); |
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.
nit: declare generic refs below props/emits
}, | ||
acceptProps: { | ||
label: "Delete", | ||
severity: "danger", |
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.
the severity labels exist in constants.ts
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.
done in label viewer genericizing.
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.
Not seeing the change?
? error.message | ||
: $gettext("Could not save the scheme standard"), | ||
}); | ||
} | ||
|
||
getSectionValue(); | ||
} | ||
|
||
async function getSectionValue() { |
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.
looks like this could be abstracted to 2 functions to improve readability
* adds notes section * fix naming nit * wrap gettext in spans * pr feedback * pr feedback
eb4d590
to
21057da
Compare
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.
looks good overall, just a few minor things ( and a few things that maybe got lost in the merge/rebase ? )
const options = await getCachedOptions(); | ||
|
||
if (options) { | ||
await setSchemeInstance(options); |
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.
nit: don't need to await this
ResourceInstanceReference[] | undefined | ||
> { | ||
try { | ||
const options = !textualWorkOptions.value |
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.
nit: invert this
const options = textualWorkOptions.value || await getOptions();
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.
nice.
getSectionValue(); | ||
emit(UPDATED); |
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.
nit: would move these inside the try
as these will still run even if that errors
), | ||
}); | ||
} | ||
emit(UPDATED); |
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.
same with this, it will run regardless of success
arches_lingo/src/arches_lingo/components/generic/LabelViewer.vue
Outdated
Show resolved
Hide resolved
}, | ||
acceptProps: { | ||
label: "Delete", | ||
severity: "danger", |
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.
Not seeing the change?
emits("deleteLabel", tileId); | ||
}, | ||
rejectProps: { | ||
label: "Cancel", |
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.
not seeing the change?
🏓 |
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 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.
let's GOOOOO! 🚀
* Changes to allow for a single form per tile * move section types to prep for conflict * PR feedback * pr feedback * purge tab * purge more tabs
3f68847
to
fa5dc08
Compare
Adds scheme names/labels section