chm-878 New legal framework overview edit form #1470
chm-878 New legal framework overview edit form #1470
Conversation
There was a problem hiding this comment.
| $scope.header = { indentifier: '', schema: '', languages: [] } | |
| $scope.header = { identifier: '', schema: '', languages: [] } |
ea3caf9 to
ebaaf2b
Compare
05f86b0 to
b66fd8c
Compare
There was a problem hiding this comment.
can you make sure all questions have number?
There was a problem hiding this comment.
why are you passing vue t function here, can we not do it just like the nr reports are doing?
| type: 'option', | ||
| options: measureOptions, | ||
| key: 'establishedMeasure', | ||
| title: t('establishedMeasure', { establishedMeasuresInclude: `<br/><span class="text-focus">${t('establishedMeasuresInclude')}</span>` }) |
There was a problem hiding this comment.
mixing text this way will be a problem for translators, we need to have a better way for this. can we explore markdown?
There was a problem hiding this comment.
This is one potential solution: https://vue-i18n.intlify.dev/guide/essentials/syntax#custom-modifiers
Can we discuss this further?
There was a problem hiding this comment.
The interface is not in sync with the backend schema
import { ETerm } from "./eTerm";
import { lstring } from "./lstring";
import { NrResponse } from "./nrResponse";
import { EHeader } from "./eHeader";
import { ELink } from "./eLink";
export interface EAbsLegalFramework extends ENationalRecordBase {
jurisdiction: ETerm;
jurisdictionImplementation: lstring;
establishedMesasure: NrResponse;
agrSubjectToPic: NrResponse<lstring>;
agrMesasureForAccess: NrResponse<lstring>;
agrCommercialPermitRequired: NrResponse<lstring>;
agrCommercialPermitException: NrResponse<lstring>;
agrNonCommercialPermitRequired: NrResponse<lstring>;
agrNonCommercialPermitException: NrResponse<lstring>;
tkSubjectToPic: NrResponse<lstring>;
tkMesasureForAccess: NrResponse<lstring>;
tkCommercialPermitRequired: NrResponse<lstring>;
tkCommercialPermitException: NrResponse<lstring>;
tkNonCommercialPermitRequired: NrResponse<lstring>;
tkNonCommercialPermitException: NrResponse<lstring>;
article53Implemented: NrResponse<lstring>;
article55Implemented: NrResponse<lstring>;
article15Implemented: NrResponse<lstring>;
article16Implemented: NrResponse<lstring>;
article17Implemented: NrResponse<lstring>;
}
export interface ENationalRecordBase extends ERecordBase {
government: ETerm;
}
export interface EReferenceRecordBase extends ERecordBase {
}
export interface ERecordBase {
header: EHeader;
additionalInformation: lstring;
additionalDocuments: ELink[];
notes: string;
}```
There was a problem hiding this comment.
value: V;
additionalInformation: T;
}
export interface NrLinkResponse {
url: string;
name: string;
tags: string;
language: string;
}
export interface NrLinkResponse<T> {
additionalInformation: T;
links: NrLinkResponse[];
}```
| if (vueCleanDocument) { return vueCleanDocument?.getCleanDocument(doc) } | ||
| $scope.getCleanDocument = (doc) => { | ||
| if (vueCleanDocument) { | ||
| const cleanDocument = vueCleanDocument?.getCleanDocument(doc) |
There was a problem hiding this comment.
here you should clean values if they are not required. for eg. if they answer Yes to a question that required additional info and then if they switch the answer to no, then additional info is not required and will not be accepted by backend.
There was a problem hiding this comment.
not a big deal, thesaurus is anonymous access, no need to pass token
There was a problem hiding this comment.
this should be a computed prop
There was a problem hiding this comment.
can me move this logic to onMounted?
There was a problem hiding this comment.
can you see how ebsa does the country loading and do it the same way?
There was a problem hiding this comment.
see ebsa const options = { countries : thesaurusApi.getDomainTerms(THESAURUS.COUNTRIES), ebsaRegions : thesaurusApi.getDomainTerms(THESAURUS_EBSA_REGION) };
79b4c3c to
b34709b
Compare
…r LFO document by make the text input box lable dynamic
a4947ac to
01bce7e
Compare
01bce7e to
7a889bb
Compare
…rus is anonymous access an no token is needed CHM-878
General description
Creating an edit form for the new common format Legal Framework Overview
Task: CHM-878
Parent: CHM-852
Designs
Design document can be found in issue CHM-852.
Testing instructions
Checklist before merging
NOTE:
The following files come from existing PR #1467 and can be ignored.