Merge branch 'master' of github.com:Budibase/budibase into view-filters
This commit is contained in:
commit
da16f169ce
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"version": "0.1.17",
|
"version": "0.1.19",
|
||||||
"npmClient": "yarn",
|
"npmClient": "yarn",
|
||||||
"packages": [
|
"packages": [
|
||||||
"packages/*"
|
"packages/*"
|
||||||
|
|
|
@ -38,10 +38,10 @@ context('Create a Table', () => {
|
||||||
it('edits a record', () => {
|
it('edits a record', () => {
|
||||||
cy.get("tbody .ri-more-line").click()
|
cy.get("tbody .ri-more-line").click()
|
||||||
cy.get("[data-cy=edit-row]").click()
|
cy.get("[data-cy=edit-row]").click()
|
||||||
cy.get(".actions input").type("updatedRecord")
|
cy.get(".actions input").type("Updated")
|
||||||
cy.contains("Save").click()
|
cy.contains("Save").click()
|
||||||
|
|
||||||
cy.contains('updatedRecord').should('have.text', 'updatedRecord')
|
cy.contains('RoverUpdated').should('have.text', 'RoverUpdated')
|
||||||
})
|
})
|
||||||
|
|
||||||
it('deletes a record', () => {
|
it('deletes a record', () => {
|
||||||
|
@ -49,7 +49,7 @@ context('Create a Table', () => {
|
||||||
cy.get("[data-cy=delete-row]").click()
|
cy.get("[data-cy=delete-row]").click()
|
||||||
cy.get(".modal-actions").contains("Delete").click()
|
cy.get(".modal-actions").contains("Delete").click()
|
||||||
|
|
||||||
cy.contains('updatedRecord').should('not.exist')
|
cy.contains('RoverUpdated').should('not.exist')
|
||||||
})
|
})
|
||||||
|
|
||||||
it('deletes a column', () => {
|
it('deletes a column', () => {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@budibase/builder",
|
"name": "@budibase/builder",
|
||||||
"version": "0.1.17",
|
"version": "0.1.19",
|
||||||
"license": "AGPL-3.0",
|
"license": "AGPL-3.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
@ -58,7 +58,7 @@
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@budibase/bbui": "^1.24.1",
|
"@budibase/bbui": "^1.24.1",
|
||||||
"@budibase/client": "^0.1.17",
|
"@budibase/client": "^0.1.19",
|
||||||
"@budibase/colorpicker": "^1.0.1",
|
"@budibase/colorpicker": "^1.0.1",
|
||||||
"@sentry/browser": "5.19.1",
|
"@sentry/browser": "5.19.1",
|
||||||
"@svelteschool/svelte-forms": "^0.7.0",
|
"@svelteschool/svelte-forms": "^0.7.0",
|
||||||
|
|
|
@ -93,7 +93,13 @@ export const getBackendUiStore = () => {
|
||||||
saveField: ({ originalName, field }) => {
|
saveField: ({ originalName, field }) => {
|
||||||
store.update(state => {
|
store.update(state => {
|
||||||
// delete the original if renaming
|
// delete the original if renaming
|
||||||
|
if (originalName) {
|
||||||
delete state.draftModel.schema[originalName]
|
delete state.draftModel.schema[originalName]
|
||||||
|
state.draftModel._rename = {
|
||||||
|
old: originalName,
|
||||||
|
updated: field.name,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
state.draftModel.schema[field.name] = cloneDeep(field)
|
state.draftModel.schema[field.name] = cloneDeep(field)
|
||||||
|
|
||||||
|
|
|
@ -45,9 +45,9 @@
|
||||||
$: sort = $backendUiStore.sort
|
$: sort = $backendUiStore.sort
|
||||||
$: sorted = sort ? fsort(data)[sort.direction](sort.column) : data
|
$: sorted = sort ? fsort(data)[sort.direction](sort.column) : data
|
||||||
|
|
||||||
$: headers = Object.keys($backendUiStore.selectedModel.schema).filter(
|
$: headers = Object.keys($backendUiStore.selectedModel.schema)
|
||||||
id => !INTERNAL_HEADERS.includes(id)
|
.sort()
|
||||||
)
|
.filter(id => !INTERNAL_HEADERS.includes(id))
|
||||||
|
|
||||||
$: schema = $backendUiStore.selectedModel.schema
|
$: schema = $backendUiStore.selectedModel.schema
|
||||||
</script>
|
</script>
|
||||||
|
@ -178,7 +178,6 @@
|
||||||
|
|
||||||
.popovers {
|
.popovers {
|
||||||
display: flex;
|
display: flex;
|
||||||
gap: var(--spacing-m);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.no-data {
|
.no-data {
|
||||||
|
|
|
@ -132,7 +132,10 @@
|
||||||
|
|
||||||
.popovers {
|
.popovers {
|
||||||
display: flex;
|
display: flex;
|
||||||
gap: var(--spacing-l);
|
}
|
||||||
|
|
||||||
|
:global(.popovers > div) {
|
||||||
|
margin-right: var(--spacing-m);
|
||||||
}
|
}
|
||||||
|
|
||||||
.no-data {
|
.no-data {
|
||||||
|
|
|
@ -43,7 +43,7 @@
|
||||||
|
|
||||||
<div bind:this={anchor}>
|
<div bind:this={anchor}>
|
||||||
<TextButton text small on:click={dropdown.show}>
|
<TextButton text small on:click={dropdown.show}>
|
||||||
<Icon name="addrow" />
|
<Icon name="view" />
|
||||||
Create New View
|
Create New View
|
||||||
</TextButton>
|
</TextButton>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "budibase",
|
"name": "budibase",
|
||||||
"version": "0.1.17",
|
"version": "0.1.19",
|
||||||
"description": "Budibase CLI",
|
"description": "Budibase CLI",
|
||||||
"repository": "https://github.com/Budibase/Budibase",
|
"repository": "https://github.com/Budibase/Budibase",
|
||||||
"homepage": "https://www.budibase.com",
|
"homepage": "https://www.budibase.com",
|
||||||
|
@ -17,7 +17,7 @@
|
||||||
"author": "Budibase",
|
"author": "Budibase",
|
||||||
"license": "AGPL-3.0-or-later",
|
"license": "AGPL-3.0-or-later",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@budibase/server": "^0.1.17",
|
"@budibase/server": "^0.1.19",
|
||||||
"@inquirer/password": "^0.0.6-alpha.0",
|
"@inquirer/password": "^0.0.6-alpha.0",
|
||||||
"chalk": "^2.4.2",
|
"chalk": "^2.4.2",
|
||||||
"dotenv": "^8.2.0",
|
"dotenv": "^8.2.0",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@budibase/client",
|
"name": "@budibase/client",
|
||||||
"version": "0.1.17",
|
"version": "0.1.19",
|
||||||
"license": "MPL-2.0",
|
"license": "MPL-2.0",
|
||||||
"main": "dist/budibase-client.js",
|
"main": "dist/budibase-client.js",
|
||||||
"module": "dist/budibase-client.esm.mjs",
|
"module": "dist/budibase-client.esm.mjs",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@budibase/server",
|
"name": "@budibase/server",
|
||||||
"version": "0.1.17",
|
"version": "0.1.19",
|
||||||
"description": "Budibase Web Server",
|
"description": "Budibase Web Server",
|
||||||
"main": "src/electron.js",
|
"main": "src/electron.js",
|
||||||
"repository": {
|
"repository": {
|
||||||
|
@ -42,7 +42,7 @@
|
||||||
"author": "Michael Shanks",
|
"author": "Michael Shanks",
|
||||||
"license": "AGPL-3.0-or-later",
|
"license": "AGPL-3.0-or-later",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@budibase/client": "^0.1.17",
|
"@budibase/client": "^0.1.19",
|
||||||
"@koa/router": "^8.0.0",
|
"@koa/router": "^8.0.0",
|
||||||
"@sendgrid/mail": "^7.1.1",
|
"@sendgrid/mail": "^7.1.1",
|
||||||
"@sentry/node": "^5.19.2",
|
"@sentry/node": "^5.19.2",
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
"dev:builder": "rollup -cw"
|
"dev:builder": "rollup -cw"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@budibase/client": "^0.1.17",
|
"@budibase/client": "^0.1.19",
|
||||||
"@rollup/plugin-commonjs": "^11.1.0",
|
"@rollup/plugin-commonjs": "^11.1.0",
|
||||||
"lodash": "^4.17.15",
|
"lodash": "^4.17.15",
|
||||||
"rollup": "^1.11.0",
|
"rollup": "^1.11.0",
|
||||||
|
@ -31,7 +31,7 @@
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"svelte"
|
"svelte"
|
||||||
],
|
],
|
||||||
"version": "0.1.17",
|
"version": "0.1.19",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"gitHead": "284cceb9b703c38566c6e6363c022f79a08d5691",
|
"gitHead": "284cceb9b703c38566c6e6363c022f79a08d5691",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
Loading…
Reference in New Issue