Commit Graph

3840 Commits

Author SHA1 Message Date
Pushpa B
47f8f63f46 Feature/edit form widget 2 2020-04-03 09:29:52 +00:00
Abhinav Jha
5ffb233036 Add classnames to modal selector dropdown, modal close button and modal. 2020-04-03 14:06:02 +05:30
Shrikant Kandula
00da41c7c7 Remove duplicate presence of pf4j-spring dependency. 2020-04-03 13:10:10 +05:30
Satbir Singh
ac27f0f2c6 Fixing column delete button css and margin 2020-04-03 06:56:13 +00:00
Shrikant Kandula
e287583cfe Don't include stack traces in plugins migrations. 2020-04-03 06:29:46 +00:00
Satbir Singh
3a12124d47 Merge branch 'fix/error-autocomplete' into 'release'
Do not show error during autocomplete.

See merge request theappsmith/internal-tools-client!447
2020-04-03 05:48:54 +00:00
Satbir Singh
40c77033c0 Do not show error on autocomplete. 2020-04-03 10:45:57 +05:30
Satbir Singh
a32536bc04 Default image and Image were both visible in ImageComponent 2020-04-03 04:48:40 +00:00
Satbir Singh
c8f3548065 Adding validation for regex. 2020-04-03 08:12:45 +05:30
Satbir Singh
9d3cd9a3fb Merge branch 'fix/checkbox' into 'release'
Fixing checkbox onCheck issue.

See merge request theappsmith/internal-tools-client!444
2020-04-02 22:09:13 +00:00
Satbir Singh
96fe93d8aa Show default image when image is invalid 2020-04-02 22:01:31 +00:00
Satbir Singh
3c4cb40526 Fixing checkbox onCheck issue. 2020-04-03 02:45:35 +05:30
Satbir Singh
2634215765 Filterable select. Remove option on x click fix. isRequired not working properly fix. 2020-04-02 19:41:04 +00:00
Trisha Anand
063df9d5ed Merge branch 'bug/marketplace-client' into 'release'
Marketplace Client bug fixes

See merge request theappsmith/internal-tools-server!252
2020-04-02 16:14:38 +00:00
Satbir Singh
4860b3fbe8 Merge branch 'fix/nav-url-wid' into 'release'
Adding missing validation to widgets

See merge request theappsmith/internal-tools-client!440
2020-04-02 13:44:58 +00:00
Shrikant Kandula
e5fd048205 New parser for extracting interpolations from Mustache templates 2020-04-02 13:24:55 +00:00
Pushpa B
be491ba33d Fix/element not identified 2020-04-02 13:16:18 +00:00
Trisha Anand
4760bab964 Fixed the subscribe provider API that is being hit. 2020-04-02 18:24:03 +05:30
Trisha Anand
2e09f7923c Merge branch 'release' of gitlab.com:theappsmith/internal-tools-server into release 2020-04-02 17:17:52 +05:30
Trisha Anand
dcb74a7be7 Updated the marketplace URL after deploying of marketplace service 2020-04-02 17:17:19 +05:30
Hetu Nandu
30ff157c43 Merge branch 'fix/modal-fixes-2' into 'release'
Modal fixes 2

See merge request theappsmith/internal-tools-client!438
2020-04-02 10:40:16 +00:00
Arpit Mohan
b7b7328c3f Merge branch 'release' into feature/acl-spring-object 2020-04-02 13:53:31 +05:30
Arpit Mohan
f165f0b772 Setting the active profile as environment in Rollbar configuration
This will help us segment errors from different environments more easily in the Rollbar UI
2020-04-02 13:49:53 +05:30
Satbir Singh
8c402a13cc Adding missing validation to widgets 2020-04-02 13:23:03 +05:30
Arpit Mohan
01c4a2cc8b Updating the redis credentials for staging because Heroku keeps changing it 2020-04-02 13:22:11 +05:30
Arpit Mohan
1b18c4d6b3 Writing the initial test and implementation for the application user invite flow.
The permissions are being translated to the application domain. Need to also be translated to the page & action domain.
2020-04-02 13:21:01 +05:30
Pushpa B
0b0365abf7 Feature/edit form widgets 2020-04-02 04:47:48 +00:00
Abhinav Jha
a3b05781d8 Fix richtexteditor header z-index. Remove resizable collision for Canvas Widgets. Fix issue where new containers had the same children as the previously created container's children 2020-04-02 05:44:58 +05:30
Trisha Anand
f882ffcdf3 Fetching the providers from the Marketplace using webclient. Introduced a temporary end point to support the new source for Providers 2020-04-01 18:53:39 +00:00
Trisha Anand
f51751aba8 Merge branch 'bug/rest-api-post-body' into 'release'
Fixing the double escaping to a single escape.

See merge request theappsmith/internal-tools-server!249
2020-04-01 11:54:16 +00:00
Trisha Anand
8ef59460af Fixing the double escaping to a single escape. 2020-04-01 17:20:07 +05:30
Shrikant Kandula
1f524827b9 Datasource CRUD APIs 2020-04-01 08:50:36 +00:00
Satbir Singh
bb9fc29409 Page Params 2020-04-01 08:09:57 +00:00
Arpit Mohan
4927e7b8d8 Adding a custom SecurityContextFactory to instantiate Mock anonymous user in the test cases.
Now we have a lot of flexibility around the SecurityContext during testing. We can instantiate any type of mock users bearing different roles & permissions.
2020-04-01 10:20:04 +05:30
Arpit Mohan
995bfd0bbd * Adding CustomRepository interfaces and implementations to all the domain objects in the classpath
* Adding generic get(Multivalue<String, String> params) implementation to the BaseService. Now all the domain obejcts can simply leverage this base implementation for get queries out of the box for all the fields.

* IMP: For some reason, the query by example has stopped working across the board. Even the super implementation in SimpleReactiveMongoRepository doesn't work. No idea why this is happening. For the time being, have moved to Criteria queries for the get request.
2020-04-01 10:00:18 +05:30
Satbir Singh
bbe98ca135 Fixing default value updating the multi select. 2020-03-31 17:36:25 +00:00
Satbir Singh
80c449e227 Not passing evaluated data to property pane 2020-03-31 22:11:07 +05:30
Nikhil Nandagopal
032cb3beb6 Merge branch 'release' into fix/charts 2020-03-31 17:19:10 +05:30
Satbir Singh
70243829d5 Nav to Url validation fixed 2020-03-31 10:40:52 +00:00
Hetu Nandu
59dde1e024 fix form 2020-03-31 13:12:25 +05:30
Satbir Singh
1adcf0b0dc Merge branch 'fix/multi-select' into 'release'
Default option value multi select

See merge request theappsmith/internal-tools-client!431
2020-03-31 03:21:35 +00:00
Satbir Singh
1a71c8f317 Default option value multi select 2020-03-31 03:21:35 +00:00
Abhinav Jha
5272505673 Add classnames 2020-03-30 14:21:21 +00:00
Trisha Anand
e4ab1635cc Double escaping java to support "\n" to be conserved through the proxy. 2020-03-30 15:11:25 +05:30
Satbir Singh
e99f9c1ca7 Merge branch 'fix/button-safari' into 'release'
Safari button fix

See merge request theappsmith/internal-tools-client!428
2020-03-30 08:55:52 +00:00
Satbir Singh
26b51f2f04 Safari button fix 2020-03-30 08:55:52 +00:00
Satbir Singh
fbec031a4a Merge branch 'feature/persist-col' into 'release'
Persist hidden column

See merge request theappsmith/internal-tools-client!411
2020-03-30 08:16:43 +00:00
Satbir Singh
4d928292e4 Persist hidden column 2020-03-30 08:16:43 +00:00
Hetu Nandu
cb385b68b0 Add class name on Page Navs for testing 2020-03-30 07:43:34 +00:00
Arpit Mohan
9f9098268b Fixing the user service test cases 2020-03-29 17:06:20 +05:30
Arpit Mohan
036bd3a392 Fixing the test cases and SeedMongoData
Only userServiceTest is failing now.
2020-03-28 23:07:31 +05:30
Arpit Mohan
381f2f6b4f Resolving merge conflicts from release branch 2020-03-28 21:52:35 +05:30
Arpit Mohan
9ce82bdcb6 Fixing json serialization issue for new line and JSON bodies.
Now we escape all the bindings once on the server to ensure that the unescaping that Spring did is reversed.
2020-03-28 13:48:41 +00:00
Shrikant Kandula
35a2722305 Fix add-slug migration messing up existing slugs, if any.
Migrations should be more resilient in regards to existing data.
2020-03-28 11:15:50 +00:00
Shrikant Kandula
31fa5a66f1 Use mongock for migrations.
Mongock is a fork of Mongobee with a better integration with
Spring. It also does not suffer from trying to access the
`system.indexes` collection.
See https://github.com/mongobee/mongobee/pull/87.
2020-03-28 10:08:11 +05:30
Shrikant Kandula
0947ddcd0f Remove findByName method for Organization domain.
Organization names are no longer unique, so this method
doesn't make as much sense. The `findBySlug` should serve
in it's place.
2020-03-27 14:52:25 +00:00
Hetu Nandu
38c731723b Merge branch 'feature/logLevelFlag' into 'release'
LogLevel flag

See merge request theappsmith/internal-tools-client!422
2020-03-27 12:46:29 +00:00
Hetu Nandu
3b3cab3a5f LogLevel flag 2020-03-27 12:46:29 +00:00
Abhinav Jha
1cc7d58c73 Update default widget rows 2020-03-27 17:36:30 +05:30
Abhinav Jha
f829e8f79a Fix Modal scroll behaviour. 2020-03-27 10:56:26 +00:00
Satbir Singh
4631b61adb Fixing tooltip overlap with dynamic input hint 2020-03-27 10:37:29 +00:00
Abhinav Jha
a0872b97f2 Generate widgets from blueprint. Close previously open modals when showing a modal. Fix unicode page name issue in pagelist sidebar 2020-03-27 09:02:11 +00:00
Nikhil Nandagopal
dca0a1d3db disabled water mark fusion charts 2020-03-27 12:44:09 +05:30
Trisha Anand
89215fab43 In case of the erroneous state of no DSL, don't allow refactor names. 2020-03-25 18:19:27 +05:30
Trisha Anand
a7cceaf0f1 After adding a rapid api template, the action created was being returned. This has been extended so that the transient fields required for UI are also set before returning the created action. 2020-03-24 19:15:02 +00:00
Hetu Nandu
6a22201e81 Fix api pane initialization issue 2020-03-24 14:05:19 +00:00
Trisha Anand
c12cb88265 Added transient field plugin id to set in action everytime its read. 2020-03-24 17:13:30 +05:30
Hetu Nandu
21a1550fff Merge branch 'fix/Table-Spec-BugFix' into 'release'
Duplicate element bug fix in Table_spec file

See merge request theappsmith/internal-tools-client!416
2020-03-24 11:40:15 +00:00
Moolya
8ed32b95d9 Duplicate element bug fix in Table_spec file 2020-03-24 16:31:40 +05:30
Hetu Nandu
80db9eb030 Performance instrumentation 2020-03-23 12:40:17 +00:00
vicky_primathon.in
e57d8bab7e chart title alignment changes 2020-03-23 12:18:06 +05:30
vicky_primathon.in
5cf1a0dde6 Merge branch 'release' of gitlab.com:theappsmith/internal-tools-client into fix/chart-component-title-align 2020-03-21 10:10:17 +05:30
Pushpa B
35e480d7e1 Feature/edit common widgets 2020-03-20 14:21:24 +00:00
vicky_primathon.in
65b1e85e6a commented code removed and widgetId used to created chart to differentiate b/w multiple charts in editor 2020-03-20 17:46:53 +05:30
Abhinav Jha
60bbb0b2a4 Merge branch 'feature/rich-text-editor' into 'release'
Feature/rich text editor

See merge request theappsmith/internal-tools-client!329
2020-03-20 11:17:30 +00:00
Vicky Bansal
45e20b659e Feature/rich text editor 2020-03-20 11:17:30 +00:00
Abhinav Jha
abc085bb98 Merge branch 'fix/date-picker' into 'release'
Fix/date picker

See merge request theappsmith/internal-tools-client!375

- It is now possible to toggle timezones
- It is now possible to show time along with the date.
2020-03-20 11:03:50 +00:00
Vicky Bansal
387667d7d1 Fix/date picker 2020-03-20 11:03:50 +00:00
Satbir Singh
9f6621231f Tooltip css fixes. 2020-03-20 09:45:44 +00:00
Hetu Nandu
c544ae95b6 Merge branch 'fix/js-switch-convert-back' into 'release'
Maintain current property value when switching back to property control from JS

See merge request theappsmith/internal-tools-client!404
2020-03-20 08:07:46 +00:00
Hetu Nandu
fce5186dbf Merge branch 'fix/current-page-data-tree' into 'release'
Datatree should only have actions of the current page

Fixes: https://www.notion.so/appsmith/Other-pages-bindings-should-not-show-in-the-current-page-API-dropdown-autocomplete-462ddf2943834e92a2e82d028b4e3412

Started storing the current pageId in a single place for editor and app view. We set then after updating the canvas. Changed the arg signature of what unevaluated data tree function expects by being more explicit. Passing only the current page actions in this function now. There are a few minor unrelated refactors too

See merge request theappsmith/internal-tools-client!403
2020-03-20 05:53:11 +00:00
vicky_primathon.in
00f511e1be no-var-requires disabled rule added 2020-03-20 09:35:54 +05:30
vicky_primathon.in
9021e6edb1 Merge branch 'release' of gitlab.com:theappsmith/internal-tools-client into fix/chart-component-title-align 2020-03-20 09:33:49 +05:30
vicky_primathon.in
be42c06827 chart changes to accept width height as percentage 2020-03-20 09:32:49 +05:30
Satbir Singh
d97d7f8d08 Merge branch 'feature/tooltip' into 'release'
Help tooltips on properties

See merge request theappsmith/internal-tools-client!407
2020-03-19 13:22:01 +00:00
Satbir Singh
9cc869b344 Help tooltips on properties 2020-03-19 13:22:01 +00:00
Satbir Singh
404f0800dd Merge branch 'fix/radio-option' into 'release'
Fixing radio option blur on edit.

See merge request theappsmith/internal-tools-client!406
2020-03-19 13:21:46 +00:00
Shrikant Kandula
60e9a1f18e Show Appsmith as the From name in sent emails. 2020-03-19 18:29:13 +05:30
Arpit Mohan
d7ec1f3c52 Merge branch 'release' into feature/acl-spring-object 2020-03-19 13:06:20 +05:30
Satbir Singh
78b8ed0303 Table refresh on page change. 2020-03-19 12:42:58 +05:30
Arpit Mohan
135280abaa Moving the propertyPane config to generic JSONObject
This ensures that the client can change the config at will without depending on the platform team to add the field to the POJO.

