Conversation
…RDataTeam#198) * add isOptionalBlankNode to fieldUtils * use isOptionalBlankNode in FormRenderer.isList this is ugly, but is the least invasive way to do it we could rename isList to something more fitting * do not add default fields in case of optional blank node * simplify condition for createDefaultValueArray by using isOptionalBlankNode
…ditor (FAIRDataTeam#209) * rename `isOptionalBlankNode` to `isOptionalNode` * check for `sh:NodeShape` instead of `dash:BlankNodeEditor` in `isOptionalNode`
kburger
left a comment
There was a problem hiding this comment.
- The font in the rdf preview when creating new metadata is not a monospaced font.
- The issued/modified date(time)picker is not showing the the stylized widget, date selection does work.
- when creating a dataset and setting a theme to
http://example.com, the viewer does not show the url in the list. in advanced search, the sparql query is not syntax-highlighted(not the case in the vue2 version either)
|
Thanks for the PR, but
So many changes in a single commit, out of the blue. I'm not sure how we're supposed to review this... UPDATE: It turns out the bulk of the changed lines is due to package-lock.json: To put things in perspective: the total project is approx. 14110 lines in 171 files |
first and last modified. Theme I see in the list. datepicker was first bootstrap. now I think VueJs one |
src/api/apiKeys/index.ts
Outdated
| }, | ||
|
|
||
| postApiKey(apiKey) { | ||
| postApiKey(apiKey: Record<string, unknown>) { |
There was a problem hiding this comment.
Not 100% sure but for postApiKey i think the parameters should be empty, based on no values being passed on from the index.vue postApiKey: https://github.com/Health-RI/FAIRDataPoint-client/blob/a713836b54920c753492fcff1637f7726aaf51e3/src/views/ApiKeys/index.vue#L88
src/api/repository/index.ts
Outdated
| }, | ||
|
|
||
| getChildren(_id, child, page) { | ||
| getChildren(_id: string | number, child: string, page: number) { |
There was a problem hiding this comment.
src/api/repository/index.ts
Outdated
| }, | ||
|
|
||
| put(_id, data) { | ||
| put(_id: string | number, data: string) { |
There was a problem hiding this comment.
I think this is an entity and entityId is a string, but not 100% sure better to double check. (line 26: https://github.com/Health-RI/FAIRDataPoint-client/blob/a713836b54920c753492fcff1637f7726aaf51e3/src/entity/EntityConfig.ts)
src/api/reset/index.ts
Outdated
|
|
||
| export default { | ||
| postReset(reset) { | ||
| postReset(reset: Record<string, unknown>) { |
There was a problem hiding this comment.
Could you use the Reset object here from?: https://github.com/Health-RI/FAIRDataPoint-client/blob/a713836b54920c753492fcff1637f7726aaf51e3/src/views/ResetToDefaults/index.vue#L103 (line 84)
src/api/builder.ts
Outdated
| }, | ||
|
|
||
| getChildren(id, child, page) { | ||
| getChildren(id: string | number, child: string, page: number) { |
| background: $color-light; | ||
| margin: 0; | ||
| padding: 0; | ||
| max-height: 250px; |
There was a problem hiding this comment.
also these CSS changed don't have much to do with Vue3 migration i think, maybe change back to normal ?
| const conformsTo = graph.findAll(DCT('conformsTo')) | ||
| if (conformsTo.length > 0) { | ||
| const data = conformsTo.map((uri) => { | ||
| const uriString = typeof uri === 'string' ? uri : _.get(uri, 'value', '') |
There was a problem hiding this comment.
figure out what type uri is so that you can remove this line
const uriString = typeof uri === 'string' ? uri : _.get(uri, 'value', '')
| if (!path) return null | ||
|
|
||
| const pathValue = typeof path === 'string' ? path : _.get(path, 'value') | ||
| if (!pathValue) { |
There was a problem hiding this comment.
figure out what type pathValue is so that you can remove this line
const pathValue = typeof path === 'string' ? path : _.get(path, 'value')
|
|
||
| function field(label, input, extra = {}) { | ||
| function field(label: string, input: unknown, extra: Record<string, unknown> = {}) { | ||
| if (typeof input !== 'object') { |
There was a problem hiding this comment.
figure out what type input is so that you can remove this line
if (typeof input !== 'object') {
| Avatar, | ||
| // eslint-disable-next-line no-use-before-define | ||
| ItemTree, | ||
| MembershipBadge, |
There was a problem hiding this comment.
double check if ItemTree was removed correcty or it should be kept in here
There was a problem hiding this comment.
I prioritized maintaining the original logic and structure. I intentionally ignored "nice-to-have" refactors or stylistic changes that weren't strictly required for Vue3 migrtation. This minimizes the risk of introducing behavioral regressions during the upgrade.


Main reason
Security vulnerability fixes with modernization: upgrade to latest Vue.js, enable strict TypeScript, and update styling approach.
What changed
Notes