Commit Graph

3840 Commits

Author SHA1 Message Date
Arpit Mohan
9550f6210d Removing image name from the package step in gitlab-ci file 2019-10-17 11:39:37 +05:30
Arpit Mohan
75a5e48c4d Adding docker hub access token to gitlab-ci for container upload 2019-10-17 09:47:23 +05:30
Arpit Mohan
3a9f344a51 Removing plugins from appsmith-interfaces module 2019-10-17 09:25:58 +05:30
Arpit Mohan
d295875ee3 Removing the git-commit plugin because it doesn't run properly on heroku 2019-10-17 09:18:17 +05:30
Arpit Mohan
135b61a4bc Adding mongo seed data that will be recreated whenever docker-compose causes the containers to restart
Note that we have to delete the Mongo volume for the inidtb script to take effect. Else, it will not execute. To be used only for testing right now. Will figure out a more robust solution later.

Also using Google's JIB Maven plugin to reduce our Docker image footprint. Will make container upload and download much faster
2019-10-16 11:27:02 +00:00
Arpit Mohan
f51de50725 Adding more acl rules for properties and action controllers 2019-10-14 12:29:20 +00:00
Nikhil Nandagopal
d0b456c629 Update index.html 2019-10-14 11:14:28 +00:00
Arpit Mohan
cf5b2c325b Adding a folder for public resources in order to serve OPA bundle
Open Policy Agent requires a bundle in the form of tar.gz in order to bootstrap itself with base policy and data. The server will serve this policy under the public domain. In the future, we will enable a Basic Authentication scheme in order to lock down this pocliy.
2019-10-14 09:24:09 +00:00
Trisha Anand
e1d59ca3a6 Multi data source support for plugins using Resource Context 2019-10-11 10:32:18 +00:00
Arpit Mohan
632aff4faa Adding basic ACL functionality with Open Policy Agent.
Currently, ACLFilter communicates with the OPA daemon to determine if the request should be validated or not based on the resource and permissions in user and group
2019-10-11 10:31:28 +00:00
Trisha Anand
7315802508 Fixing redis connection changes 2019-10-10 11:53:03 +00:00
Abhinav Jha
68cce779e1 Revert to HTML5Backend. 2019-10-09 14:38:55 +05:30
Abhinav Jha
f879e30591 Grab cursor when dragging. 2019-10-09 11:58:47 +05:30
Abhinav Jha
023cf4e638 Show grid when resizing 2019-10-08 18:01:58 +05:30
Abhinav Jha
f04f275d75 Show pointers for every direction of resize 2019-10-08 16:47:28 +05:30
Abhinav Jha
d6a5b62861 Allow deselection of all widgets. Allow resize from over the resize marker dot. 2019-10-08 15:46:07 +05:30
Abhinav Jha
5c492970ed Make focused widget more apparent. Fix Stacking contexts. 2019-10-08 14:39:30 +05:30
Abhinav Jha
4b1173c66b Fix merge conflicts with release 2019-10-08 11:54:50 +05:30
Abhinav Jha
74ee90d816 Fix editor stacking context 2019-10-08 11:49:10 +05:30
Hetu Nandu
0179a6f3af Few more changes 2019-10-07 18:49:29 +05:30
Hetu Nandu
db97974ed0 review changes 2019-10-07 18:41:18 +05:30
Hetu Nandu
866181b340 remove error creator 2019-10-07 18:02:32 +05:30
Hetu Nandu
122a4c543b Toast messages for caught errors 2019-10-07 17:59:38 +05:30
Trisha Anand
d1bcc282f8 Adding the redis listener via spring-data-redis-reactive.
The listeners need to be configured in the RedisConfig class via Beans. These beans can then invoke complex business logic based on requirements.
2019-10-07 09:02:02 +00:00
Arpit Mohan
ad22e1a406 Adding the redis listener via spring-data-redis-reactive.
The listeners need to be configured in the RedisConfig class via Beans. These beans can then invoke complex business logic based on requirements.
2019-10-07 08:18:54 +00:00
Hetu Nandu
eac9e3a2a2 add .idea to gitignore 2019-10-07 12:21:02 +05:30
Abhinav Jha
81272a0839 Larger Resize Handles. Can resize from on top of the dot. 2019-10-07 11:51:25 +05:30
Abhinav Jha
19e3e77345 Allow dragging from anywhere on the widget if it is active 2019-10-04 15:52:47 +05:30
Trisha Anand
59752254b4 On install, the plugins are loaded and started again. This ensures that we don't have to restart the server every time a new plugin is installed. Earlier the plugins were loaded and started only during the boot 2019-10-04 04:27:11 +00:00
Abhinav Jha
72443b0b06 Use parentId to delete and move 2019-10-03 23:05:13 +05:30
Abhinav Jha
eb195aa321 Get new widget name based on widget configs 2019-10-03 22:36:44 +05:30
Abhinav Jha
58c0c647bf Move WidgetFunctions to Context Provider 2019-10-03 21:54:29 +05:30
Abhinav Jha
da634cacf3 Disable controls when resizing 2019-10-03 21:08:46 +05:30
Abhinav Jha
622e5dc0a9 Show grid only on hover. Remove min grid space between adjacent components. Fix all dropzones showing issue. Disable show control on hover. 2019-10-03 20:44:50 +05:30
Abhinav Jha
5bf84ee361 Move FocusContext to Canvas 2019-10-03 16:34:11 +05:30
Abhinav Jha
afed39a6e2 Change back to widget Name 2019-10-03 03:26:25 +05:30
Abhinav Jha
562bf64480 Revert to only handle based dragging due to conflict with resizable component 2019-10-03 03:03:37 +05:30
Abhinav Jha
87171c6ecb Fix collision with self on dragging 2019-10-03 02:44:58 +05:30
Abhinav Jha
089bc97122 Allow dragging from anywhere on widget. Use theme colors for dropzone. Fix container widget positioning. 2019-10-03 01:31:51 +05:30
Abhinav Jha
2f238b1da4 Use React-RND to resize on all sides. Use class selector for resize bounds 2019-10-03 01:12:25 +05:30
Abhinav Jha
91fd8ff17e Propagate WidgetConfigs to new widget. Use theme spaces everywhere. 2019-10-02 23:43:04 +05:30
Abhinav Jha
59b3eb1d7b Make control sizes configurable 2019-10-02 01:45:02 +05:30
Abhinav Jha
fc2676487b Stop resize bleeding. Change resize handle styles. Change grid styles. Fix container size. Change grid dot color. Change grid dot offset. Show drag/resize handles on hover and focus. 2019-10-02 01:37:43 +05:30
Abhinav Jha
e8c72f5a06 WIP: Canvas Fixes: Adhere to Figma styles. Add Control Icons 2019-10-01 01:36:11 +05:30
Abhinav Jha
e23643e5e8 WIP: Canvas Fixes: Adhere to Figma Styles 2019-10-01 01:34:03 +05:30
Trisha Anand
8658df95a9 All action executions now return object of type ActionExecutionResult. RestApiPlugin returns the same object which contains statusCode, headers and body. 2019-09-30 18:17:35 +00:00
Arpit Mohan
71ac6f4488 Updating to the latest spring boot version 2019-09-30 11:32:16 +05:30
Abhinav Jha
6c942abe2b Remove dependencies from Readme.md. Fix #36, #37 2019-09-30 08:55:14 +05:30
Abhinav Jha
062540e838 Add global Saga to handle errors 2019-09-27 21:35:33 +05:30
Abhinav Jha
e0706cf6e3 Change location for save page notification 2019-09-27 13:38:31 +05:30
Abhinav Jha
b2e46997a5 Merge branch 'feature/canvas-grid-rewrite' into 'release'
Icon imports. Fixes #13 and #14

See merge request theappsmith/internal-tools-client!31
2019-09-26 11:49:00 +00:00
Abhinav Jha
cc40fd87e2 Fix WidgetCardNames 2019-09-26 17:07:09 +05:30
Abhinav Jha
e27eb3a284 Merge branch 'feature/actions' into 'release'
moved property controls

See merge request theappsmith/internal-tools-client!30
2019-09-26 11:12:07 +00:00
Abhinav Jha
4ca0ef7324 Icon imports. Fixes #13 and #14 2019-09-26 16:41:28 +05:30
Abhinav Jha
35159a8729 Disable extreme negative top-left resizing 2019-09-26 03:08:03 +05:30
Abhinav Jha
1edf039e02 Handle component drop collisions 2019-09-26 02:51:04 +05:30
Abhinav Jha
526b12766a Fix Moving widget from one container to another 2019-09-26 00:03:56 +05:30
Abhinav Jha
b155efe3c0 WIP: Use rows and columns accross the board, cleanup DropTargetMonitor 2019-09-25 22:54:23 +05:30
Trisha Anand
51d5c93119 Fixing minor bugs in the Segment analytics flow 2019-09-25 17:06:28 +00:00
Trisha Anand
566a245451 Segment & Rollbar Integration 2019-09-25 16:20:51 +00:00
Abhinav Jha
92eb493d62 Fixes for code review comments 2019-09-24 18:06:03 +05:30
Trisha Anand
bec8b2e0a1 Adding the docker-compose up command to the build
This should ideally run the mongo-seed container to restore the DB before each run
2019-09-24 12:14:41 +00:00
Nikhil Nandagopal
14bee4aadd moved property controls 2019-09-24 17:41:32 +05:30
Trisha Anand
de55ec8f8e Property Pane for Widget 2019-09-24 11:40:53 +00:00
Abhinav Jha
2e2f32b1cd Fix delete logic. Attempt upgrading blueprintjs. Fixes #7, #10, #11, #12 2019-09-23 17:27:55 +05:30
Abhinav Jha
6c34d4a404 Fixes #7, #10, #11, #12 2019-09-23 16:44:02 +05:30
Abhinav Jha
43c7539137 Canvas Grid Rewrite
- Fixes #7, #10, #11, #12
2019-09-23 16:13:22 +05:30
Abhinav Jha
3cb582b7d1 WIP: Fix merge conflicts with release. Add toast to show saving page activity 2019-09-23 15:57:45 +05:30
Abhinav Jha
7ce514d895 WIP: Add Draggable Components. Add Resizable Components. Add Moveable Components. Add Deletable Components. 2019-09-23 01:55:05 +05:30
Abhinav Jha
7237250adc WIP: Fix positioning bug 2019-09-21 07:22:38 +05:30
Abhinav Jha
ffb532fa7a WIP: Canvas widget drop and positioning 2019-09-20 03:55:37 +05:30
Nikhil Nandagopal
5f6aeb55f8 added new control types
removed alert from widget list
added property config values
added input validator
2019-09-19 16:59:24 +05:30
Nikhil Nandagopal
60714e19f2 made binding optional
re-added mock response
2019-09-18 19:40:57 +05:30
Abhinav Jha
c87552b951 Canvas Grid Fixes #6 and #12
- Integrate with Fetch Page and Save Page APIs
- Scaffolding for updating widget properties
- DropTargetComponent
- DraggableComponent
2019-09-18 16:30:15 +05:30
Abhinav Jha
56714c3fa0 Merge branch 'release' of gitlab.com:theappsmith/internal-tools-client into feature/canvas-grid-rewrite 2019-09-18 16:28:21 +05:30
Abhinav Jha
673cd75a3f WIP: integrate with fetch pages and save pages APIs 2019-09-18 16:18:56 +05:30
Nikhil Nandagopal
684bbe822e added property controls
added redux dev tools
2019-09-18 15:49:50 +05:30
Arpit Mohan
280f8d4dcb Fixing the Cors configuration to ensure that pre-flight requests return the Access-Control-Allow-Origin header 2019-09-18 09:45:00 +00:00
Arpit Mohan
ac44e2c970 Modifying the ResponseDTO to contain the ResponseMeta object. Also moving ErrorDTO inside ResponseMeta object.
This also fixes the logic for multiple ResponseDTOs that were being sent when the service level response was a Flux. Now we only return a single array inside a Mono ResponseDTO object.
2019-09-18 08:52:14 +00:00
Trisha Anand
3d82809d2a CI/CD with Heroku and docker via gitlab 2019-09-18 08:24:03 +00:00
Abhinav Jha
3317bed1d9 Canvas Grid
- Fix Fetch Page
- Add Save Page Boilerplate
- Refactor Drag and Drop components
- Widget Property update boilerplate
2019-09-17 20:43:21 +05:30
Abhinav Jha
703081154c WIP: Fix fetch page. Add save page boilerplate. Add widget property change boilerplate. 2019-09-17 20:39:55 +05:30
Arpit Mohan
6f4bfdd728 Ensuring that the plugins directory is in the same path as the jar 2019-09-17 18:02:58 +05:30
Arpit Mohan
b618bfc5d8 Adding a very initial version of the RestApiPlugin
Requires a bunch of testing for corner cases and error scenarios.
2019-09-17 12:24:45 +00:00
Arpit Mohan
0edc0f6363 Adding the executeAction API in the ActionController.
Also changed the interface for the PluginExecutor to include the resourceConfig and ActionConfig as well.
2019-09-17 12:18:23 +00:00
Nikhil Nandagopal
930061481b Merge branch 'release' into feature/actions
# Conflicts:
#	.lintstagedrc
#	package.json
#	src/pages/Editor/Canvas.tsx
#	src/pages/Editor/index.tsx
#	src/sagas/ActionSagas.tsx
#	src/sagas/PageSagas.tsx
#	src/sagas/index.tsx
2019-09-17 15:48:37 +05:30
Nikhil Nandagopal
751ea339d1 added transformation for requests
wired button onclick to execute action saga
split widget props into widget data and widget functions
2019-09-17 15:41:50 +05:30
Abhinav Jha
20a3e19ad3 WIP: code changes to allow for dragging and dropping 2019-09-17 15:39:00 +05:30
Trisha Anand
4498a301a6 Docker 2019-09-17 09:35:13 +00:00
Trisha Anand
14ec5260d9 Incorporated review comments from Nikhil on action 2019-09-17 07:23:30 +00:00
Trisha Anand
5468436d9f Add Page Actions to Page object. 2019-09-17 06:25:07 +00:00
Arpit Mohan
f5ea85f636 Running only part of build.sh in the buildpack-run.sh. This is because all the buildpacks in Heroku are run sequentially 2019-09-16 17:19:55 +05:30
Arpit Mohan
cdba3a5b68 Adding Procfile for custom run command in Heroku 2019-09-16 17:12:26 +05:30
Abhinav Jha
71029406d7 Fixes #5 and #9. Fix build script. Remove public files. Code Review Fixes 2019-09-16 17:08:37 +05:30
Arpit Mohan
bb84e74c23 Re-arranging the files to fix bad merge that threw compile errors 2019-09-16 17:04:07 +05:30
Arpit Mohan
661111daaa Setting java version to 11 in system.properties.
This is required by Java Heroku buildpack
2019-09-16 16:54:28 +05:30
Arpit Mohan
b3c987a9f9 Convert the project into a multi-module structure
We are moving to a multi-module structure so that different parts of the codebase can be exposed to the public while others can remain private. Using pf4j for plugin framework.

Also adding a build script `build.sh` which compiles the code and creates the `dist` folder for distribution purposes. Now we can build the code via

```
$ ./build.sh -DskipTests
```
2019-09-16 11:21:57 +00:00
Nikhil Nandagopal
a8adc4e5f3 ran lint & prettier manually 2019-09-16 16:07:38 +05:30
Nikhil Nandagopal
1861ca89cd WIP:dummy 2019-09-16 16:02:35 +05:30
Nikhil Nandagopal
635982ad95 WIP:dummy 2019-09-16 16:01:23 +05:30
Abhinav Jha
e6f5588488 Remove canvas poc code. Create build script for generating font files 2019-09-16 13:38:03 +05:30
Abhinav Jha
9fbde3261a Merge branch 'release' of gitlab.com:theappsmith/internal-tools-client into feature/widget-cards-pane 2019-09-16 11:46:28 +05:30
Nikhil Nandagopal
4aa07970d7 minor fix 2019-09-13 17:32:28 +05:30
Nikhil Nandagopal
1baff6d93c Merge branch 'release' of gitlab.com:theappsmith/internal-tools-client into feature/actions
# Conflicts:
#	package.json
#	src/actions/pageActions.tsx
#	src/actions/widgetCardsPaneActions.tsx
#	src/api/Api.tsx
#	src/api/ApiRequests.tsx
#	src/api/ApiResponses.tsx
#	src/api/WidgetCardsPaneApi.tsx
#	src/constants/ActionConstants.tsx
#	src/constants/ApiConstants.tsx
#	src/normalizers/CanvasWidgetsNormalizer.tsx
#	src/reducers/entityReducers/canvasWidgetsReducer.tsx
#	src/reducers/entityReducers/index.tsx
#	src/reducers/entityReducers/widgetConfigReducer.tsx.tsx
#	src/reducers/index.tsx
#	src/reducers/uiReducers/canvasReducer.tsx
#	src/reducers/uiReducers/editorReducer.tsx
#	src/reducers/uiReducers/widgetCardsPaneReducer.tsx
#	src/sagas/PageSagas.tsx
#	src/sagas/WidgetCardsPaneSagas.tsx
#	src/sagas/index.tsx
#	src/utils/AppsmithUtils.tsx
#	src/widgets/AlertWidget.tsx
#	src/widgets/ButtonWidget.tsx
#	src/widgets/CheckboxWidget.tsx
#	src/widgets/DatePickerWidget.tsx
#	src/widgets/DropdownWidget.tsx
#	src/widgets/RadioGroupWidget.tsx
#	src/widgets/TableWidget.tsx
2019-09-13 17:29:45 +05:30
Abhinav Jha
01d3e46a63 Fix Merge conflicts. Fixes #5 2019-09-13 17:00:22 +05:30
Nikhil Nandagopal
29cf9bb450 Merge branch 'release' into feature/basic-styling
# Conflicts:
#	src/constants/ActionConstants.tsx
#	src/constants/WidgetConstants.tsx
#	src/editorComponents/CheckboxComponent.tsx
#	src/editorComponents/RadioGroupComponent.tsx
#	src/mockResponses/WidgetCardsPaneResponse.tsx
#	src/pages/Editor/Canvas.tsx
#	src/pages/Editor/EditorDragLayer.tsx
#	src/reducers/entityReducers/index.tsx
#	src/reducers/index.tsx
#	src/utils/WidgetRegistry.tsx
#	src/widgets/BaseWidget.tsx
#	src/widgets/BreadcrumbsWidget.tsx
#	src/widgets/ButtonWidget.tsx
#	src/widgets/CalloutWidget.tsx
#	src/widgets/CheckboxWidget.tsx
#	src/widgets/IconWidget.tsx
#	src/widgets/InputGroupWidget.tsx
#	src/widgets/NumericInputWidget.tsx
#	src/widgets/RadioGroupWidget.tsx
#	src/widgets/TagInputWidget.tsx
#	src/widgets/TextWidget.tsx
2019-09-13 16:15:49 +05:30
Nikhil Nandagopal
f905417242 added actions & executor sagas 2019-09-13 15:26:11 +05:30
Nikhil Nandagopal
cbc23349c7 added api & query data in entities 2019-09-12 19:14:25 +05:30
Nikhil Nandagopal
6bd89d65a1 added action events to widgets 2019-09-12 17:49:46 +05:30
Nikhil Nandagopal
a33074af79 added action API & interfaces 2019-09-12 17:14:18 +05:30
Nikhil Nandagopal
be5c516db8 added json path
added action interfaces
2019-09-12 16:49:38 +05:30
Nikhil Nandagopal
cd1b088568 added widget config reducer 2019-09-12 13:41:25 +05:30
Trisha Anand
467b3e6db5 Fixes nested data object in Layout. Renamed data to 'dsl' 2019-09-11 11:51:25 +00:00
Trisha Anand
07614d8980 CRUD for pages and layouts. 2019-09-11 10:44:31 +00:00
Abhinav Jha
8e8866175c Resolve #5
- Add Missing Icons
- Remove extraneous components (for Beta)
- Add missing widget cards
2019-09-10 16:31:48 +05:30
Abhinav Jha
2aeff35ea4 Resolve #2 2019-09-09 16:39:13 +05:30
Abhinav Jha
aafea7a05f Resolve #2
- Update to latest react-router-dom version
2019-09-09 16:31:18 +05:30
Abhinav Jha
69eeb8c586 WIP: Remove extra lint-staged config 2019-09-09 16:02:04 +05:30
Abhinav Jha
6f19e0d17a WIP: Fix Prettier formatting issues and add precommit hook 2019-09-09 16:00:22 +05:30
Abhinav Jha
b9718bdaec WIP: Fix eslint errors 2019-09-09 14:38:54 +05:30
Abhinav Jha
2c34b6d09b WIP: Generate font icons from SVGs using CLI 2019-09-09 13:53:53 +05:30
Trisha Anand
7e0cb75ed2 Added domains for application and pages. Edited the layout domain to make it an embedded object inside a page instead of existing in the database on its own. 2019-09-09 06:54:36 +00:00
Arpit Mohan
9c47e1cb2f A hacky approach to limiting the Google OAuth2 to a set of custom domains.
This is not the prettiest way to do it. Ideally, we should send a query parameter to Google with key "hd=example.com" in order to get Google to list accounts with only those domains. For now, we send an error when the domains don't match in a custom `ClientUserRepository` function.
2019-09-09 05:16:42 +00:00
Abhinav Jha
29d6bd52da WIP: Workflow fixes 2019-09-06 17:10:00 +05:30
Trisha Anand
bea5f53f46 Signup flow 2019-09-06 10:49:48 +00:00
Abhinav Jha
c23724effe Resolve #2 Basic Editor Styling
- Add Widget Icons
- Font face observer
- Widget Pane styling based on Theme
2019-09-06 15:00:22 +05:30
gray
6284f07c76 Add default theme base 2019-09-05 23:17:50 +05:30
Arpit Mohan
f71bd9a4e0 Migrating from Tenant nomenclature to Organization.
This makes it consistent with the terminology that we want in the product. The hierarchy will be organization -> team -> user.
2019-09-04 15:08:40 +05:30
Arpit Mohan
bf908025e2 Adding some basic unit tests for the TenantService class. We should add more tests for other CRUD flows as well. 2019-09-04 09:24:38 +00:00
Trisha Anand
4258f85a81 Removed DBRef from action. Added DBRef of plugin because while execution, this will be used. So instead of fetching plugin on every execution, plugin is fetched once during create action and stored as part of action (DBRef). Because of DBRef, eager loading would happen which would lead to plugin being present on get without loading plugin again. 2019-09-03 11:36:49 +00:00
Nikhil Nandagopal
8d13ae3895 minor fix for protection 2019-09-03 13:48:14 +05:30
Abhinav Jha
a3ccf9f3c3 Fix merge conflicts with master - 3-sept 2019-09-03 08:35:37 +05:30
Nikhil Nandagopal
ebe31f4acb fixes for netlify user identity 2019-09-02 21:06:24 +05:30
Nikhil Nandagopal
46237873bd Merge branch 'feature/integration' 2019-09-02 20:20:25 +05:30
Nikhil Nandagopal
588db871ee added protecrted routes and login page 2019-09-02 20:20:01 +05:30
Nikhil Nandagopal
744e5b7043 fixed redirect 2019-09-02 18:05:18 +05:30
Nikhil Nandagopal
4c2e44d366 minor fix 2019-09-02 17:57:55 +05:30
Abhinav Jha
d0f676be09 Fix issues caused to UI after resolving merge conflicts 2019-09-02 17:55:17 +05:30
Nikhil Nandagopal
ebe70b0e99 added redirects file 2019-09-02 17:51:36 +05:30
Abhinav Jha
1f2e0f8dd0 Fix Merge Conflicts with master 2019-09-02 17:45:41 +05:30
Abhinav Jha
cf5ec97bb0 Drag drop monitor, code cleanup 2019-09-02 16:28:11 +05:30
Nikhil Nandagopal
bf69b401e7 removed identity widget 2019-09-02 14:00:57 +05:30
Nikhil Nandagopal
f588373918 removed package lock
fixed yarn
2019-09-02 12:39:29 +05:30
Nikhil Nandagopal
ca4bad77bc added netlify auth widget 2019-09-02 12:08:13 +05:30
Nikhil Nandagopal
1d0da80621 Merge branch 'master' into feature/integration
# Conflicts:
#	yarn.lock
2019-08-30 16:54:19 +05:30
Nikhil Nandagopal
7acfc149ad added segment integration 2019-08-30 16:53:42 +05:30
Nikhil Nandagopal
e3ee07d158 added hotjar integration 2019-08-30 16:03:49 +05:30
Nikhil Nandagopal
6bd6ef1083 added sentry integration 2019-08-30 15:12:57 +05:30
Abhinav Jha
babc8fcfcd Linting, fixes, dragpreview fix 2019-08-29 16:52:09 +05:30
Trisha Anand
7bc8948116 Correcting tenant id on staging 2019-08-29 15:39:42 +05:30
Arpit Mohan
bdc53195f0 Sending standardized HTTP error codes to the client application. This structure ensures that we can define the http error code, app error code and (in future) localized string when we want to.
Now when we want to send any error message to the client, we should add it to the enum `AppsmithError` and throw an `AppsmithException` by passing this enum value to the constructor. In the future, we can also localize these error messages by defining the template message in a `messages_en.properties` file.
2019-08-28 09:35:06 +00:00
Trisha Anand
bbbdfbada3 Action CRUD implemented 2019-08-27 11:31:44 +00:00
Arpit Mohan
06945ff10f Renaming Mobtools to Appsmith everywhere for consistency 2019-08-27 15:14:50 +05:30
Trisha Anand
43780a6550 Action configuration now contains all the configurations. The global and mustache configurations now exist under the same object. Data template object has been removed. This is inline with the design discussion. 2019-08-27 09:37:38 +00:00
Arpit Mohan
5a1f9ab132 Adding MDC logging via RequestIdFilter and MDCFilter
This ensures that we can send header values and those will be printed in the logs. In the class MDCFilter, we are adding the logContext to the reactive logger along with the normal MDC logger as well.
2019-08-27 06:25:29 +00:00
Abhinav Jha
02af80d3dc Implement Drag and Drop of components 2019-08-26 18:11:21 +05:30
Trisha Anand
0449633997 Removed wild card imports. Now wild card imports would only happen if the import class count exceeds 20. 2019-08-22 12:03:42 +00:00
Abhinav Jha
57ad5991c3 [WIP] Add widget cards pane component 2019-08-21 18:19:16 +05:30
Abhinav Jha
e9610d0248 Basic App Layout 2019-08-20 18:49:19 +05:30
Abhinav Jha
41f8fe5024 Add Editor Configuration Files 2019-08-20 15:09:08 +05:30
Trisha Anand
e852ec6c15 The create tenant flow is completely reactive. This was done because the earstwhile implementation was erroneous leading to unpredictable crashes. 2019-08-12 04:44:28 +00:00
Trisha Anand
ae0fd72d48 The create tenant flow is completely reactive. This was done because the earstwhile implementation was erroneous leading to unpredictable crashes. 2019-07-28 04:46:53 +00:00
Trisha Anand
68e1bef0f6 Introduced TenantSetting to store the real setting value. Setting would exist as set of settings that can be configured for a given tenant. The TenantSetting document stores the configured values for each setting.
Also, introduced the util cascadeSave. This is done with the aim of storing the lower order documents first before storing the higher order composite documents (which contain DBRef).
2019-07-25 07:11:05 +00:00
Arpit Mohan
2a5656afbb Changing the query execution to execute by name. Will make the API a lot simpler. 2019-04-02 21:55:19 +05:30
Nikhil Nandgopal
1b71b829fb added droppable component
moved snapcolumspace and rowspace to state
2019-04-02 21:42:08 +05:30
Arpit Mohan
bbb6e511d7 Adding a working version of the rest template plugin executor. 2019-04-02 21:10:36 +05:30
Arpit Mohan
6d91ab32ce Adding the bean corsWebFilter to enable CORS in our codebase 2019-04-02 20:05:48 +05:30
Nikhil Nandgopal
085d420567 implemented basic drag and drop 2019-04-01 12:38:00 +05:30
Arpit Mohan
c14b34193d Refactoring the plugin implementations to have their own package.
Will keep the code more organized
2019-03-31 21:55:27 +05:30
Arpit Mohan
5570020f6d Adding Configuration annotation on CORS config class 2019-03-31 21:49:39 +05:30
Arpit Mohan
cffb83a781 Disabling CORS by effectively allowing requests to be made from all hosts 2019-03-31 21:48:50 +05:30
Arpit Mohan
303f42945c Correcting the properties reading from PostgresDBPluginExecutor
Don't use static variables if using spring to feed the config values in
2019-03-31 21:42:29 +05:30
Arpit Mohan
a82a931093 Adding mustache template substitution to QueryObj.
Now we can query postgres DB on the fly! Yipee!
2019-03-31 21:22:06 +05:30
Nikhil Nandgopal
e3ecb9974a added action creators to pass actions to sagas 2019-03-30 18:00:42 +05:30
Arpit Mohan
28ef85b893 Adding name and confirmationMsg to the query collection 2019-03-30 16:41:44 +05:30
Arpit Mohan
ad2310bae0 Adding properties to a widget 2019-03-30 16:22:14 +05:30
Arpit Mohan
3bdfd13284 Adding the APIs to add plugins and query commands
Currently, there is a single executor implemented PostgresDBPluginExecutor which returns some dummy results. The entire framework exists to choose and instantiate the appropriate executor implementation at runtime.
2019-03-30 16:14:54 +05:30
Arpit Mohan
a57d31fbb2 Adding the system.properties file for java version
Heroku needs this for determining java version
2019-03-30 13:12:49 +05:30
Arpit Mohan
8f4bfd59fc Adding application-local.properties
This is to ensure that we can provide different types of mongo configurations for different environments
2019-03-30 13:08:43 +05:30
Arpit Mohan
e553470095 Moving the code to the top level to remove one-level of folder indirection 2019-03-30 13:04:05 +05:30
Arpit Mohan
4733ebf95b Removing Go code from the repo. This is now pure Java spring boot app 2019-03-30 13:01:06 +05:30
Arpit Mohan
d786890834 Adding the staging properties with mongodb atlas setup 2019-03-30 12:58:34 +05:30
Arpit Mohan
cef6946859 Adding the LayoutController that will store the DDL for the page layouts
Also adding the getById function in the BaseController so that all CRUD APIs will automatically support that API call.
2019-03-30 12:23:21 +05:30
Arpit Mohan
f8b382940d Adding basic authentication to the server.
This will allow us to host it on a webserver for integration purposes.
2019-03-30 12:01:24 +05:30
Nikhil Nandgopal
69114b8352 exported only watch saga 2019-03-26 21:32:23 +05:30
Nikhil Nandgopal
d83f3d9308 added axios type script
added api calls from a mock server
added redux saga
2019-03-26 20:58:24 +05:30
Nikhil Nandgopal
4e2b003a5d added canvas widget normalizer 2019-03-21 23:12:23 +05:30
Anirudh Madhavan
32621a7975 Feature/core components 2019-03-21 12:10:32 +00:00
Nikhil Nandgopal
96a47a9bb8 fixed heights for all components 2019-03-19 20:51:27 +05:30
Nikhil Nandgopal
85b59b352d added default props to base widget
fixed container logic
2019-03-19 20:17:18 +05:30
Arpit Mohan
8ccd001652 Adding abstractions for CRUD APIs.
Now we can easily add controllers for any resource quickly by simply adding a few files.
2019-03-19 19:39:05 +05:30
Nikhil Nandgopal
da5f47437b abstracted styles into base widget 2019-03-19 19:35:48 +05:30
Arpit Mohan
f7aaafacfb Moving to Mongo instead of Postgresql for storage.
This will allow us to store the widget, plugin & page information much more cleanly and directly into the DB.
2019-03-19 12:13:21 +05:30
Arpit Mohan
9cea9f94f2 Completing the CRUD for the widget domain. 2019-03-19 02:28:00 +05:30
Arpit Mohan
e4f59ff941 Adding the Spring java API for creating Widget.
Migrating the code to Spring Java instead of Golang
2019-03-19 01:50:32 +05:30
Nikhil Nandgopal
746efeee06 fixed widget pane rendering 2019-03-18 21:15:53 +05:30
Nikhil Nandgopal
e24517cbcb minor fix 2019-03-18 20:44:33 +05:30
Nikhil Nandgopal
3d7b7cef32 created seperate render modes for widgets
added widget pane
2019-03-18 20:40:30 +05:30
Nikhil Nandgopal
9921154045 Merge branch 'master' of gitlab.com:mobtools/internal-tools-client into feature/button
# Conflicts:
#	src/constants/WidgetConstants.tsx
#	src/mockResponses/CanvasResponse.ts
#	src/utils/WidgetRegistry.tsx
2019-03-18 19:32:07 +05:30
Nikhil Nandgopal
2ad53929ad added button widget 2019-03-18 19:20:24 +05:30
Anirudh Madhavan
6d2d6237e1 add : input text -> input group, widget width and height height calculation on basewidget troubleshoot 2019-03-16 18:38:45 +05:30
Arpit Mohan
7ea78bf64c Adding functionality to execute a query via mustache template. 2019-03-16 18:28:44 +05:30
Anirudh Madhavan
cfbefcf654 add : missing intent prop in widgets 2019-03-16 17:08:22 +05:30
Arpit Mohan
49b7051cea Moving the method comparison in gorilla mux to the end and not in the chain
This allows mux to compare and match the requests based on the HTTP method as well. If we compare the methods in the middleware chain, then mux will try to redirect the request to the first match it finds.
2019-03-16 17:05:20 +05:30
Anirudh Madhavan
92cf9fcc4f add : blueprint scss, node-sass 2019-03-16 17:03:15 +05:30
Anirudh Madhavan
ad22eac52e abstract position styled component to a seperate pure component 2019-03-16 16:29:42 +05:30
Arpit Mohan
1133b53437 Adding Google authentication via Goth. All endpoints can now be authenticated.
Other changes include:
* Also removing httprouter mux in favour of gorilla for being more mature and having more integrations and resources available for debugging.
* Adding http middlewares for logging req processing time and handling authentication.

TODO: Need to add context in the middleware as well. Will be useful for logging and debugging.
2019-03-16 15:47:47 +05:30
Anirudh Madhavan
e438cb056c add : spinner widget 2019-03-15 18:23:45 +05:30
Anirudh Madhavan
69212460de fix : callout widget, add : icon widget 2019-03-15 18:05:36 +05:30
Anirudh Madhavan
74a87e85a8 add : core component : callout widget 2019-03-13 21:25:53 +05:30
Anirudh Madhavan
24412df605 add : core component : input field 2019-03-13 20:35:24 +05:30
Nikhil Nandgopal
4a2854ca58 updated canvas response 2019-03-12 19:53:22 +05:30
Nikhil Nandgopal
9fd346d0c0 moved response to another folder 2019-03-12 19:33:58 +05:30
Arpit Mohan
edaf7e3025 Correcting the project structure as per idiomatic go 2019-03-10 15:51:19 +05:30
Arpit Mohan
ce34ff4a83 Completing the CRUD for the query API. Also being able to execute a saved query.
TODO: Handle parameters while executing a saved query.
2019-02-28 09:41:35 +05:30
Arpit Mohan
b38df1c07d Minor refactoring 2019-02-28 00:46:17 +05:30
Arpit Mohan
dc66c070d6 Adding viper configuration to make the server configurable.
The config file `config.yml` must  be in the same location as the binary. It must be named `config.yml`. For different environments, symlink the configuration file to the environment speciifc file.
2019-02-28 00:35:50 +05:30
Arpit Mohan
3cfadc1c51 Completing the CRUD API for component model. Also adding more basic structs for other models 2019-02-27 22:05:03 +05:30
Arpit Mohan
eb2af8e534 Minor comments 2019-02-27 09:44:02 +05:30
Arpit Mohan
13a0247fd7 Creating a generic map to struct function to convert any map objects into struct objects
Also creating a services package. This will hold all the business logic. The controllers will be very light.
2019-02-27 09:29:30 +05:30
Arpit Mohan
4016562f09 Making the ExecuteQuery function generic to return a map of rows instead of a struct
This will help us to execute arbitrary queries and map them to results at a later stage.
2019-02-26 23:49:20 +05:30
Arpit Mohan
acbb5a55e0 Moving gorm ORM library for Golang database connections
Also creating the Create API for components
2019-02-26 23:22:37 +05:30
Arpit Mohan
13156380ce Adding the factory pattern to switch between databases.
Also adding a basic GET API for components

Making modifications to the Makefile to create a dist/ folder.
2019-02-26 22:36:21 +05:30
Arpit Mohan
f72597051c Adding the factory method to derive postgres implementation for db 2019-02-22 10:16:46 +05:30
Arpit Mohan
6560d1005c Adding the files for the APIs 2019-02-22 08:53:03 +05:30
Arpit Mohan
2be56a1f12 Adding httprouter as the HTTP multiplexer and also setting up postgres db connection and executing a random query
This basically sets up some rough structure of the code
2019-02-22 08:48:08 +05:30
Arpit Mohan
21de87596c Adding the go module init file go.mod 2019-02-21 23:21:07 +05:30
Arpit Mohan
82289b5041 Initial commit. Adding the Makefile and hello world code 2019-02-21 10:08:45 +05:30
Arpit Mohan
53ae0ba4e5 Initial commit 2019-02-17 05:41:20 +00:00
Nikhil Nandgopal
85b8525c4d added type to state
moved css to style object
added style units
migrated all widgets to work with JSX
2019-02-11 23:52:23 +05:30
Nikhil Nandgopal
f7d310bcda added child prop generic to container widgets 2019-02-10 22:09:09 +05:30
Nikhil Nandgopal
b4249df653 added basic theming 2019-02-10 20:36:57 +05:30
Nikhil Nandgopal
3afe91679a added typed lodash
fixed basic component rendering
connected redux store
2019-02-10 19:44:58 +05:30
Nikhil Nandgopal
a7f9808cfb moved widget building into registry 2019-02-10 18:51:19 +05:30
Nikhil Nandgopal
bf4dc5a052 added basic redux state
added basic inheritance hierarchy of widgets and components
added basic redux action types
added basic widget building logic
2019-02-10 18:36:05 +05:30
Nikhil Nandgopal
1915b45e52 added basic routes and styled components 2019-02-07 10:37:09 +05:30
Nikhil Nandgopal
822dd6fb5d added type script and folder structure 2019-01-21 23:41:08 +05:30
Nikhil Nandgopal
262db46a24 bootstrapped libraries and dependencies 2019-01-21 22:24:33 +05:30
Nikhil Nandgopal
dbce9693b6 ran create react app 2019-01-21 20:41:10 +05:30
Nikhil Nandagopal
5ff65ba610 Initial commit 2019-01-21 14:19:48 +00:00