Also deleting redundant classes and controllers for propertyPane and Widget. These are no longer required and can be removed from the codebase.
2020-03-19 12:34:24 +05:30
Arpit Mohan
4725421cba Merge branch 'release' into feature/acl-spring-object 2020-03-19 11:54:36 +05:30
Hetu Nandu
546b0b7b3a store parsed state 2020-03-19 10:29:06 +05:30
Hetu Nandu
1e86690b52 data tree only contains current page actions 2020-03-19 08:55:52 +05:30
Satbir Singh
bc7c3b8765 Fixing radio option blur on edit. 2020-03-19 08:37:31 +05:30
Arpit Mohan
d384dac7ec Minor code clean up 2020-03-19 00:54:04 +05:30
Arpit Mohan
7316a77f42 Moving ActionRepository to the new custom repository format 2020-03-19 00:40:19 +05:30
Arpit Mohan
c5ac557961 Fixing the test cases for pageService and LayoutService
Also adding a helper query function in BaseAppsmithRepository that will make the code much cleaner for custom repository functions.
2020-03-19 00:24:30 +05:30
Arpit Mohan
9bf7bab85b Moving organization repository functions to the custom class.
Also fixing the SeedMongoData file with the seed data to correspond to the changes made in the OrganizationRepository. We will default to using the mongoTemplate in the SeedMongoData file in the future so that we don't have to deal with ACL when we are simply populating the DB.
2020-03-18 22:56:32 +05:30
Satbir Singh
0158791e91 Refactor page events. 2020-03-18 15:05:58 +00:00
Trisha Anand
44d5dccbbb Rest API and Rapid api plugin url encode the query parameters. The Providers returned are sorted by sortOrder in ascending order 2020-03-18 20:35:50 +05:30
Satbir Singh
b377502720 Merge branch 'feature/page-events' into 'release'
Page events

See merge request theappsmith/internal-tools-client!395
2020-03-18 14:31:30 +00:00
Satbir Singh
39009b0807 Page events 2020-03-18 14:31:30 +00:00
Satbir Singh
1c49672c64 Merge branch 'fix/nav-url' into 'release'
Added a https protocol to navigation url if it does not exist

See merge request theappsmith/internal-tools-client!397
2020-03-18 13:09:54 +00:00
Arpit Mohan
fc6f225935 Adding user policy to manage organization and fixing the organization create flow to ensure the right permissions are set
Also adding test case for get applications. Now we will fetch all applications that the user has read permissions to by default. It's not dependent on the organization that they are a part of.
2020-03-18 16:09:47 +05:30
Nikhil Nandagopal
ef9142d135 Merge branch 'hotfix/filepicker' into 'release'
Hotfix/filepicker

See merge request theappsmith/internal-tools-client!400
2020-03-18 10:11:51 +00:00
Nikhil Nandagopal
9a0ed2cefb updated form button widths 2020-03-18 15:28:31 +05:30
Nikhil Nandagopal
270f86361a updated widget config 2020-03-18 15:17:26 +05:30
Satbir Singh
9ed59b8380 Merge branch 'fix/api-jsonpathkeys' into 'release'
Fixing array issues with api run

See merge request theappsmith/internal-tools-client!396
2020-03-18 09:17:30 +00:00
Arpit Mohan
c06e16db83 Making changes to get the page tests to pass. Also minor improvements to LayoutServiceTest 2020-03-18 14:47:00 +05:30
Trisha Anand
0b7b4716db Credential steps should only be written but not read. 2020-03-18 14:40:02 +05:30
Trisha Anand
fad606a156 Updated Provider to include fields to help with display and sort order 2020-03-18 14:21:38 +05:30
Hetu Nandu
cf5b605729 fix issue 2020-03-18 13:37:51 +05:30
Satbir Singh
356faf1853 Navigation to url fixed. 2020-03-18 09:12:18 +05:30
Satbir Singh
4655322262 Fixing array issues with json pathkeys 2020-03-18 08:35:06 +05:30
Trisha Anand
015713f409 1. Add to Page changes : In case the sample response is null, don't set the cached response for the action.
2. Add to Page changes : Documentation object has been added in Action to handle the extra Template documentation for actions that have been imported from 3p marketplace
3. Added basic structure for rapid api plugin by copy pasting the rest api plugin
2020-03-17 18:19:22 +00:00
Arpit Mohan
f7dc3bfb4e Correcting the Docker packaging for master and building the project in Gitlab CI instead of Docker container. 2020-03-17 18:03:14 +00:00
Hetu Nandu
0860daba93 Merge branch 'fix/infinite-widget-loading' into 'release'
Fix widget loading issue

See merge request theappsmith/internal-tools-client!390
2020-03-17 16:15:27 +00:00
Hetu Nandu
0272b29ab2 fix loading issue 2020-03-17 21:27:35 +05:30
Satbir Singh
a5875cd30f Adding user to sentry and fixing source maps 2020-03-17 15:01:20 +00:00
Hetu Nandu
ea1d4cbde9 fix issue with default option logic 2020-03-17 19:25:09 +05:30
Arpit Mohan
868aa60ef5 Adding conditional variables to gitlab-ci
Also adding different Dockerfiles for release & prod. This is because in the prod version, we don't want the variable REACT_APP_BASE_URL to be set in the compiled files. This is set by nginx
2020-03-17 13:40:56 +00:00
Arpit Mohan
19b0d53c22 Fixing the tests for page creation. Also adding policies when a new page is created. 2020-03-17 18:47:45 +05:30
Shrikant Sharat Kandula
3679613561 Use updated short error messages. 2020-03-17 12:02:43 +00:00
Hetu Nandu
5099026ee6 Revert "Moving error boundary to allow for sentry errors."
This reverts commit 6909d03fc43adf72301eef8f2078327c95c4f15f.
2020-03-17 14:31:29 +05:30
Hetu Nandu
96903da7be Form input default value issues 2020-03-16 15:42:39 +00:00
Satbir Singh
28946bc782 Moving error boundary to allow for sentry errors. 2020-03-16 09:04:21 +00:00
vicky_primathon.in
76e25d5e38 chart component title left aligned 2020-03-16 13:32:47 +05:30
Hetu Nandu
855b49caee Fix js toggle issues 2020-03-16 07:59:07 +00:00
Arpit Mohan
1f35bd6a07 Adding the policy hierarchy graph and the lateral policy graph
These graphs help us map policies that are inherited from the parent and also lateral policies that are assigned to the users given that the user has a particular permission. Currently, the hierarchy has been defined for org & application. Need to cascade it to more documents such as pages & actions.
2020-03-16 10:46:28 +05:30
Satbir Singh
f5f225157c Fixing navigate to page 2020-03-16 10:45:21 +05:30
Vicky Bansal
adb7065b99 Feature/graph components 2020-03-13 12:06:41 +00:00
Trisha Anand
edd640a722 isJsConvertible is a boolean, not a string 2020-03-13 15:26:15 +05:30
Trisha Anand
89a9baebac Added label isJsConvertible to the config 2020-03-13 15:25:20 +05:30
Hetu Nandu
af247a181e trigger loading 2020-03-13 14:47:04 +05:30
Hetu Nandu
e6e2dd95db Merge branch 'fix/app-initialization' into 'release'
Fix Page load actions on app switch issue

See merge request theappsmith/internal-tools-client!376
2020-03-13 07:35:45 +00:00
Hetu Nandu
3faf95b882 Fix issues with Form Widget 2020-03-13 07:24:03 +00:00
Arpit Mohan
a892ee90b5 Merge release branch 2020-03-13 12:47:16 +05:30
Hetu Nandu
1bd5a8c5e7 fix page load actions issues 2020-03-13 01:57:39 +05:30
Trisha Anand
1d404cb9bf Get all categories now return Mono of List instead of Flux. 2020-03-12 20:01:43 +05:30
Trisha Anand
7c1434e274 Merge branch 'feature/action-provider-fields' into 'release'
Transient Provider fields added in Action which are filled before an Action is read.

See merge request theappsmith/internal-tools-server!225
2020-03-12 13:21:03 +00:00
Trisha Anand
2543be8668 Provider fields added with the transient property which is set for Actions when they are read. 2020-03-12 18:46:30 +05:30
Arpit Mohan
cc676e3393 Merge branch 'feature/mono-cache' into 'release'
Correcting the writeKey for Segment in Staging

Also adding Mono.cache in the user invite flow to ensure that the same Mono is not executed multiple times.

See merge request theappsmith/internal-tools-server!224
2020-03-12 11:18:22 +00:00
Arpit Mohan
0c5fc27450 Correcting the writeKey for Segment in Staging
Also adding Mono.cache in the user invite flow to ensure that the same Mono is not executed multiple times.
2020-03-12 16:44:31 +05:30
Trisha Anand
6050b370d4 1. Add to Page changes : In case the sample response is null, don't set the cached response for the action.
2. Add to Page changes : Documentation object has been added in Action to handle the extra Template documentation for actions that have been imported from 3p marketplace
3. Added basic structure for rapid api plugin by copy pasting the rest api plugin
2020-03-11 19:31:21 +00:00
Trisha Anand
5927271c71 Merge branch 'feature/rapid-api-plugin' into 'release'
Partial Rapid API Plugin + Minor bug fix.

See merge request theappsmith/internal-tools-server!218
2020-03-11 17:16:15 +00:00
Trisha Anand
b17fae8e44 1. Add to Page changes : In case the sample response is null, don't set the cached response for the action.
2. Add to Page changes : Documentation object has been added in Action to handle the extra Template documentation for actions that have been imported from 3p marketplace
3. Added basic structure for rapid api plugin by copy pasting the rest api plugin
2020-03-11 17:16:15 +00:00
Nikhil Nandagopal
a83518d2ec Merge branch 'hotfix/filepicker' into 'release'
fixed mb to byte conversion

See merge request theappsmith/internal-tools-client!374
2020-03-11 14:40:35 +00:00
Nikhil Nandagopal
c98e3dc7c2 fixed mb to byte conversion 2020-03-11 20:07:12 +05:30
Satbir Singh
cfb967117c More events 2020-03-11 13:59:46 +00:00
Trisha Anand
668b91665d 1. Added an endpoint to get all categories.
2. When provider is being fetched without a category, only Business Software category providers are returned.
2020-03-11 13:03:48 +00:00
Arpit Mohan
2da4727cbd Removing document version from all the Mongo documents.
Also adding Origin header to the user invite flow so that we can send the correct links to the user
2020-03-11 18:18:10 +05:30
Nikhil Nandagopal
3b01de3187 Merge branch 'hotfix/filepicker' into 'release'
added label for file picker

See merge request theappsmith/internal-tools-client!371
2020-03-11 12:06:05 +00:00
Arpit Mohan
c428032a8b Trying to get docker:dind to work on Gitlab CI
At the moment Gitlab CI is failing because it's unable to find the docker service
2020-03-11 16:38:56 +05:30
Arpit Mohan
edd4d7c362 Using gitlab CI environment variable for Git SHA instead of the git command 2020-03-11 15:20:35 +05:30
Arpit Mohan
21af31fb4f Merge branch 'fix/cypress-permissions' into 'release'
Fix cypress permissions.

- Make `cypress/test.sh` executable
- Add `cypress/videos` and `results` to `.gitignore`. These are cypress test results.

See merge request theappsmith/internal-tools-client!370
2020-03-11 09:39:10 +00:00
Arpit Mohan
bb7633f5a6 Adding Docker build and cypress testing for all MRs, release & master branches. 2020-03-11 09:24:17 +00:00
Abhinav Jha
6b2e9dbfa5 Fix cypress permissions. 2020-03-11 14:51:08 +05:30
Nikhil Nandagopal
b64a456b92 added label for file picker 2020-03-11 13:47:21 +05:30
Nikhil Nandagopal
0e8aa2ecb6 Merge branch 'hotfix/filepicker' into 'release'
Hotfix/filepicker

See merge request theappsmith/internal-tools-client!369
2020-03-11 06:53:13 +00:00
Arpit Mohan
68fd2f21d9 Updating the communication emails to users for signup, forgot password and invite user flows
Also adding the Origin header to the BaseController create function. This is required by the user creation flow in order to customize the links in the email. For most of the controllers overriding the BaseController, the request header parameter is non-mandatory and can be skipped for testing or otherwise.
2020-03-10 18:58:28 +05:30
Nikhil Nandagopal
ca6434430f minor fix 2020-03-10 16:12:04 +05:30
Pushpa B
067fdc2dee Feature/cypress test 2020-03-10 09:38:12 +00:00
Trisha Anand
580bfc76c7 Removing the soft delete right now. Due to the indexing this would lead to duplicate key errors. The index needs to be removed and the allowed naming should be done at application level. 2020-03-09 14:20:43 +05:30
Trisha Anand
e5f8f2bea9 Segment Events Fixed + Soft delete actions 2020-03-09 14:20:32 +05:30
Satbir Singh
dc7ba9ccb3 Merge branch 'fix/rem-fetch-app' into 'release'
Removed the extra call to fetch application data before load.

See merge request theappsmith/internal-tools-client!362
2020-03-09 05:46:32 +00:00
Satbir Singh
43a35c2162 Removed the extra call to fetch application data before load. 2020-03-09 05:46:32 +00:00
Satbir Singh
e5e321bce7 Separating Sentry stage events from production. 2020-03-09 10:08:53 +05:30
Hetu Nandu
bed2c6da07 fix input validation with dirty check 2020-03-06 19:59:10 +05:30
Hetu Nandu
284ce8580c added config 2020-03-06 19:35:24 +05:30
Abhinav Jha
4c6f285844 Merge branch 'fix/collision-calculations' into 'release'
Fix issue where the dropzone was mistakenly colored as colliding.

See merge request theappsmith/internal-tools-client!356
2020-03-06 11:08:20 +00:00
Abhinav Jha
173813b6fc Fix issue where the dropzone was mistakenly colored as colliding. 2020-03-06 16:11:46 +05:30
Satbir Singh
a260b9f621 Fixing the application header issue. 2020-03-06 15:45:26 +05:30
Hetu Nandu
7360387281 Merge branch 'feature/form-widget' into 'release'
Form Widget

See merge request theappsmith/internal-tools-client!336
2020-03-06 09:45:21 +00:00
Hetu Nandu
d9dee9b16d Form Widget 2020-03-06 09:45:21 +00:00
Nikhil Nandagopal
eef83cb482 Merge branch 'feature/file-picker' into 'release'
file picker fixes

