Skip to content

Adding public data searches using autocomplete UX to the forms system. - #391

Merged
bourgeoa merged 30 commits into
mainfrom
timbl-forms
May 19, 2021
Merged

Adding public data searches using autocomplete UX to the forms system.#391
bourgeoa merged 30 commits into
mainfrom
timbl-forms

Conversation

@timbl

@timbl timbl commented Apr 7, 2021

Copy link
Copy Markdown
Contributor

Adding public data searches using autocomplete UX to the forms system. Work in Progress.

The form field carries data source to use, including endpoints, query or API templates as strings in the form.
So you can build apps which connect people to Wikidata, etc.

A rambling breadcrumbs document describes the path to this point.

@angelo-v
angelo-v marked this pull request as draft April 10, 2021 16:36
@timbl
timbl marked this pull request as ready for review May 10, 2021 08:49
@bourgeoa
bourgeoa merged commit 765ab48 into main May 19, 2021

@TallTed TallTed left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few typos... Submitting as a review, to make building a followup PR easier

Comment thread src/authn/authn.ts
let m2: string
if (err instanceof UnauthorizedError) {
m2 = 'Strange - you are not authenticated (properly logged in) to read preference file.'
m2 = 'Ooops - you are not authenticated (properly logged in) to for me to read your preference file. Try loggin out and logging in?'

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
m2 = 'Ooops - you are not authenticated (properly logged in) to for me to read your preference file. Try loggin out and logging in?'
m2 = 'Ooops - you are not authenticated (properly logged in) for me to read your preference file. Try logging out and logging back in?'

Comment thread src/widgets/forms.js
)
}
} else {
return select.parentNode.appendChild(errorMessageBlock(dom, 'Error updating data in select: ' + body))

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
return select.parentNode.appendChild(errorMessageBlock(dom, 'Error updating data in select: ' + body))
return select.parentNode.appendChild(errorMessageBlock(dom, 'Error updating data in selection: ' + body))

Comment on lines +78 to +79
callbackFunction(false, 'NO data to elete')
box.appendChild(widgets.errorMessageBlock(dom, 'Autocomplet delete: no old data!'))

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
callbackFunction(false, 'NO data to elete')
box.appendChild(widgets.errorMessageBlock(dom, 'Autocomplet delete: no old data!'))
callbackFunction(false, 'No data to delete')
box.appendChild(widgets.errorMessageBlock(dom, 'Autocomplete delete: no old data!'))

/* Create and edit data using public data
**
** organization conveys many distinct types of thing.
** As the data source is passed as a parameter, all kinds of APIa and query services can be used

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
** As the data source is passed as a parameter, all kinds of APIa and query services can be used
** As the data source is passed as a parameter, all kinds of APIs and query services can be used

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants