-
Notifications
You must be signed in to change notification settings - Fork 19
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
feat: Update directory app with services #4501
Conversation
Change Ontology.Capabilities.name and Ontology.Capabilities.label into [Schema].Services.name
…directory-service-model
- add checkbox to service card - move sections to bioback card folder - add typing to checkout store - setup stuff to add selected services
- remove unneeded imports - make table html valid
pass params direct as typed value, instead of wrapper object
- disable tab is list if empty
+ code cleanup
Looking at the user interface changes I think this is 95% what we would like to see. The card with tabs for collections, services and organisation details is quite clean. Also good that you made the split between collections and services in the request cart. Some improvements:
|
This a config thing in the current setup,
Suggest to move this to a separate pr , as i'm not sure if this fits within the current filter model , again maybe someone else knows this ?
I do not think this pr changes this ( i'll check ), so if we want to change it a suggest a separate pr , to keep things moving |
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.
Tested functionality:
- Filtering works & services are shown on the main page and can be added to the cart
Few omissions: - Services are not shown on the biobank details page
- Services details page does not have an add button
- Service types in main page are not shown in hierarchy
|
apps/directory/src/components/biobankcards-components/BiobankCard.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.
Group functions and computeds a bit more
apps/directory/src/components/biobankcards-components/CollectionsSection.vue
Outdated
Show resolved
Hide resolved
|
||
const emit = defineEmits(["update:modelValue"]); | ||
|
||
const errorMessage = ref(""); // New reactive error state |
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.
remove comment
|
||
export async function applyBookmark(watchedQuery) { | ||
export async function applyBookmark(watchedQuery: Record<string, string>) { | ||
console.log("applying bookmark", watchedQuery); |
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.
remove debug line
|
||
if (bookmark) { | ||
checkoutValid.value = true; | ||
// todo need to add service stuff to the bookmark |
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.
remove
// todo: is this needed? | ||
// organization: { | ||
// id: biobank.value, | ||
// externalId: biobank.id, | ||
// name: biobank.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.
Expand comment to better explain why this is commented
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.
Make issue for this
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.
updated the todo and i'll create an issue
value?: IFilterOption[] | string | boolean, | ||
fromBookmark?: boolean | ||
) { | ||
console.log("updateFilter", unref(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.
debug line
@@ -6,7 +6,7 @@ import monacoEditorPlugin from "vite-plugin-monaco-editor"; | |||
|
|||
const HOST = | |||
process.env.MOLGENIS_APPS_HOST || "https://bbmri-emx2-test.molgeniscloud.org"; | |||
const SCHEMA = process.env.MOLGENIS_APPS_SCHEMA || "ERIC"; | |||
const SCHEMA = process.env.MOLGENIS_APPS_SCHEMA || "directory"; |
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.
undo
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 ERIC schema is no longer the up to date schema , i like to keep the schema name 'directory' to make it clear this is the app dev 'demo' schema
|
What are the main changes you did
Update the app to allow user to request services
functional:
non-functional:
How to test
Checklist