See merge request theappsmith/internal-tools-client!354
2020-03-06 09:41:13 +00:00
Abhinav Jha
e3d63f0b22 Remove roboto font. Change the property pane toggling mechanism. Increase max bottom row offset for main container from 2 to 5. Fix padding and offsets for the widget border component, resize handles. 2020-03-06 09:33:20 +00:00
Nikhil Nandagopal
f945236b88 Merge branch 'release' into feature/file-picker 2020-03-06 14:51:24 +05:30
Nikhil Nandagopal
0e98e4738a file picker fixes 2020-03-06 14:50:18 +05:30
Satbir Singh
e28637b1e3 Merge branch 'feature/analytics-staging' into 'release'
Separating segment for production and staging.

See merge request theappsmith/internal-tools-client!350
2020-03-06 08:14:59 +00:00
Satbir Singh
4c392c9c92 Separating segment for production and staging. 2020-03-06 08:14:59 +00:00
Satbir Singh
c2dcc435dc Updating login structure as per backend 2020-03-06 06:54:44 +00:00
Arpit Mohan
35b0c22334 Adding /profile endpoint to return enhanced user profile to the client. 2020-03-06 06:17:00 +00:00
Satbir Singh
0b9a0cc6ab More events 2020-03-06 04:59:24 +00:00
Arpit Mohan
40964c3dfe WIP commit of trying to create an inheritance structure with permissions.
Also, moving all permissions to READ & MANAGE. Not maintaining separate permissions to create, update & delete.
2020-03-06 09:29:45 +05:30
Arpit Mohan
1475d9124a Fixing all the test cases for OrganizationService
We still need to add a lot more test cases to ensure that no functionality has broken. But this is a start in the right direction.
2020-03-05 19:35:24 +05:30
Arpit Mohan
c9a885d605 Modifying the create application flow in ApplicationPageService. All the tests in ApplicationService are passing
In order to create an application with valid permissions, we copy the relevant permissions from the organization of the user. This involves changes to the organizationService and OrganizationRepository as well.
2020-03-05 18:53:40 +05:30
Arpit Mohan
c813678f49 Adding the AclPermission enum to track all possible permissions globally
Also moving the argument AclPermission to the custom Repository interface level. This is to ensure that all the service functions can invoke the same repository function with different permissions based on their requirements.
2020-03-05 15:33:41 +05:30
Hetu Nandu
8654a87eea Merge branch 'fix/disparity-in-styles' into 'release'
Fix disparity in the styles of local and release builds.

See merge request theappsmith/internal-tools-client!347
2020-03-05 09:33:39 +00:00
Satbir Singh
b9dfd0e71e No sentry source maps uploaded on local build. 2020-03-05 09:17:10 +00:00
Abhinav Jha
8b6eabd771 Fix disparity in the styles of local and release builds. 2020-03-05 14:11:32 +05:30
Arpit Mohan
c5e8f3bef4 Removing unnecessary and extra code in AclFilter, MongoAspect and CustomWebExpressionHandler 2020-03-04 19:12:34 +05:30
Arpit Mohan
243376642b Deleting the unnecessary annotations and aspects 2020-03-04 19:02:24 +05:30
Arpit Mohan
f47e7eb882 Adding ACL policy filters to CustomApplicationRepository functions 2020-03-04 18:57:46 +05:30
Arpit Mohan
0914acdca6 Adding default principal for anonymous Users in SecurityConfig
Also, hard-coding the document fields in BaseRepositoryImpl criteria queries.
2020-03-04 18:57:46 +05:30
Arpit Mohan
7019bae082 Adding policy to the document object instead of the user
The login has broken and all users are being treated as un-authenticated users
2020-03-04 18:57:46 +05:30
Arpit Mohan
a1ee6d9508 Adding querydsl properties instead of hardcoded names 2020-03-04 18:57:46 +05:30
Arpit Mohan
3a1673dfca Adding QueryDsl to the appsmith-server and appsmith-interfaces modules
This will generate the annotated classes so that we can refer to the fields easily and scalably.
2020-03-04 18:57:46 +05:30
Arpit Mohan
125982dabf Adding the ARN object and parsing it for user login and while checking permissions in PreAuthorize & custom repo implementations 2020-03-04 18:57:46 +05:30
Arpit Mohan
e078382b94 Adding the user policy object that has permissions for ARN objects.
Now we need to parse the ARN and match it to the policy in the PreAuthorize & Custom repository functions.
2020-03-04 18:57:46 +05:30
Arpit Mohan
bd5424095a Adding default implementations for a few functions which filter by ACL clause.
This is present in the BaseRepositoryImpl. In this manner, we can add default conditions to all the basic JPA queries. Now we only need to figure out how to intercept the custom queries to add user details into.
2020-03-04 18:57:46 +05:30
Arpit Mohan
5b09427b6c Removing the aspect and trying to implement the application repository directly 2020-03-04 18:57:46 +05:30
Arpit Mohan
29ae5fd360 Adding default implementation for applicationrepository to test 2020-03-04 18:57:46 +05:30
Arpit Mohan
63f4056a8a Another WIP commit.
At the moment, we cannot fetch the user from securityContext in the SoftDeleteMongo Query Lookup
2020-03-04 18:57:46 +05:30
Arpit Mohan
d5ed147111 Getting the AclAspect to work for both Mono & Flux methods.
This is done by checking the return type of the function via the joinPoint method signature
2020-03-04 18:57:46 +05:30
Arpit Mohan
bd1c390402 Allowing user to define multiple AclPermissions for a given permission
Also adding proper Acl permissions on ApplicationService and PageService functions
2020-03-04 18:57:46 +05:30
Arpit Mohan
9f3197792a WIP Commit to save the dev state 2020-03-04 18:57:46 +05:30
Arpit Mohan
f53a444635 Adding sessionId to the MDC logging to make debugging simpler 2020-03-04 18:16:12 +05:30
Abhinav Jha
e995b90151 Remove the troublemaking page.min.js 2020-03-04 16:07:00 +05:30
Trisha Anand
0cba85c95b Filter providers by category added. 2020-03-04 15:24:14 +05:30
Abhinav Jha
37c96ab839 Fix - P0 issues 2020-03-04 08:10:40 +00:00
Trisha Anand
f97053a314 Marketplace GET Controller & Add an action/template to current page 2020-03-04 07:50:54 +00:00
Satbir Singh
49d3ec055a Removing sourcemaps after upload. 2020-03-04 07:13:38 +00:00
Satbir Singh
79c31ac6ca Merge branch 'feature/events' into 'release'
Feature/events

See merge request theappsmith/internal-tools-client!337
2020-03-03 07:02:54 +00:00
Satbir Singh
d6d6d4b40d Feature/events 2020-03-03 07:02:53 +00:00
Hetu Nandu
ce0f3b933a Critical fixes 2020-03-03 06:51:59 +00:00
Trisha Anand
65ceb24fcf Merge branch 'hotfix/curl-parser-test' into 'release'
Fixing the curl parser test. Required setting a MockBean for pluginExecutor...

See merge request theappsmith/internal-tools-server!208
2020-03-02 09:07:33 +00:00
Trisha Anand
6b5faa6218 Added more detail to the invalid action error to pin point which action is invalid at least in the logs. 2020-03-02 14:34:48 +05:30
Arpit Mohan
d239f25697 Fixing the curl parser test. Required setting a MockBean for pluginExecutor bean and adding RestTemplateExecutor to the SeedMongoData file.
Also moving the plugin search in CurlImporterService to packageName instead of just name.
2020-02-29 10:05:10 +05:30
Satbir Singh
a188d6080a Sentry sourcemaps 2020-02-27 11:25:55 +00:00
Abhinav Jha
33b48d502e Merge branch 'fix/storybook2' into 'release'
Storybook

Add stories for Form Message and Button Components

See merge request theappsmith/internal-tools-client!331
2020-02-27 08:37:30 +00:00
Abhinav Jha
66f582d519 Storybook 2020-02-27 08:37:30 +00:00
Abhinav Jha
68858104c1 Fix propertypane invalid control error 2020-02-27 12:44:32 +05:30
Abhinav Jha
7d90b3097c Merge branch 'fix/auth-forms-styles' into 'release'
Fix user auth forms styles.

- New Text input field with design adherent errors.
- New Form message for the whole app

See merge request theappsmith/internal-tools-client!325
2020-02-27 04:04:59 +00:00
Abhinav Jha
4d68e9a167 Remove unused variables. Remove missed console.log statement. 2020-02-27 09:29:28 +05:30
Abhinav Jha
7e48cfa70a Add classes to property controls 2020-02-27 03:56:30 +00:00
Abhinav Jha
44848d33cf Merge branch 'release' of gitlab.com:theappsmith/internal-tools-client into fix/auth-forms-styles 2020-02-27 09:25:04 +05:30
Satbir Singh
f5dc4b5fe1 Merge branch 'fix/sel-row' into 'release'
selectedRow fixes

See merge request theappsmith/internal-tools-client!328
2020-02-27 03:05:14 +00:00
Satbir Singh
e74cda816b selectedRow fixes 2020-02-27 03:05:14 +00:00
Hetu Nandu
5e0beb9fe7 Property Pane - Convert control to dynamic 2020-02-26 12:44:56 +00:00
Arpit Mohan
2ad6d3f11b Adding test cases in ActionService for some create Action workflows 2020-02-26 12:46:10 +05:30
Arpit Mohan
971c1c3c24 Fixing the spring data auditable issue by creating a dummy embedded Datasource object in Action
This is to ensure that setting the createdAt nad updatedAt properties by spring-data will still succeed even if the client doesn't provide us with the datasource details.
2020-02-26 12:45:07 +05:30
Abhinav Jha
711abae075 Merge branch 'release' of gitlab.com:theappsmith/internal-tools-client into fix/auth-forms-styles 2020-02-25 17:43:33 +05:30
Abhinav Jha
cdb0be7bd5 Fix input fields for signup, create password, forgot password, reset password pages 2020-02-25 17:08:53 +05:30
Arpit Mohan
249bbbde39 Adding the field shouldCacheResponse to the ActionExecutionResult to make the response caching generic across various plugins 2020-02-25 11:36:02 +00:00
Abhinav Jha
c36146b431 Fix User auth page styles. 2020-02-25 17:03:07 +05:30
Abhinav Jha
504b74f60f Merge branch 'testing/test-classes-flow-1' into 'release'
Add classNames for testing - 1

See merge request theappsmith/internal-tools-client!322
2020-02-25 09:25:23 +00:00
Hetu Nandu
61915303bf Merge branch 'fix/auto-complete-functions' into 'release'
Fix passing wrong data for extra libs in autocomplete

See merge request theappsmith/internal-tools-client!324
2020-02-25 08:54:49 +00:00
Arpit Mohan
a835c84582 Merge branch 'feature/embedded-datasource' into 'release'
Creating an embedded datasource for the action

Now the user can create an embedded datasource as well as a saved datasource for the action. 

This MR also fixes the import for a curl command by setting defaults when an action is created via the curl command. For now, the curl command only accepts short flags and not the long form flags.

See merge request theappsmith/internal-tools-server!204
2020-02-25 08:54:16 +00:00
Trisha Anand
609045747b Creating an embedded datasource for an action.
Also setting defaults for an action when created via a curl command.
2020-02-25 08:54:16 +00:00
Hetu Nandu
0a40cebf79 function support 2020-02-25 14:20:40 +05:30
Abhinav Jha
000be868ec Add classes for login button, publish button, application card, widgetcard, editor nav links and application search input. 2020-02-25 12:53:59 +05:30
Abhinav Jha
65e514169a Merge branch 'fix/filepicker-defaultclick' into 'release'
Disable first click from opening the modal in filepicker

See merge request theappsmith/internal-tools-client!321
2020-02-25 06:54:30 +00:00
Abhinav Jha
e2a1217b8b Remove default click from filepicker 2020-02-25 12:18:41 +05:30
Arpit Mohan
3020af632b When deleting a page, also remove it from the application page cache.
This fixes the bug where the application could not be published because it assumed a page existed when that page had been deleted.
2020-02-25 11:26:41 +05:30
Satbir Singh
da61f698cf Merge branch 'fix/radio' into 'release'
Changed default option to text.

See merge request theappsmith/internal-tools-client!315
2020-02-24 14:55:10 +00:00
Satbir Singh
9b7a0731e9 Changed default option to text. 2020-02-24 14:55:09 +00:00
Nikhil Nandagopal
d645d2aa74 Merge branch 'feature/file-picker' into 'release'
minor fix for file picker

See merge request theappsmith/internal-tools-client!320
2020-02-24 14:32:35 +00:00
Nikhil Nandagopal
fc4d84bac3 minor fix for file picker 2020-02-24 19:58:20 +05:30
Hetu Nandu
af150b17e9 Fix focus state of editor 2020-02-24 12:58:16 +00:00
Satbir Singh
78babf36af Fix/table 2020-02-24 10:45:36 +00:00
Abhinav Jha
a03cb28a3a WIP: Fix user auth forms styles. 2020-02-24 15:05:11 +05:30
Arpit Mohan
6a93b948b7 Increasing the request buffer size to 5 MB in the default application.properties file
This is required for file uploading widgets to be able to successfully upload files.
2020-02-24 14:30:11 +05:30
Abhinav Jha
4cb0e5c0cf Merge branch 'fix/create-application-error-message' into 'release'
Fix Infinite spinner when create application fails.

- The create application form should reflect the error returned from the api. 
- The create application form's submit button should not go into an infinite spin mode.

See merge request theappsmith/internal-tools-client!314
2020-02-24 08:08:29 +00:00
Abhinav Jha
a9fa2a6817 Merge branch 'fix/single-select-dropdown-styles' into 'release'
Fix single select dropdown background style

See merge request theappsmith/internal-tools-client!313
2020-02-24 07:58:13 +00:00
Abhinav Jha
5b36b3dc3a Fix Infinite spinner when create application fails. 2020-02-24 13:22:22 +05:30
Abhinav Jha
6f41290bc7 Fix single select dropdown background style 2020-02-24 13:00:53 +05:30
Abhinav Jha
48b7b45cbc Change toast font size from 14px to 16px 2020-02-24 12:36:30 +05:30
Nikhil Nandagopal
c1c06a6b7f Merge branch 'feature/file-picker' into 'release'
moved to storing file on add instead of upload

See merge request theappsmith/internal-tools-client!310
2020-02-24 06:37:48 +00:00
Nikhil Nandagopal
c093d9714e moved to storing file on add instead of upload 2020-02-24 11:59:39 +05:30
Arpit Mohan
786aca059e Revert "Merge branch 'feature/embedded-datasource' into 'release'"
This reverts commit 35b49833615d88bc484207670b8ddf645f70d1ad, reversing
changes made to 29bee80c426b4c469bf8e774b7febf4f63b196b4.
2020-02-24 11:31:58 +05:30
Arpit Mohan
df2d7d2b3d Increasing the maximum buffer size for requests to 5 MB 2020-02-24 10:53:45 +05:30
Nikhil Nandagopal
87a9a2d80b Merge branch 'feature/file-picker' into 'release'
updated dsl with files picked in base 64

