From 266b94061db6fdc646cc36572b3b75f43bea11d0 Mon Sep 17 00:00:00 2001 From: Rowan Seymour Date: Tue, 2 Apr 2024 21:20:37 +0000 Subject: [PATCH 1/2] Remove unused environment endpoint --- lambda/environment.js | 9 - public/index.html | 598 +++++++++--------- .../__snapshots__/index.test.ts.snap | 1 - src/flowTypes.ts | 1 - src/test/assets/config.js | 2 - src/test/config.ts | 1 - 6 files changed, 298 insertions(+), 314 deletions(-) delete mode 100644 lambda/environment.js diff --git a/lambda/environment.js b/lambda/environment.js deleted file mode 100644 index 1db234e24..000000000 --- a/lambda/environment.js +++ /dev/null @@ -1,9 +0,0 @@ -const environment = { - date_format: 'YYYY-MM-DD', - time_format: 'hh:mm', - timezone: 'Africa/Kigali', - languages: ['eng', 'spa', 'fra'] -}; -const { getOpts } = require('./utils'); - -exports.handler = (evt, ctx, cb) => cb(null, getOpts({ body: JSON.stringify(environment) })); diff --git a/public/index.html b/public/index.html index 5f9f6ea36..a319a07d1 100644 --- a/public/index.html +++ b/public/index.html @@ -1,21 +1,19 @@ - - - - - - - - + + - - Nyaruka Flow Editor - - - - - -
- - - - - + + + + + \ No newline at end of file diff --git a/src/components/__snapshots__/index.test.ts.snap b/src/components/__snapshots__/index.test.ts.snap index 249530530..322ada514 100644 --- a/src/components/__snapshots__/index.test.ts.snap +++ b/src/components/__snapshots__/index.test.ts.snap @@ -9,7 +9,6 @@ Array [ "classifiers": "/assets/classifiers.json", "contacts": "/assets/recipients.json", "editor": "/flow/editor", - "environment": "/assets/environment.json", "fields": "/assets/fields.json", "flows": "/assets/flows.json", "globals": "/assets/globals.json", diff --git a/src/flowTypes.ts b/src/flowTypes.ts index 839d95381..f500a75e3 100644 --- a/src/flowTypes.ts +++ b/src/flowTypes.ts @@ -40,7 +40,6 @@ export interface Endpoints { classifiers: string; users: string; topics: string; - environment: string; languages: string; templates: string; simulateStart: string; diff --git a/src/test/assets/config.js b/src/test/assets/config.js index 8ccc62bb1..bdc2f1dad 100644 --- a/src/test/assets/config.js +++ b/src/test/assets/config.js @@ -13,7 +13,6 @@ export const merged = classifiers: 'classifiers', fields: 'fields', labels: 'labels', - environment: 'environment', editor: 'editor', activity: '', engine: '' @@ -28,7 +27,6 @@ export const merged = classifiers: '/assets/classifiers', fields: '/assets/fields', labels: '/assets/labels', - environment: '/assets/environment', editor: 'editor', activity: '', engine: '' diff --git a/src/test/config.ts b/src/test/config.ts index e23e1d681..c3c1e2451 100644 --- a/src/test/config.ts +++ b/src/test/config.ts @@ -30,7 +30,6 @@ const config: FlowEditorConfig = { labels: '/assets/labels.json', languages: '/assets/languages.json', channels: '/assets/channels.json', - environment: '/assets/environment.json', revisions: '/assets/revisions.json', classifiers: '/assets/classifiers.json', attachments: '/assets/attachments.json', From 5a8b18f3547820ed2e04615047b64ad6e5869614 Mon Sep 17 00:00:00 2001 From: Rowan Seymour Date: Wed, 3 Apr 2024 14:13:25 +0000 Subject: [PATCH 2/2] v1.29.1 --- CHANGELOG.md | 6 ++++++ package.json | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7b741ed20..65f94827a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file. Dates are d Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). +#### [v1.29.1](https://github.com/nyaruka/floweditor/compare/v1.29.0...v1.29.1) + +> 3 April 2024 + +- Remove unused environment endpoint [`#1230`](https://github.com/nyaruka/floweditor/pull/1230) + #### [v1.29.0](https://github.com/nyaruka/floweditor/compare/v1.28.0...v1.29.0) > 29 March 2024 diff --git a/package.json b/package.json index bf7ba730b..95d627d90 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "@nyaruka/flow-editor", "license": "AGPL-3.0", "repository": "git://github.com/nyaruka/floweditor.git", - "version": "1.29.0", + "version": "1.29.1", "description": "'Standalone flow editing tool designed for use within the RapidPro suite of messaging tools but can be adopted for use outside of that ecosystem.'", "browser": "umd/flow-editor.min.js", "unpkg": "umd/flow-editor.min.js",