See merge request theappsmith/internal-tools-client!309
2020-02-22 01:46:01 +00:00
Nikhil Nandagopal
7e732a4c7d moved from dashboard modal to dashboard 2020-02-22 07:09:28 +05:30
Nikhil Nandagopal
ff98deeadb updated dsl with files picked in base 64 2020-02-21 18:47:52 +05:30
Abhinav Jha
8024fe5131 Feature - update widget name 2020-02-21 12:16:49 +00:00
Hetu Nandu
79f8719b4e changes i thought i added 2020-02-21 13:27:28 +05:30
Trisha Anand
a3cd991fd3 Merge branch 'feature/embedded-datasource' into 'release'
Embedding datasource inside Action to get CURL Importer to work

See merge request theappsmith/internal-tools-server!200
2020-02-21 07:19:47 +00:00
Trisha Anand
a7881935da This fixes the bug during refactor of name of a widget/action. This bug is recreatable if in the page there is an action with no jsonPathKeys. Handled the null pointer exception by first checking for the null pointer. 2020-02-21 07:19:46 +00:00
Abhinav Jha
4045bf4a3d Remove deleted page from list. Disable setting a page as default when it is already the default. Throw error when deleting the homepage. 2020-02-21 07:19:10 +00:00
Trisha Anand
6109bd4b6c Added valueOptions to store the permitted values for a key (which is being sent by rapidApi today) 2020-02-21 11:16:07 +05:30
Hetu Nandu
1447b4f48f Fix few p0 issues 2020-02-20 15:03:14 +00:00
Trisha Anand
977bac62dc Added hashValue and scraperid to Template 2020-02-20 19:18:48 +05:30
Trisha Anand
1795be3c76 Added route parameters to action configuration to handle the scenario of rapid api putting variables in the path 2020-02-19 17:47:26 +05:30
Abhinav
8fd04cc5e1 Enforce uniform padding in resizable components 2020-02-19 15:56:17 +05:30
Abhinav
b0211049f8 Fix resize flicker. Add resize handles to corners. Enforce minimum width and height for widgets. 2020-02-19 15:30:03 +05:30
Trisha Anand
8ea5d6663c Making the Templates searchable by name, provider id, versionId, and Id 2020-02-19 14:07:49 +05:30
Abhinav
1eb0b6bcff Fix Visibility issue. Fix widget padding issue. Fix issue where dropzone disappears. 2020-02-19 02:05:52 +05:30
Abhinav
2340250ba0 Fix cherry pick conflicts 2020-02-19 01:33:55 +05:30
Hetu Nandu
5a95991fbd fixes 2020-02-18 23:43:19 +05:30
Hetu Nandu
c312697dd2 handle old actions 2020-02-18 16:33:25 +05:30
Hetu Nandu
fb80c4b576 Action refactor 2020-02-18 10:41:52 +00:00
Trisha Anand
634a625906 1. Adding provider plan subscribed to and list of all the plans to Provider
2. Curl Importer should call create action instead of saving it directly so that all the defaults can be set up properly.
2020-02-17 10:08:35 +00:00
Trisha Anand
78bae54f55 Instead of using the latest docker image, using a particular docker image to overcome the latest docker bbuild being brocken issue. 2020-02-17 10:44:18 +05:30
Trisha Anand
62fba19011 Checking if the docker packaging step in CI/CD pipeline has fixed itself over the weekend. 2020-02-17 10:36:14 +05:30
Trisha Anand
88e1ce26e2 Removing docker packaging from release branch because it's getting stuck in Gitlab CI
Don't know why this is happening
2020-02-14 18:23:46 +05:30
Arpit Mohan
f76d40482d Merge branch 'release' of gitlab.com:theappsmith/internal-tools-server into release 2020-02-14 14:23:13 +05:30
Arpit Mohan
a05adf4293 Adding checks to ensure that we can remove the oauth2 allowed domains from the properties file
We now create another list from the value provided in the properties file. All checks in the codebase are performed against this list. This ensures that there are no NPE and exceptions when the property oauth2.allowed-domains is removed from the properties file.
2020-02-14 14:22:59 +05:30
Hetu Nandu
4343d7bdd8 Dropdown widget fixes 2020-02-14 07:48:33 +00:00
Trisha Anand
96cd15e9ce Extended the ActionConfiguration to accept rest api body in the form of key-value for form-data input. Also extended Property to include fields which would help the user in configuring the API (like description, mandatory, etc.) 2020-02-14 13:18:26 +05:30
Trisha Anand
2e11a5c2d5 Added datasource configuration to the provider to support the provider level configurations in rapid api 2020-02-14 06:32:34 +00:00
Hetu Nandu
893e8d1b37 Merge branch 'fix/few-issues' into 'release'
Fix api pane fixes

- Fix Api Run button not going in loading state
- Fix Api onSuccess and onError not being called

See merge request theappsmith/internal-tools-client!294
2020-02-13 11:48:27 +00:00
Hetu Nandu
a00e53c70d api fixes 2020-02-13 17:08:34 +05:30
Abhinav Jha
dac746d1e6 Transparent Canvas - Template 1 2020-02-13 09:32:24 +00:00
Arpit Mohan
23641a7e9a Removing Google Auth domain restrictions for all environments
In the SaaS version, we want folks from all domains to be able to sign up to the platform
2020-02-13 10:03:25 +05:30
Abhinav Jha
12c8bfe374 Focus widget only if not already focused. Remove routerparams reducer, we have the info in editorReducer. Change anchor link to button to remove accessibility warnings. 2020-02-12 15:06:08 +05:30
Satbir Singh
3feb8a33e7 Api pane css fixes. 2020-02-12 08:23:50 +00:00
Satbir Singh
82992e3f96 Fixed dropdown option delete issues. 2020-02-11 11:03:10 +00:00
Satbir
8b807f8d29 Updating meta & widget property not need widgetid 2020-02-11 15:43:06 +05:30
Abhinav Jha
870961650a Widget visibility 2020-02-11 09:56:21 +00:00
Satbir Singh
24bca16cf6 Pagination enhancements. 2020-02-07 11:34:57 +00:00
Arpit Mohan
b28073cd4b Merge branch 'feature/acl-unauthorized-response' into 'release'
Correcting the error response returned by the AclFilter to match the ErrorDTO...

Correcting the error response returned by the AclFilter to match the ErrorDTO returned from controller functions

This ensures consistent responses from different parts of our application. The client can then rely on the server to provide a constistent response structure.

See merge request theappsmith/internal-tools-server!194
2020-02-07 10:15:48 +00:00
Arpit Mohan
bd65ba41e0 Correcting the error response returned by the AclFilter to match the ErrorDTO returned from controller functions
This ensures consistent responses from different parts of our application. The client can then rely on the server to provide a constistent response structure.
2020-02-07 15:41:45 +05:30
Trisha Anand
8661f71a80 Mock apis for 3P frontend work 2020-02-07 09:05:14 +00:00
Satbir Singh
84d35aced6 Feature/server side pagination 2020-02-07 02:32:52 +00:00
Abhinav Jha
b3bbf433bf Merge branch 'fix/P0-dragging-animation' into 'release'
Dropzone fixes

See merge request theappsmith/internal-tools-client!285
2020-02-06 07:22:03 +00:00
Abhinav Jha
04162f3126 Dropzone does not fly from far way when dragging for the first time. Friction is lower and tension is higher for more responsive spring animation. 2020-02-06 12:44:43 +05:30
Abhinav Jha
ca88aeb2f8 Merge branch 'fix/widget-intent-styles' into 'release'
Widget Styles
- Fix Dropdown widget styles.
- Change Input widget to TextArea widget when type === Text and number of rows is more than 1
- Fix radio group widget styles
- Fix checkbox widget styles

See merge request theappsmith/internal-tools-client!283
2020-02-06 07:01:25 +00:00
Abhinav Jha
f787e18bb5 Widget Styles 2020-02-06 07:01:25 +00:00
Abhinav Jha
7a150c8c1b Fix issue where login button is disabled despite having creds autofilled by chrome. 2020-02-06 12:18:32 +05:30
Arpit Mohan
5031f40897 Merge branch 'feature/pagination-type' into 'release'
Renaming isPaginated to PaginationType to support different types of pagination on the frontend

If the API is paginated via the table's page number, then the next and prev URLs in the action don't play any role. Those fields are only required when the paginationType is of type URL. In all other scenarios, the action is executed normally.

See merge request theappsmith/internal-tools-server!192
2020-02-05 09:24:06 +00:00
Arpit Mohan
ffc7328e13 Renaming isPaginated to PaginationType to support different types of pagination on the frontend
If the API is paginated via the table's page number, then the next and prev URLs in the action don't play any role. Those fields are only required when the paginationType is of type URL. In all other scenarios, the action is executed normally.
2020-02-05 14:41:53 +05:30
Arpit Mohan
3fc9c36919 Refactoring the code to fix bug where a user creating an organization wasn't getting assigned the default groups
Now, regardless of the route with which an organization is created (invitation, signup or self-create by user), the correct groups and permissions are assigned to the user.
2020-02-05 13:20:09 +05:30
Abhinav Jha
e2ceaed1db Merge branch 'fix/delete-app-order' into 'release'
Delete application after api response

- When user clicks on delete application -show toast
- When delete api response returns, remove toast as well as application card.

See merge request theappsmith/internal-tools-client!277
2020-02-05 07:00:54 +00:00
Arpit Mohan
440de34857 Refactoring the code to add page archival for a given application
The code for archiving an application has been moved to ApplicationPageService so that both the PageService and ApplicationService can access it.
2020-02-05 08:37:48 +05:30
Arpit Mohan
3838338099 Adding the permission to delete pages to acl.rego file 2020-02-05 08:34:32 +05:30
Arpit Mohan
fbada3051d Adding default implementation in BaseRepositoryImpl for default JPA queries defined by Spring Data.
We override the SimpleReactiveMongoRepository with our custom implementation to add criteria for filtering soft deleted records.
Also, adding a new function to archive record instead of a hard delete.
2020-02-04 12:02:51 +00:00
Hetu Nandu
9164524449 autoclose brackets and default input 2020-02-04 16:10:55 +05:30
Hetu Nandu
043c082f8b set value after initializing editor 2020-02-04 15:41:33 +05:30
Satbir Singh
6987b392d7 Revert "Merge branch 'feature/server-side-pagination' into 'release'"
This reverts merge request !271
2020-02-04 09:41:12 +00:00
Satbir Singh
7edad01821 Server side pagination 2020-02-04 08:59:46 +00:00
Abhinav Jha
1dcdf8694f Delete application after api response 2020-02-03 17:49:10 +05:30
Hetu Nandu
718aad5490 Merge branch 'fix/misc-issues' into 'release'
P0 fixes

See merge request theappsmith/internal-tools-client!276
2020-02-03 11:49:20 +00:00
Hetu Nandu
ef245c1c8d P0 fixes 2020-02-03 11:49:20 +00:00
Abhinav Jha
e6a6442fa7 Merge branch 'feature/switch-org' into 'release'
Create and Switch Organizations

- Users should be able to switch to any organization in the organization dropdown
- Users should be able to create an organization from the organization dropdown

See merge request theappsmith/internal-tools-client!272
2020-02-03 10:37:03 +00:00
Abhinav Jha
ae13b079ec Create and Switch Organizations 2020-02-03 10:37:03 +00:00
Arpit Mohan
05cfa3f72f Merge branch 'bug/actions-by-orgId' into 'release'
/actions should return all the actions of the current organization only.

Added organizationId to Action. This gets set only during create operation. Whenever get is performed on actions, it is filtered using organizationId.

See merge request theappsmith/internal-tools-server!164
2020-02-01 05:09:28 +00:00
Trisha Anand
c6a18aed87 /actions should return all the actions of the current organization only. 2020-02-01 05:09:28 +00:00
Trisha Anand
5e640a3608 This ensures that the action (with any changes) is saved along with the new page id. 2020-01-31 18:10:46 +05:30
Trisha Anand
7f52c34d55 If the json path key contains the action itself, then it should be removed from the dependents. This is because otherwise we would end up in an infinite loop trying to calculate the action dependents in a recursive fashion. 2020-01-31 17:26:52 +05:30
Hetu Nandu
6c86253945 Fix components for widget update 2020-01-31 11:13:16 +00:00
Abhinav Jha
235273d1e3 P1 issues 2020-01-31 10:46:43 +00:00
Arpit Mohan
0e7bbe1479 WIP commit on soft deletes
ANother WIP
2020-01-31 09:34:36 +00:00
Hetu Nandu
0dd25ba2ef Refactor Widget loading 2020-01-30 13:23:04 +00:00
Hetu Nandu
b6898d4ef7 Page Load actions with dependencies 2020-01-30 10:55:37 +00:00
Trisha Anand
c437d7fc3c Fixed the run time issues seen with page load action dependency changes 2020-01-30 16:00:50 +05:30
Trisha Anand
77cfc0d9bd All the page load actions and their dependent page load actions now are stored as part of on page load actions 2020-01-30 09:48:48 +00:00
Trisha Anand
4ba6344cfd When user creates an organization, the user automatically gets added to the said org. 2020-01-30 09:24:31 +00:00
Arpit Mohan
15cbd266b3 Ignoring the createdAt, updatedAt and version fields in BaseDomain object.
This is because the client sends us the complete document as is. This causes conflicts in MongoDB for versioning and java Instant deserialization.
2020-01-30 12:55:33 +05:30
Arpit Mohan
d313f37f5c Adding mongo auditing to add createdAt and updatedAt timestamps to the documents in the DB.
At the moment, reactive Spring does not support AuditorAware implementation which also inserts the username of the user making the changes. Reference: https://jira.spring.io/browse/DATACMNS-1231.
2020-01-30 06:15:20 +00:00
Trisha Anand
655e26a986 Removing logs added to debug release for pagination. 2020-01-29 16:17:42 +05:30
Trisha Anand
d3769bad62 In case of duplicate key, send the application error code instead of http error code so that frontend can handle the duplicate key error gracefully 2020-01-29 10:22:21 +00:00
Arpit Mohan
8e8152ea63 Adding permission to delete the application by a user 2020-01-29 14:52:45 +05:30
Trisha Anand
c6da910c2b In case of duplicate key, send the application error code instead of http error code so that frontend can handle the duplicate key error gracefully 2020-01-29 08:50:50 +00:00
Trisha Anand
a9dd24152c Fixed the null pointer exception which is happening because of isPaginated field not being available for non paginated APIs 2020-01-29 11:04:48 +05:30
Trisha Anand
17f4a6f2e8 Handle server side pagination in action 2020-01-28 14:40:59 +00:00
Abhinav Jha
120ef8b8a8 Invite users role dropdown size. Drag friction. icon button background 2020-01-28 18:18:00 +05:30
Nikhil Nandagopal
75edd7c85d Merge branch 'fix/ui-fixes-2' into 'release'
Misc UI Fixes

See merge request theappsmith/internal-tools-client!268
2020-01-28 11:53:16 +00:00
Abhinav Jha
474f98f4fc Misc UI Fixes 2020-01-28 17:16:04 +05:30
Arpit Mohan
7764038ce9 Moving the form login & logout endpoints to /api/v1/login and /api/v1/logout
This is to ensure that when we deploy in production, we can add redirect rules on Nginx. Now /api and /oauth2 urls will proxy to the API server while all other URLs will proxy to the frontend server.
2020-01-28 17:12:46 +05:30
Abhinav Jha
c183b08561 Fix Dropzone 2020-01-28 11:22:54 +00:00
Nikhil Nandagopal
12403e6201 Merge branch 'release' of gitlab.com:theappsmith/internal-tools-client into release 2020-01-28 13:59:49 +05:30
Nikhil Nandagopal
11a33f2119 Merge branch 'master' into release
# Conflicts:
#	src/api/Api.tsx
#	src/pages/common/CustomizedDropdown/OrgDropdownData.tsx
2020-01-28 13:58:11 +05:30
Abhinav Jha
f92c233323 Ad-hoc changes for ui styles. 2020-01-28 08:21:22 +00:00
Abhinav Jha
5c0f221cc7 Fix Editable Text. Sidnav styles. editor/viewer redirection from application card. 2020-01-28 11:57:46 +05:30
Hetu Nandu
9b00a345ad Various P0 fixes 2020-01-27 13:53:33 +00:00
Abhinav Jha
70090ab392 Property Pane UI Styles 2020-01-27 11:39:27 +00:00
Trisha Anand
687b664011 Because the action was being saved directly, the isValid and invalid fields which are computed every time an action is updated, was not getting computed. isValid and invalids being null led to null pointer error after the action was moved. Fixed that by calling update instead of saving the action directly. 2020-01-27 09:17:45 +00:00
Abhinav Jha
156565c65e Page Management 2020-01-27 08:24:58 +00:00
Abhinav Jha
b1b5f5c669 Remove double click, add single click to property pane. 2020-01-24 10:44:15 +00:00
Hetu Nandu
729599009a Api page association 2020-01-24 09:54:40 +00:00
Nikhil Nandagopal
14a6017d8c Merge branch 'fix/published-page-parsing-issue' into 'release'
Fix issue with published page rendering

See merge request theappsmith/internal-tools-client!252
2020-01-24 07:58:47 +00:00
Trisha Anand
d1705a1931 Corrected receiving the response from String to byte[] array. This ensures that binary responses can also be handled. Added handling of content type Image. 2020-01-24 07:49:52 +00:00
Trisha Anand
ff56dc9661 Added controller end point to make a page default. When creating a new application, the default page created is set to default=true. Also, when returning pages by application id and by application name, the page's default status is returned as well as part of PageNameIDDTO 2020-01-23 14:45:05 +00:00
Satbir Singh
7d18320c50 Minor fixes for column actions 2020-01-23 13:32:05 +00:00
Satbir Singh
17b5b9d535 Fixing the selected row issue due to pagination 2020-01-23 12:15:11 +00:00
Abhinav Jha
37ed88c10d Merge branch 'fix/cleanup-for-deployment' into 'release'
Fix widgets for deployments

See merge request theappsmith/internal-tools-client!254
2020-01-23 11:20:49 +00:00
Trisha Anand
c9cf2f4b94 Removing enum for WidgetSectionName and converting to a String
This is to ensure that the frontend can create sections as per their requirement and not be mandated by an enum in the server codebase.
2020-01-23 09:36:44 +00:00
Satbir Singh
2e97517779 Column actions feature 2020-01-23 07:53:36 +00:00
Abhinav Jha
de5fead89b Hotfix/baseurl env 2020-01-22 12:26:25 +00:00
Nikhil Nandagopal
32bea2cc98 removed undone settings 2020-01-22 14:40:50 +05:30
Abhinav Jha
da32a51722 Fix widget styles. Increase row height. 2020-01-21 18:18:42 +05:30
Hetu Nandu
324896a660 fix published page isse 2020-01-21 13:58:21 +05:30
Abhinav Jha
861e5dd3c4 Fix widget boundaries persist issue 2020-01-21 07:14:47 +00:00
Trisha Anand
de722fff4e UpdateLayout Null Pointer Exception : In case the layouts are null or the DSL is null, it should be handled gracefully. 2020-01-21 05:57:35 +00:00
Trisha Anand
d1c104a0e6 First attempt at refactoring widget name. Not tested. Pushing because of intellij constantly crashing 2020-01-20 12:26:13 +00:00
Abhinav Jha
0c6fda4890 Merge branch 'fix/widget-grid-min' into 'release'
Remove resize restrictions

See merge request theappsmith/internal-tools-client!249
2020-01-20 09:08:57 +00:00
Abhinav Jha
2b44c712e9 New Widget drag effects 2020-01-20 09:00:37 +00:00
Abhinav Jha
7ce1c8d06a Remove resize restrictions 2020-01-20 14:10:01 +05:30
Abhinav Jha
aaf07ae583 Applications Page and Text Widget Truncation 2020-01-20 08:07:00 +00:00
Abhinav Jha
032e6bce61 Misc Fixes 2020-01-17 12:34:58 +00:00
Hetu Nandu
cc50beb0a0 Add back derived properties 2020-01-17 09:28:26 +00:00
Abhinav Jha
6329a357c7 Dropzone Snapping - Fix 2020-01-17 09:27:38 +00:00
Abhinav Jha
99d660370d Cleanup
DragLayerComponent
2020-01-16 11:46:21 +00:00
Arpit Mohan
ebfddeda94 Fixing minor bug in the invite flow which was causing the password to be hashed twice 2020-01-16 16:59:49 +05:30
Arpit Mohan
bf6a80074e Adding connection pooling to MongoDB to prevent too many connections from opening up 2020-01-16 15:07:15 +05:30
Nikhil Nandagopal
05fab4b7a1 Hotfix/table data 2020-01-16 09:34:36 +00:00
Trisha Anand
576453639f Converted Exceptions thrown to Appsmith Plugin Exception so that its handled correctly. 2020-01-15 17:59:11 +05:30
Trisha Anand
670ca4cb7e Added log for execute action 2020-01-15 09:13:27 +00:00
Abhinav Jha
536e19a568 Redirect /login to /user/login. Button widget hover style. popper now can show up on the widget cards pane. On publishing the same app opens up. Button widget card has corrected SVG. 2020-01-15 04:49:36 +00:00
Arpit Mohan
428b93683a Merge branch 'release' of gitlab.com:theappsmith/internal-tools-server into release 2020-01-14 17:14:26 +05:30
Arpit Mohan
bb8b127e2d Fixing bug again to save the reset password token in the DB.
We need to use flatMap instead of map else the Mono will not run to save the token in the passwordResetToken collection
2020-01-14 17:13:42 +05:30
Abhinav Jha
c396bab877 Input Widget Containment 2020-01-14 09:50:42 +00:00
Trisha Anand
f4a2a73abe In case of non json results, set the result body as string, otherwise parse the json and then store it as jsonNode 2020-01-14 09:48:43 +00:00
Abhinav Jha
94e0d62ec0 Fix button and text widgets. 2020-01-14 09:48:01 +00:00
Abhinav Jha
2e8f5a982f Fix - Invite Users 2020-01-14 09:47:45 +00:00
Hetu Nandu
a74045b92e Merge branch 'fix/lingering-dropdown-value' into 'release'
Fixes lingering dropdown value on api change

See merge request theappsmith/internal-tools-client!229
2020-01-14 09:32:25 +00:00
Arpit Mohan
9e6c54b343 Merge branch 'hotfix/github-login-cleanup' into 'release'
Cleaning up the Github OAuth2 login flow by adding userNameAttribute to properties

This property helps define for Spring security which field in the OAuth2 user info to read in order to determine the username of the user. This is because this field is non-standard across different OAuth2 implementations. For each new OAuth2 provider that we support, this field will be required. Else the default name field will be picked up by Spring security (which is usually the id of the user).

See merge request theappsmith/internal-tools-server!156
2020-01-14 03:10:44 +00:00
Arpit Mohan
2b0a21bbab Cleaning up the Github OAuth2 login flow by adding userNameAttribute to properties
This property helps define for Spring security which field in the OAuth2 user info to read in order to determine the username of the user. This is because this field is non-standard across different OAuth2 implementations. For each new OAuth2 provider that we support, this field will be required. Else the default name field will be picked up by Spring security (which is usually the id of the user).
2020-01-14 08:36:54 +05:30
Trisha Anand
660e47a819 Mock delete application which returns the application object which was being attempted to be deleted. 2020-01-13 13:06:42 +00:00
Trisha Anand
28e20ed3bd Move action also works successfully in removing the action from the previous page's onLoadActions while moving to another page. 2020-01-13 12:07:10 +00:00
Arpit Mohan
a542abc563 Adding quick fix for email validation check before we send an email to the user.
This is because there are OAuth2 providers who don't provide an email ID of the user. In those scenarios, we cannot send a welcome email to the user.
2020-01-13 17:35:23 +05:30
Satbir Singh
22479f786f Table resizes on widget resize. 2020-01-13 11:18:13 +00:00
Arpit Mohan
56b54e1d17 Fixing bugs in the Github login flow to check for uniqueness of user
Github auth doesn't return the email ID of the user. Hence, we need to use the `login` attribute of the user profile information.
2020-01-13 15:50:00 +05:30
Arpit Mohan
db27e7c86c Adding Github login feature. Also adding condition to limit domain access in Google OAuth2
The domain restriction has been done by adding parameter `hd` in the function CustomServerOAuth2AuthorizationRequestResolver#authorizationRequest. We still verify if the OAuth2 response has the parameter `hd` to ensure that no client side manipulation has been performed.
2020-01-13 12:13:53 +05:30
Arpit Mohan
7622d76f32 Adding the property server.use-forward headers in order for Spring security to function properly behind a Nginx load balancer
This property helps the spring security library derive the host name, protocol and port accurately even while running behind a Nginx load balancer. This is because nginx adds X-Forward-* headers that are parsed by Spring security library.
2020-01-13 10:25:43 +05:30
Arpit Mohan
f374638d98 Adding exception stack trace to the login failure scenarios for debugging. 2020-01-10 18:11:29 +05:30
Arpit Mohan
60b7c69346 Adding a check for referrer header incase we don't find the origin header in authenticationFailureHandler
This is required for OAuth2 failure handling. When the client makes an OAuth2 request, we don't receive an origin header. If the OAuth2 login fails for some reason, our failure handler will not redirect correctly unless we also check for the referer header.
2020-01-10 18:06:15 +05:30
Abhinav Jha
85a12c1b21 Merge branch 'feature/ab-test-branches' into 'release'
A/B test branches

See merge request theappsmith/internal-tools-client!235
2020-01-10 12:27:40 +00:00
Abhinav Jha
70d0c9d048 A/B test branches 2020-01-10 17:52:45 +05:30
Abhinav Jha
92b9ca664f Fix widget drag issue 2020-01-10 17:45:54 +05:30
Arpit Mohan
70e9adbef6 Correcting the redirect uri property name in the config file for custom OAuth2 redirection
This is required because when we host inside a docker container, the default host and port picked up by the code is the docker container's name & port. This will not work when Google (for example) needs to redirect back to our server after authentication is complete. Hence, we need to customize the default redirect uri for all OAuth2 endpoints.
2020-01-10 17:06:05 +05:30
Arpit Mohan
8b9d865c5a Revert "Adding logs to debug docker OAuth2 login issue"
This reverts commit e3773bdf9f1c0ee543b98a2f9ac01b07efaf1858.
2020-01-10 16:44:02 +05:30
Arpit Mohan
73a6ca13f0 Adding logs to debug docker OAuth2 login issue 2020-01-10 16:18:36 +05:30
Arpit Mohan
6f76ba99d6 Handling the case where the user tries to reset the password for a user that doesn't yet exist in the system. 2020-01-10 14:54:10 +05:30
Satbir Singh
f9b7777828 Column resize reorder and hiding columns 2020-01-09 11:39:26 +00:00
Hetu Nandu
11da2d430a fixed 2020-01-08 19:41:02 +05:30
Abhinav Jha
22b3a50e6c Merge branch 'fix/widget-boundaries' into 'release'
Widget boundaries

See merge request theappsmith/internal-tools-client!225
2020-01-08 13:46:16 +00:00
Hetu Nandu
aabc01d5e4 Merge branch 'fix/text-widget-auto-html' into 'release'
Automatically render html, links, and email links in text widget

See merge request theappsmith/internal-tools-client!228
2020-01-08 13:08:30 +00:00
Satbir Singh
7379e4ac5d Changed TableComponent from class to function 2020-01-08 12:53:26 +00:00
Hetu Nandu
a0052922dd safe html and link support 2020-01-08 18:00:16 +05:30
Trisha Anand
34b170bc5c Update layout was failing for when the mustache key was {{fetchUsers2[0].}}. When the word splitting happened, it got split into fetchUsers2, 0 and '.'. This means that when each word was finally split again, there was nothing before the '.' leading to null pointer exception. This has been fixed by adding a check for the same. 2020-01-08 16:34:28 +05:30
Hetu Nandu
b940fedaf1 Merge branch 'fix/unescape-string-before-eval' into 'release'
Unescape strings before eval

Fixes the issue where some escaped string is not being able to eval

See merge request theappsmith/internal-tools-client!227
2020-01-08 10:57:41 +00:00
Hetu Nandu
91ecf6ebac unescaping any strings 2020-01-08 16:20:49 +05:30
Hetu Nandu
b115a948af Fix url params sync issue 2020-01-08 09:19:00 +00:00
Arpit Mohan
2dced0818e Fixing the bug which prevented the reset password token from being saved in the DB
The issue was that the chain would receive a mono instead of an object. This would cause it to not persist the token in the DB. Moving to flatMap fixes this problem as we then deal with the actual object instead of the Mono.

Also fixing the url encoding in the email to ensure that the links generated are correct. By default mustache does HTML escaping and not URL encoding.
2020-01-08 14:30:45 +05:30
Abhinav Jha
3d5fa544fc When dragging/resizing a widget, the other widgets' boundaries show up. 2020-01-08 10:49:01 +05:30
Abhinav Jha
b10df26287 Resolve review comments 2020-01-08 09:41:23 +05:30
Trisha Anand
6f6dcbe4d4 Added logs which must be removed in 24 hours. 2020-01-07 20:50:10 +05:30
Abhinav Jha
00bbbd89cd Show props button is now toggle button. New widgets get selected on addition 2020-01-07 17:59:55 +05:30
Abhinav Jha
9d7eaaca80 Optimize popper creation and destructions. Preserve property pane visibility before and after actions. 2020-01-07 17:58:58 +05:30
Abhinav Jha
40d160fb78 Widget name colors and resize handle colors and edit control colors 2020-01-07 17:57:50 +05:30
Trisha Anand
4a7b1632ad Removed the creation of dependency graph during update layout. Instead simple mustache finding are done now to get pageload actions. 2020-01-07 11:34:44 +00:00
Arpit Mohan
36f6b35c09 Increasing the redis inactive session timeout to 30 days
Now when a user doesn't log into the Appsmith system for 30 days, they will get logged out.
2020-01-07 13:05:44 +05:30
Arpit Mohan
296ea7beee Filtering out the groups based on the user's current organization ID
Also refactoring the code to use the MultiValueMap for filter params which is a generic implementation and can support filtering on multiple fields of the domain object groups. This can be replicated to other domain objects as well.
2020-01-06 17:40:44 +05:30
Abhinav Jha
c6906e1781 Merge branch 'release' of gitlab.com:theappsmith/internal-tools-client into feature/fix-71 2020-01-06 16:33:42 +05:30
Abhinav Jha
3483975e0b Selected and Focused states of widgets 2020-01-06 16:32:22 +05:30
Abhinav Jha
8c66983b9b New User (Invite) API based modifications 2020-01-06 09:07:30 +00:00
Hetu Nandu
e38ac037e0 Merge branch 'fix/codemirror/responsive-height' into 'release'
Fix non responsive height for dynamic code editor

See merge request theappsmith/internal-tools-client!218
2020-01-06 06:39:22 +00:00
Hetu Nandu
efa0018d46 only set height when height is supplied 2020-01-06 12:02:10 +05:30
Satbir Singh
d007ede9de Fixing selected row issue and adding multirow select 2020-01-06 06:28:52 +00:00
Arpit Mohan
d8e9be9465 Merge branch 'feature/create-user-workspace-name' into 'release'
Ensuring that a user's personal workspace name is their first name by default.

This is because the full name makes the entire workspace name very long. If we just use the first name, it'll be a shorter string and easier to read by the end user as well.

See merge request theappsmith/internal-tools-server!142
2020-01-03 14:50:35 +00:00
Arpit Mohan
68092c19cc Ensuring that a user's personal workspace name is their first name by default.
This is because the full name makes the entire workspace name very long. If we just use the first name, it'll be a shorter string and easier to read by the end user as well.
2020-01-03 20:15:23 +05:30
Arpit Mohan
db8c88efbc Merge branch 'bug/body-replace-json' into 'release'
Action Execution should handle rest api body for mustache replacement scenario

See merge request theappsmith/internal-tools-server!141
2020-01-03 14:43:30 +00:00
Trisha Anand
934771761b Handling the json body scenario where html escaping lead to json body for rest api being incorrect. 2020-01-03 20:09:44 +05:30
Hetu Nandu
752944ee02 Various api pane and dynamic input improvements 2020-01-03 13:40:31 +00:00
Satbir Singh
6a5ec64ffa Adding client side pagination to syncfusion table. 2020-01-03 10:50:29 +00:00
Arpit Mohan
e0a03c74e5 Filtering out the groups to only query those that belong to the user's current organization 2020-01-03 15:57:31 +05:30
Arpit Mohan
b8bc4514ba Adding default flag to the group domain object so that the client can select a default permission group for the user. 2020-01-03 10:05:51 +00:00
Arpit Mohan
ca40bb842f Sending HTML template emails to users when they signup, invite another user or reset their password. 2020-01-03 09:44:17 +00:00
Abhinav Jha
6c17a6e66d Logout feature 2020-01-03 08:49:47 +00:00
Hetu Nandu
0f908de645 Feature/api cached response autocomplete 2020-01-02 13:46:36 +00:00
Trisha Anand
30b094c7a5 Curl Parsing for http. Extracts : Method, Headers, Query Params, URL (without query params). Yet to finish Body 2020-01-02 13:38:55 +00:00
Trisha Anand
cef09282eb 1. For creating the dependency graph, only APIs with HTTP method GET is used. The other actions used in the DSL are ignored.
2. Only dependencies of actions over other actions are counted. If the action is dependent on widgets, thats is not counted as a dependency and is left for the frontend to handle.
2020-01-02 13:38:40 +00:00
Hetu Nandu
3ecad24203 Fixes for Dynamic Input styling 2020-01-02 13:36:35 +00:00
Arpit Mohan
2bd871a589 Send email to new user on signup 2020-01-02 13:09:05 +00:00
Abhinav Jha
189c380e85 Property pane should open on move, add and resize 2020-01-02 18:12:02 +05:30
Arpit Mohan
99010d08dc Fixing the bug where the custom authentication failure handler wasn't being invoked
This was because we need a custom authentication entry point to override the failure handler as well.
2020-01-02 17:25:34 +05:30
Abhinav Jha
3e88ae0074 Property pane toggle scenario updates 2020-01-02 16:34:36 +05:30
Arpit Mohan
868cad2648 Modifying the logoutSuccessHandler to return success and failure JSONs instead of redirecting the client to the login page
This allows the client to invoke the logout call via a XHR request instead of a form post.
2020-01-02 16:13:19 +05:30
Satbir Singh
507b9bd386 Fixing spaces issue in dynamic binding for tabledata. 2020-01-01 07:53:03 +00:00
Arpit Mohan
08b70d0e7d Adding a logout handler to redirect the client back to the login page after the user logs out of the application. 2019-12-31 15:01:28 +05:30
Arpit Mohan
8e2fde20a5 Fixing bug where we shouldn't query the DB to find action and store cached result if it's a dry run 2019-12-31 14:14:32 +05:30
Arpit Mohan
e0f26cc5ab Updating mongo seed.js to reflect the new domain objects when a new instance of Mongo is setup via docker-compose. 2019-12-31 13:25:33 +05:30
Arpit Mohan
ff6794e931 Fixing bug where we were returning all the organizations in the db instead of just the ones that belong to the user. 2019-12-31 13:25:07 +05:30
Hetu Nandu
107e1fd6d2 Api Pane select api fix 2019-12-30 13:05:37 +00:00
Arpit Mohan
a663d8d38a Adding the redirect back to the client's index page on successful oauth2 login by the user
We use the referer header to find the client's endpoint and redirect to that endpoint once the OAuth2 login is successful. This is implemented via CustomServerOAuth2AuthorizationRequestResolver and AuthenticationSuccessHandler
2019-12-30 18:07:30 +05:30
Abhinav Jha
3d8c16fe18 Merge branch 'release' of gitlab.com:theappsmith/internal-tools-client into feature/fix-71 2019-12-30 16:35:30 +05:30
Satbir Singh
9fd99d5f48 Replacing react base table with syncfusion table. 2019-12-30 10:02:23 +00:00
Hetu Nandu
f1be938bb3 Recursive dynamic binding resolution 2019-12-30 07:39:53 +00:00
Hetu Nandu
146899934a Replace monaco-editor with Codemirror 2019-12-30 07:35:16 +00:00
Abhinav Jha
d9b8059799 Focus widget on hover. Show property pane on double click 2019-12-27 15:40:04 +05:30
Abhinav Jha
a7a83119ee Drag all widgets on touch and move 2019-12-25 14:47:37 +05:30
Arpit Mohan
8ff5c7d1fc Merge branch 'feature/401-redirect' into 'release'
Responding with 401 unauthorized http response header for all unauthenticated requests

This ensures that the client can redirect to the login page whenever it receives the http status 401 in the response header. Now, the server is no longer responsible for redirecting to the login page. All server redirects have been disabled.

See merge request theappsmith/internal-tools-server!128
2019-12-23 14:49:05 +00:00
Arpit Mohan
d32eaf11d8 Responding with 401 unauthorized http response header for all unauthenticated requests
This ensures that the client can redirect to the login page whenever it receives the http status 401 in the response header. Now, the server is no longer responsible for redirecting to the login page. All server redirects have been disabled.
2019-12-23 20:15:33 +05:30
Trisha Anand
f13356a6e2 Successful action execution results are saved in the action. 2019-12-23 20:00:46 +05:30
Abhinav Jha
3a5aae9b97 Add favicon. Connect Nav Dropdown. Fix TagInputComponent. Fetch org and user details. Navigate to applications from /, Check for login 2019-12-23 12:16:33 +00:00
Hetu Nandu
e82f5f3988 Sync path and params in api pane 2019-12-23 12:12:58 +00:00
Trisha Anand
71a8936e10 Handles http redirect upto 5 times. In case it exceeds the same, it would error out. 2019-12-23 09:12:15 +00:00
Arpit Mohan
2b9dadb582 Merge branch 'feature/user-invite' into 'release'
Adding the invite user flow to invite a new user into the organization.

This includes multiple APIs:
1. Invite user which creates an invite token for the user and then sends it to the new user via email. This token is valid for 1 hour (for now).
2. An endpoint to verify the invite token so that the client can pre-emptively show any errors or expired token messages. This endpoint is publicly accessible and doesn't require a session.
3. An endpoint for the new user to sign up and set their password by providing their invite token. This endpoint is publicly accessible and doesn't require a session.

Also extending the redis session timeout to 1 day instead of 30 mins.

See merge request theappsmith/internal-tools-server!125
2019-12-23 03:30:08 +00:00
Arpit Mohan
5081292fd8 Adding the invite user flow to invite a new user into the organization.
Also extending the redis session timeout to 1 day instead of 30 mins.
2019-12-23 08:54:12 +05:30
Arpit Mohan
b30626b274 Returning only the plugins installed by the user's current organization
This ensures that we don't return all the plugins available in the marketplace if they haven't been installed by the user.
2019-12-19 11:47:26 +00:00
Hetu Nandu
fe6df3450e Merge branch 'fix/inp-obj' into 'release'
Text validation fails with a stringified value

Closes #386

See merge request theappsmith/internal-tools-client!196
2019-12-19 10:07:19 +00:00
Hetu Nandu
1b2473c6f9 Merge branch 'release' of gitlab.com:theappsmith/internal-tools-client into release 2019-12-19 15:08:07 +05:30
Hetu Nandu
005c00a145 Revert "Selected Option is now available in dropdown widget."
This reverts commit c45198e9927dbb520ef1f3c26f9cfeddbd76995e.
2019-12-19 15:03:27 +05:30
Abhinav Jha
b612e60f49 Fix #418: Delete and Edit widget controls are functioning properly 2019-12-19 14:53:07 +05:30
Arpit Mohan
5ba754b430 Merge branch 'hotfix/forgot-password-duplicate' into 'release'
Handling duplicate email in forgotPassword flow.

Now if the user requests for the reset password token multiple times, we will override the previous token and save the new token against that user.

See merge request theappsmith/internal-tools-server!122
2019-12-19 07:41:40 +00:00
Arpit Mohan
7a8eacb44f Merge branch 'feature/forgot-password-authorization' into 'release'
Correcting the HTTP methods in SecurityConfig and acl.rego to fix bug in forgotPassword and resetPassword authorization.

See merge request theappsmith/internal-tools-server!121
2019-12-19 07:38:12 +00:00
Arpit Mohan
e129fecca7 Handling duplicate email in forgotPassword flow.
Now if the user requests for the reset password token multiple times, we will override the previous token and save the new token against that user.
2019-12-19 13:07:01 +05:30
Arpit Mohan
9caa6d42b8 Merge branch 'feature/email-disable' into 'release'
Adding a flag to determine if we should send emails for that particular environment

This is to prevent us from sending erroneous emails from our dev/test environments

See merge request theappsmith/internal-tools-server!120
2019-12-19 07:36:10 +00:00
Arpit Mohan
20ea476dc7 Correcting the HTTP methods for the public urls of forgotPassword & resetPassword 2019-12-19 13:04:13 +05:30
Arpit Mohan
f75331b116 Adding a flag to determine if we should send emails for that particular environment 2019-12-19 13:02:48 +05:30
Arpit Mohan
a1271d5746 Merge branch 'hotfix/update-page-layout-bug' into 'release'
Removing the logic to bind actions to pages when a dynamic binding happens.

This is because when an action is created, it is already bound to that page. This assumption will not change. Also, adding the pageId when searching for an action because the action name and pageId is a unique index. There may be actions with similar names across multiple pages.

See merge request theappsmith/internal-tools-server!119
2019-12-19 07:11:07 +00:00
Arpit Mohan
738b693d9a Removing the logic to bind actions to pages when a dynamic binding happens.
This is because when an action is created, it is already bound to that page. This assumption will not change. Also, adding the pageId when searching for an action because the action name and pageId is a unique index. There may be actions with similar names across multiple pages.
2019-12-19 12:35:43 +05:30
Abhinav Jha
64996d1c3e Fix #413: Adhere widget name and controls to designs 2019-12-19 12:14:31 +05:30
Satbir Singh
e0999a1795 Fixed dropdown property pane css 2019-12-18 17:05:28 +00:00
Satbir
fff86f144b Adding husky test run to prepush 2019-12-18 18:39:08 +05:30
Satbir
6c47ee15f2 Text validation fails with a stringified value 2019-12-18 18:05:06 +05:30
Satbir Singh
01cdbbcabc Selected Option is now available in dropdown widget. 2019-12-18 11:59:12 +00:00
Satbir Singh
94dcf6d2af Resize works on dropdowns. 2019-12-18 07:23:28 +00:00
Satbir
b6e7a5758a Adding moment to js execution 2019-12-17 18:07:12 +05:30
Arpit Mohan
a54e8b1559 Fixing bug where the public URLs need to be defined in SecurityConfig as well 2019-12-17 12:05:52 +05:30
Arpit Mohan
bcba9d3415 Creating a list of public endpoints that anonymous users can access.
OPA controls access to all endpoints and the list of authenticated resources and public URLs is defined in a single place in that file.

The url_allow function in acl.rego is an overloaded function that replicates the OR condition in Rego. Either the user is authenticated and has permissions to access those resources, or the URL is public and accessible by any user.
2019-12-17 09:28:59 +05:30
Arpit Mohan
3760849aa6 Removing basic auth from our securityConfig 2019-12-16 14:32:27 +05:30
Abhinav Jha
ed2ecadbc4 User Auth Flow 2019-12-16 08:49:10 +00:00
Arpit Mohan
82a6d96b1a Upgrading to Spring boot 2.2.2 for features in Spring security
Now, we have an authenticationSuccessHandler & authenticationFailureHandler for OAuth & Form sign ups. This makes the whole flow much easier to handle.
2019-12-16 10:53:17 +05:30
Arpit Mohan
274a686e51 Modifying the form submit error handler to redirect the browser to login error page.
This is because the client cannot handle a JSON response for form submit requests. They can only be handled in Ajax requests.
2019-12-12 18:22:18 +05:30
Arpit Mohan
69e73ad240 Disabling the GET for the login page to ensure that the server login page is not loaded 2019-12-12 16:07:57 +05:30
Arpit Mohan
eb825f37e9 Adding endpoint to fetch current user's profile.
Also redirecting the browser to this user profile endpoint on username password login success. This ensures that the client fetches the profile along with setting the session ID cookie in the browser
2019-12-12 15:25:09 +05:30
Arpit Mohan
af96c11d3e On username + pwd auth success, we redirect the browser to the client's index page via the origin header. 2019-12-12 09:46:38 +00:00
Satbir Singh
ab0007317e Added cypress for e2e tests. 2019-12-12 07:50:53 +00:00
Trisha Anand
d8fc726f79 Merge branch 'feature/user-login-redirect' into 'release'
Sending custom JSON in form login success and failure scenarios

See merge request theappsmith/internal-tools-server!111
2019-12-12 07:32:20 +00:00
Arpit Mohan
c12f90ca1e Sending custom JSON in form login success and failure scenarios
This involves overriding the default success and failure handlers for login in the SecurityConfig class. The handlers are defined in the filters package.
2019-12-12 12:57:23 +05:30
Trisha Anand
9c62029ff0 Removed unbinding of actions from the page if not present in the DSL. 2019-12-12 12:30:50 +05:30
Hetu Nandu
dd03093834 Execute page load actions when loading page 2019-12-11 15:24:27 +00:00
Hetu Nandu
37a96358f4 Separate loading states per action 2019-12-11 15:14:38 +00:00
Arpit Mohan
ec478e5c2a Reverting previous commit with @EnableMongoAuditing because that is causing APIs to return empty data in the API 2019-12-11 17:15:16 +05:30
Arpit Mohan
6f39d39523 Moving the annotation @EnableMongoAuditing to the CommonConfig class because it wasn't being acknowledged by Spring
This now ensures that Spring JPA inserts the createdAt and updatedAt timestamps to the MongoDB along with the document itself.
2019-12-11 16:21:14 +05:30
Hetu Nandu
d1ee106faa style fixes 2019-12-11 16:05:07 +05:30
Trisha Anand
2a47a442be Removes pageId from actions no longer in DSL and adds pageIds for actions in DSL in actions collection 2019-12-11 10:29:12 +00:00
Arpit Mohan
614b1b3f0d Creating default groups for the user's personal organization when the new user signs up
The default groups for an organization are created by copying over data from the groups collection with the organizationId 'default-org'. This ensures that we can update the permissions in the DB and add new permissions without any code changes. The new user is then assigned to these groups so that they have all the permissions required to administer the organization.

Also adding a display name for the groups so that the UI can show a different name than the one used internally within the DB to represent the group.
2019-12-11 10:20:28 +00:00
Hetu Nandu
d5e08b5836 Validation Error Message display 2019-12-10 13:30:16 +00:00
Trisha Anand
7a3cfe2c52 Create user now also leads to creation of personal organization for the user. It also gets assigned as the default (current) workspace (or currentOrganizationId) 2019-12-10 10:58:34 +00:00
Trisha Anand
66b28e8dec LayoutOnLoadActions are now being copied to the published version. Now viewing the published page would give all three published datastructures : DSL, Layout Actions, and Layout Load Actions 2019-12-10 07:25:08 +00:00
Abhinav Jha
34e20f3d1a Integrate SideNav with react router for faster switching of item 2019-12-09 11:31:09 +00:00
Arpit Mohan
fe82366ace Fixing compilation issue 2019-12-08 21:20:58 +05:30
Arpit Mohan
fdba2f62ef Adding email sending capability when the user resets their password 2019-12-08 15:46:17 +00:00
Trisha Anand
046751b1ba Working version where the top feeding nodes have been discovered in the tree. These would be page load actions. 2019-12-08 13:41:15 +00:00
Hetu Nandu
f45d2b9135 Data Tree Autocomplete 2019-12-06 13:16:08 +00:00
Trisha Anand
23dbd4c78a Create/Update user used password encoder to encode the user password before storing it in the database 2019-12-06 12:15:28 +00:00
Trisha Anand
3137b54f12 Adding query params to get actions API call 2019-12-06 09:48:31 +00:00
Trisha Anand
b16909de61 JS functions can now be stored to an action. 2019-12-05 09:19:45 +00:00
Abhinav Jha
b24dcd8467 Storybooks integration 2019-12-05 03:16:00 +00:00
Abhinav Jha
aa18f31e07 Re-enable realm 2019-12-03 15:33:05 +05:30
Abhinav Jha
0dbb546e8f Code Splitting 2019-12-03 09:21:06 +00:00
Satbir
f9d1067181 Fixing action execution error caused from js exec. 2019-12-03 13:03:14 +05:30
Satbir Singh
33b2db0349 All widgets loading. 2019-12-03 04:41:10 +00:00
Satbir
a886c63c9c Merge branch 'release' of gitlab.com:theappsmith/internal-tools-client into feature/js-executor 2019-12-03 09:58:49 +05:30
Satbir
a6e25ef3ba TableAction moved to ActionConstants. 2019-12-03 09:58:14 +05:30
Satbir
1f267954ef Tests for dynamic binding parse. 2019-12-02 15:21:18 +05:30
Satbir
915da9c660 Renaming extract to evalute. 2019-12-02 15:20:25 +05:30
Abhinav Jha
654d63e484 Editor header - Breadcrumbs routing 2019-12-02 08:53:38 +00:00
Satbir
7d4e565c7b Removed error string as a return value of evalute 2019-12-02 13:46:56 +05:30
Satbir
431d127a74 Renaming data binding regex. 2019-12-02 13:07:33 +05:30
Satbir
8cbdd84857 Renaming extractDynamicBoundValue to evaluate. 2019-12-02 13:06:20 +05:30
Satbir
2ac28cde5b Merge branch 'release' of gitlab.com:theappsmith/internal-tools-client into feature/js-executor 2019-12-02 09:09:36 +05:30
Satbir
0324e6a745 Fixing tests. 2019-12-02 09:08:11 +05:30
Arpit Mohan
c5ce086ace Merge branch 'feature/release-base-uri' into 'release'
Checking if the name of the user is not null. Only then inserting it that field into analytics service.

See merge request theappsmith/internal-tools-server!97
2019-11-29 13:29:11 +00:00
Arpit Mohan
d8ef880a5c Checking if the name of the user is not null. Only then inserting it that field into analytics service. 2019-11-29 18:55:07 +05:30
Arpit Mohan
11c60e8103 Merge branch 'feature/release-base-uri' into 'release'
Modifying the base uri for oauth2 for release environment

Setting the release uri to `https://release-api.appsmith.com` This ensures that it's all under the appsmith domain.

See merge request theappsmith/internal-tools-server!96
2019-11-29 09:16:27 +00:00
Arpit Mohan
ba9c2f0831 Modifying the base uri for oauth2 for release environment 2019-11-29 14:42:16 +05:30
Arpit Mohan
2b959f3af4 Renaming executorClass to packageName and adding uiComponent field to plugin object
This will allow the frontend to be able to dynamically load the component based on the configuration provided in the plugin object.
2019-11-29 13:43:13 +05:30
Trisha Anand
de2bd38e9d Dsl actions now store not just the ids but also the name, plugin type and json path keys. 2019-11-29 07:16:16 +00:00
Hetu Nandu
6cea0e80ad Add support for plugin name based filtering 2019-11-29 05:22:49 +00:00
Arpit Mohan
473bba594a Updating redis properties for heroku environment 2019-11-28 19:01:56 +05:30
Hetu Nandu
08ad87fb05 Renamed styleName prop to accent 2019-11-28 07:08:39 +00:00
Satbir
6e0155664e Removing performance.now and trace. 2019-11-28 09:29:15 +05:30
Satbir
48fa52d9ba Adding JS execution functionality. 2019-11-28 09:26:44 +05:30
Arpit Mohan
8a442d429c Dummy commit to trigger Heroku deployment 2019-11-27 16:37:03 +05:30
Arpit Mohan
fdb2f7a25d Adding query parameters to filter get API calls. Specifically adding filter by plugin type in the get plugins API. 2019-11-27 10:51:43 +00:00
Arpit Mohan
dea2efa776 Merge branch 'feature/oauth2-custom-url' into 'release'
Adding the base uri for google oauth2 redirect uri

This is required because when we host the server in a docker container, by default the baseUri picked up by Spring security is the DNS name of the appsmith server inside the docker networking bridge. These names may not be valid DNS names that Google can redirect to in the event of a successful Oauth2 login. Hence, we are overriding the base uri with our own uri for each environment.

The customer will have to provide this uri when they host it on their internal networks. This uri must be publicly accessible for Oauth2 to work.

See merge request theappsmith/internal-tools-server!90
2019-11-27 08:34:57 +00:00
Arpit Mohan
92ad45091d Adding the base uri for google oauth2 redirect uri
This is required because when we host the server in a docker container, by default the baseUri picked up by Spring security is the DNS name of the appsmith server inside the docker networking bridge. These names may not be valid DNS names that Google can redirect to in the event of a successful Oauth2 login. Hence, we are overriding the base uri with our own uri for each environment.

The customer will have to provide this uri when they host it on their internal networks. This uri must be publicly accessible for Oauth2 to work.
2019-11-27 13:57:01 +05:30
Trisha Anand
b0452b74c6 Datasources are now returned only for the organization of the current user. 2019-11-27 08:22:29 +00:00
Trisha Anand
606c09067e Fixes the test cases : create for PageService and ApplicationService is no longer used. Instead ApplicationPageService provides createPage and createApplication for the same. Updated the test cases to use the correct service to do this. 2019-11-27 08:17:46 +00:00
Arpit Mohan
e492bf2622 Fixing stupid bug in action execution timeout. Applying only on the action execution instead of the whole execute function 2019-11-27 02:10:01 +05:30
Arpit Mohan
ca4ff6a28b Fixing action execution timeout bug which was defaulting the execution timeout to 0 instead of 10.
Now if we provide a null / negative value to action execution timeout, it'll default to 10s
2019-11-26 18:19:12 +05:30
Trisha Anand
7e6e19e14e PageController : Find pages by application name instead of application id. This first fetches the application from name and then fetches pages using the application id. 2019-11-26 12:21:20 +00:00
Trisha Anand
0fd6351a76 Added timeout on the plugin execution.
Next TODO : Make the timeout duration configurable
2019-11-26 11:34:27 +00:00
Abhinav Jha
5051bd74b8 Fix published dialog not opening issue. Add try catch around Canvas 2019-11-26 10:45:46 +00:00
Abhinav Jha
144ea65ca3 Update API Environment URLs based on environment variables 2019-11-25 12:22:05 +00:00
Hetu Nandu
1825fd7a19 Drafts in API Pane 2019-11-25 09:15:11 +00:00
Hetu Nandu
fbb7742f0e moved to absolute paths for all fiels 2019-11-25 10:37:27 +05:30
Hetu Nandu
59b31c0201 fix wrong id read 2019-11-22 22:34:40 +05:30
Abhinav Jha
d64bbc4015 Use applicationId and pageId to render pages 2019-11-22 14:02:55 +00:00
Hetu Nandu
a2b275bade Validation parse widget property 2019-11-22 13:12:39 +00:00
Arpit Mohan
00a2f8aac9 Merge branch 'feature/appsmith-production-staging-distinction' into 'release'
Adding the netlify.toml for deploy contexts for different environment...

See merge request theappsmith/internal-tools-client!159
2019-11-22 12:44:30 +00:00
Abhinav Jha
f9e9f0fe55 Configs API Update 2019-11-22 12:15:33 +00:00
Arpit Mohan
a05209aa69 Adding the netlify.toml for deploy contexts for different environment variables for different branches 2019-11-22 16:36:41 +05:30
Abhinav Jha
2fa79e403d Applications Page Styling 2019-11-21 10:52:49 +00:00
Arpit Mohan
2e31a74cd9 Converting the docker conatiners to appsmith organization 2019-11-21 13:20:15 +05:30
Trisha Anand
4c0aa5956e Converted list to set to ensure unique action ids in the list of actions per dsl 2019-11-21 07:44:20 +00:00
Trisha Anand
781788f4a3 Extracting mustache keys from layout and finding all the action names from the same. This is then stored to the layout 2019-11-21 07:30:07 +00:00
Hetu Nandu
7beb7fa40c Fixes for dry run 2019-11-20 10:57:05 +00:00
Satbir Singh
92e8b2b814 Pushing missed changes from MR review supposed to go along with widget loading. 2019-11-20 08:17:23 +00:00
Satbir Singh
2fa2ed72cc Widget loading state. 2019-11-20 08:10:01 +00:00
Hetu Nandu
a6f7882d5f Revamp widget property validation 2019-11-19 12:44:58 +00:00
Trisha Anand
9a4fea1c56 Updates for getting the test cases for Organization service to run. Since unique name is a new constraint added, the old test cases didnt account for the same. 2019-11-19 09:02:14 +00:00
Trisha Anand
44e17eef7b Added fields : flag isValid & string array of invalids to track if an action/datasource is invalid and what are the invalidities. This allows for the creation of actions and datasources even if they are invalid. Each update to the object leads to new computation of the validity.
When executing the isValid flag is tested and if false, the execution is stopped.
2019-11-18 12:20:10 +00:00
Arpit Mohan
c5445533f3 Merge branch 'master' into 'release'
Merging master into release to sync up the branches

See merge request theappsmith/internal-tools-server!78
2019-11-18 08:46:59 +00:00
Nikhil Nandagopal
e08ea36181 minor fixes 2019-11-14 17:06:32 +00:00
Hetu Nandu
b5f8cff7df Validation hot fix 2019-11-14 14:26:23 +00:00
Hetu Nandu
b7871d3433 Header Params has initial two fields 2019-11-14 13:35:39 +00:00
Hetu Nandu
3193543c1c Fixes before demo 2019-11-14 13:13:35 +00:00
Arpit Mohan
8fbf61502f Creating dockerfile that creates the server image.
Also modifying .gitlab-ci file to push docker image to the registry
2019-11-14 12:50:37 +00:00
Hetu Nandu
9ebcc370b7 Fix table widget render issue 2019-11-14 12:16:11 +00:00
Abhinav Jha
eb07e7ad9f Fix: Dynamic binding update on updateWidgetProperty 2019-11-14 11:17:36 +00:00
Satbir Singh
55167f89d7 Selected row data is now updated on tableData change 2019-11-14 11:05:45 +00:00
Hetu Nandu
750d69a6c6 Property validations 2019-11-14 09:28:51 +00:00
Hetu Nandu
fadb2cae6b Api Sidebar and Api dropdown fixes 2019-11-14 09:01:23 +00:00
Trisha Anand
31cf94f08e 1. Added datasource validator function in the plugin interface which simply returns true for all the current plugins.
2. Added static method getPluginExecutor as a util function which removes duplicate code from across different files.
2019-11-14 08:50:02 +00:00
Satbir Singh
ff80a4b267 Action can be unset. Actions are validated before executing. 2019-11-14 07:42:24 +00:00
Arpit Mohan
f62cd1f21a Endpoint to view published page using just PageId. The layoutId is no longer required. 2019-11-14 07:06:34 +00:00
Trisha Anand
0d21680f08 Action only with name now supported 2019-11-13 12:26:12 +00:00
Arpit Mohan
f4daa33493 Adding CRUD API for configurations. The name for the config will be unique across the dataset. 2019-11-13 12:17:32 +00:00
Hetu Nandu
884984bea0 UI fixes 2019-11-13 11:34:11 +00:00
Satbir Singh
5653b046df Adding delete radio option button and fixing ordering issues. 2019-11-13 10:35:35 +00:00
Trisha Anand
f81e22b1a5 Adding the capability to associate a user with multiple organizations 2019-11-13 10:23:23 +00:00
Hetu Nandu
8c8312928a Fix various api pane bugs 2019-11-13 07:34:59 +00:00
Abhinav Jha
03e78f0751 WIP: Allow absolute paths for imports. Refactor ContainerComponent.tsx to PositionedContainer.tsx, CanvasWidgetContainer.tsx, ContainerComponent.tsx. Refactor all widgets and components to adhere to new props and apis. 2019-11-13 07:00:25 +00:00
Trisha Anand
55a29c448c Datasource without any configuration is not valid. Deter the user from creating one in such a scenario 2019-11-13 06:08:36 +00:00
Trisha Anand
df904539ca Datasource instead of DatasourceId is expected as part of Action. During create and update action, datasource can also be created, which is automatically saved as part of datasource collection 2019-11-13 05:51:01 +00:00
Hetu Nandu
581a32420b hotfix datasource null field issue 2019-11-13 05:03:38 +00:00
Nikhil Nandagopal
73ca13b20e fixed default image 2019-11-12 11:58:42 +00:00
Trisha Anand
41be720335 Get all actions returns them in sorted order 2019-11-12 09:59:29 +00:00
Trisha Anand
cb4493dc2d Datasource instead of DatasourceId is expected as part of Action. During create and update action, datasource can also be created, which is automatically saved as part of datasource collection 2019-11-12 09:58:14 +00:00
Satbir Singh
dbbb469dcd Fixing breaking code in error and success action select. 2019-11-12 09:50:40 +00:00
Hetu Nandu
c9914c4246 Api Dry Run 2019-11-12 09:43:13 +00:00
Trisha Anand
e6d9f1df88 Datasource instead of DatasourceId is expected as part of Action. During create and update action, datasource can also be created, which is automatically saved as part of datasource collection 2019-11-12 09:15:09 +00:00
Nikhil Nandagopal
3dd7713aac minor fix 2019-11-12 14:22:13 +05:30
Nikhil Nandagopal
793ab07eed Merge branch 'master' into release
# Conflicts:
#	src/sagas/ActionSagas.ts
#	src/widgets/TableWidget.tsx
2019-11-12 14:09:37 +05:30
Nikhil Nandagopal
62ecb0f00f Merge branch 'release' of gitlab.com:theappsmith/internal-tools-client into release 2019-11-12 14:04:13 +05:30
Nikhil Nandagopal
3881fe699c Feature/date picker 2019-11-12 07:57:12 +00:00
Nikhil Nandagopal
2cc0e13006 Merge branch 'release' of gitlab.com:theappsmith/internal-tools-client into release 2019-11-12 12:06:46 +05:30
Satbir Singh
20e829dceb Selected row data has been moved from selectedRow.data to selectedRow 2019-11-12 06:03:46 +00:00
Satbir Singh
93c1b790d0 Added functionality to execute actions on successful call or on error of an action. 2019-11-12 05:22:32 +00:00
Nikhil Nandagopal
1f40d135f3 Release 2019-11-11 11:42:52 +00:00
Nikhil Nandagopal
f0a57e8aab Master 2019-11-11 11:34:42 +00:00
Nikhil Nandagopal
be25ac3208 Merge branches 'master', 'release' and 'release' of gitlab.com:theappsmith/internal-tools-client into release 2019-11-11 17:01:25 +05:30
Hetu Nandu
f222c34b07 View Dynamic bindings 2019-11-08 11:02:00 +00:00
Satbir Singh
e06b7f5a2c Row select action call 2019-11-07 11:17:53 +00:00
Hetu Nandu
7013449b90 fix merge issues 2019-11-07 16:03:04 +05:30
Hetu Nandu
dc18277abc Merge branch 'release' 2019-11-07 15:45:33 +05:30
Hetu Nandu
7687d68b61 Rename "resources" to "datasources" 2019-11-07 09:32:38 +00:00
Arpit Mohan
aac31235f6 Merge branch 'master' of gitlab.com:theappsmith/internal-tools-server
# Conflicts:
#	appsmith-plugins/restApiPlugin/src/main/java/com/external/plugins/RestApiPlugin.java
#	appsmith-server/src/main/java/com/appsmith/server/services/ResourceContextServiceImpl.java
2019-11-07 14:28:09 +05:30
Abhinav Jha
9ba528830d Feature - Applications Scaffold Page - Create Application 2019-11-07 04:59:40 +00:00
Trisha Anand
63c0f07708 Query param handling has been added to Rest API plugin using URIComponentsBuilder 2019-11-06 12:30:56 +00:00
Nikhil Nandagopal
a031606fa1 Feature/date picker 2019-11-06 12:12:41 +00:00
Arpit Mohan
bcda3f0feb Renaming all the references of resource to datasource
This renaming is reflective of the entity and it's potential values in the future.
2019-11-06 16:25:08 +05:30
Hetu Nandu
895649d77f Dynamic Property in Editor mode 2019-11-06 06:35:15 +00:00
Abhinav Jha
ab8270536e AppViewer - Routing updates the page 2019-11-06 06:21:56 +00:00
Arpit Mohan
a61b9ab325 Handling null values in the request body 2019-11-05 12:25:08 +00:00
Satbir Singh
cb478e8d1c Adding action selector control. 2019-11-05 12:08:41 +00:00
Trisha Anand
3c1b08d911 Page Controller now can return list of pages by application id and list of page names & ids by application id 2019-11-05 11:49:52 +00:00
Trisha Anand
3f968afac6 Page Controller now can return list of pages by application id and list of page names & ids by application id 2019-11-05 11:36:10 +00:00
Arpit Mohan
0c0956ca46 Adding ACL bundle for datasources API 2019-11-05 16:36:09 +05:30
Hetu Nandu
48901e0f2e fix body as string 2019-11-05 16:20:58 +05:30
Arpit Mohan
3622d8b0d3 Converting actionConfiguration to a string to extract mustache keys
Also making jsonPathKeys a read-only field. Cannot be written via the API.
2019-11-05 10:40:09 +00:00
Trisha Anand
00fa2e80f7 Added ActionCollectionService which would act on composite functions. Need to handle all scenarios here. 2019-11-05 09:39:54 +00:00
Trisha Anand
bd846bfc8d Fix for dsl getting rewritten 2019-11-05 07:37:39 +00:00
Trisha Anand
68e30ff297 Handles empty params in a request 2019-11-05 05:51:14 +00:00
Nikhil Nandagopal
3e9f278b95 Release 2019-11-05 05:09:50 +00:00
Nikhil Nandagopal
735fbbcbd7 Feature/file date picker 2019-11-04 14:22:50 +00:00
Trisha Anand
daeba007a1 Bug/rest api 2019-11-04 11:20:18 +00:00
Nikhil Nandagopal
11e8c456a5 refactored folder structure 2019-11-04 10:57:19 +00:00
Satbir Singh
04b29272f4 Table data array input now uses code editor. 2019-11-04 08:31:08 +00:00
Arpit Mohan
023ef93969 Fixing Heroku credentials again. Need to find permanent solution to this. 2019-11-01 08:52:20 +01:00
Hetu Nandu
e380c489fb Dynamic binding scaffold 2019-11-01 07:11:32 +00:00
Abhinav Jha
79bcd06141 Feature- AppViewer SideNav Styling 2019-11-01 05:28:56 +00:00
Nikhil Nandagopal
f1804ebc47 Feature/image 2019-10-31 11:26:37 +00:00
Satbir Singh
f225266edb Table will construct columns based on all data 2019-10-31 11:13:59 +00:00
Satbir Singh
f5cf26f23f Adding table widget. 2019-10-31 10:10:57 +00:00
Satbir Singh
7f7221ee9a Passing height and language as props to CodeEditor 2019-10-31 10:00:47 +00:00
Nikhil Nandagopal
d3179745d4 Merge branch 'release' into feature/checkbox-radio
# Conflicts:
#	src/propertyControls/StyledControls.tsx
2019-10-31 14:50:03 +05:30
Nikhil Nandagopal
e3e27e3754 Added wiring for checkbox & radio button properties 2019-10-31 14:34:19 +05:30
Abhinav Jha
ffb9b89620 WIP: Page Creation, Page Switching, Published Application Viewer, DropdownComponent
- Fixes #22, #151, #166, #167, #168, #169
2019-10-31 08:36:04 +00:00
Nikhil Nandagopal
9d659ddff0 Feature/dropdown 2019-10-31 05:28:11 +00:00
Nikhil Nandagopal
72a02bd3d4 Feature/components 2019-10-30 10:23:20 +00:00
Hetu Nandu
4c5850499d Few more api pane fixes
Fixes: #165 #164 #163 #162 #161 #160 #157 #133 #119 #118 #115 #114
2019-10-29 12:02:58 +00:00
Satbir
1be614ce6e Resize dot added to top and left edges 2019-10-29 15:33:04 +05:30
Satbir Singh
11708c3c09 getBorderCSSShorthand uses lodash for looping the object. 2019-10-29 07:11:36 +00:00
Satbir Singh
6d4bdaca20 Reducing resize handle hover area width. 2019-10-28 13:20:33 +00:00
Arpit Mohan
00cd806259 Changing the Redis credentials because Heroku changed them again 2019-10-28 13:15:02 +01:00
Abhinav Jha
64253f0560 Update README.md 2019-10-28 06:09:56 +00:00
Nikhil Nandagopal
d40a347dae Merge branch 'feature/preview-publish' into 'release'
Preview Publish Part I + Canvas Fixes

See merge request theappsmith/internal-tools-client!78
2019-10-25 09:53:10 +00:00
Hetu Nandu
a0b536eced Fixes for the API Editor #109 #112 #111 #116 2019-10-25 05:35:20 +00:00
Abhinav Jha
0564125fd7 PREVIEW PUBLISH 1
- Fixes #135, #96, #147, #149, #110, #138, #94, #150
2019-10-24 18:31:31 +05:30
Abhinav Jha
7476bb4936 WIP: Fixes #135, #96, #147, #149, #110, #138 2019-10-24 17:17:35 +05:30
Arpit Mohan
d17927e1f8 Reducing data response for application publish API
Instead of sending complete application information, we now only send the boolean true or false value to indicate to the client the success or failure of the publish action
2019-10-24 15:41:38 +05:30
Abhinav Jha
78513b0298 WIP: Trigger Preview and Publish Api 2019-10-24 14:53:50 +05:30
Arpit Mohan
2bd8113229 Moving JsonPathKeys from Page document object to Action
This is to ensure that the Action object is independent by itself and the client can derive the mustache keys by looking at the action object directly.
2019-10-24 12:38:52 +05:30
Abhinav Jha
4f38d28bd5 WIP: Preview page and Publish Application
- Integrate with Publish Application API
- Integrate with Fetch published page API
2019-10-24 12:33:59 +05:30
Abhinav Jha
99ce65c756 Property Pane Controls
- Fixes #121, #122, #123, #124, #90, #46, #65, #100, #101, #68, #102
2019-10-24 05:24:45 +00:00
Hetu Nandu
5e75812c08 use caps 2019-10-23 12:37:14 +05:30
Arpit Mohan
314cdd29d9 Handling error in RedisListenerConfig
When we shut down the server, the redis subscription is not closed cleanly leading to the server to hang. Adding an error handler solves for this issue.
2019-10-23 05:20:44 +00:00
Trisha Anand
d178b1c729 Publishing an application has been implemented by introducting publishedDsl field inside Layout. On Publish, for all pages in the application, for all layouts inside each page, the dsl json object is copied into the publishedDsl json object. 2019-10-23 04:41:51 +00:00
Hetu Nandu
8312c48f83 Populate resources in the API Pane (#106) 2019-10-22 14:59:58 +00:00
Hetu Nandu
1c0854ac02 Fix key value field (#105) 2019-10-22 14:54:23 +00:00
Hetu Nandu
e0348cc1f3 API form 2019-10-21 15:12:45 +00:00
Trisha Anand
f8dddb212f Action Service - Delete 2019-10-21 14:01:21 +00:00
Trisha Anand
8ac0203b83 Fixing stupid bug in the acl rego file 2019-10-21 18:39:41 +05:30
Abhinav Jha
b950ede2b1 Use re-select and re-re-select. Fetch property pane configs from appsmith API. Refactor code to use reselect and re-reselect 2019-10-21 11:40:24 +00:00
Arpit Mohan
6eb7311197 Adding the permissions for fetching and updating applications & groups.
Also adding permission for deleting actions
2019-10-21 12:57:36 +05:30
Arpit Mohan
fc1a275670 Merge branch 'master' into hotfix/java-oom-fix 2019-10-21 12:25:05 +05:30
Arpit Mohan
5c1ef9f98a Adding the JVM parameter to ensure that java stays within the memory limits set by the container 2019-10-21 12:23:00 +05:30
Trisha Anand
74a8466528 Analytics Service now caters to all the events that need to be published. Every service should now call the analytics service's sendEvent function for tracking events. 2019-10-18 13:45:18 +00:00
Trisha Anand
84837fe57f Mongo Plugin works here. Barring the scenarios where the query json contains special characters in keys ($, .) it works properly. 2019-10-18 08:27:19 +00:00
Hetu Nandu
7d56e10f8f Add Navbar and API Pane (#79) 2019-10-18 08:16:26 +00:00
Arpit Mohan
0473e3d48e Removing Heroku API key from gitlab-ci file 2019-10-17 12:44:37 +05:30
Arpit Mohan
db749a2b3f Modifying the default homepage and removing React favicon 2019-10-17 12:32:56 +05:30
Arpit Mohan
04a8467095 Fixing the docker credentials in maven so that we don't require the docker daemon for CI/CD 2019-10-17 11:55:55 +05:30
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