Commit graph

117 commits

Author SHA1 Message Date
Clemente Raposo
b1e7cc8a75 Initialize extensions.yaml 2021-03-30 19:22:45 +01:00
Clemente Raposo
c54afca265 Add extensions to system configs
- Add extension entry to configs
- Expose extensions list config on the api
- Allow extensions to be configured in extension folder
2021-03-30 19:22:45 +01:00
Jack Anderson
e1431f94cc Update Config Copyright 2021-03-30 19:22:42 +01:00
Dillon-Brown
3364236f6b Add App\Module to core_services
Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
2021-03-30 19:22:42 +01:00
Dillon-Brown
931073be51 Move Services
Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
2021-03-30 19:22:42 +01:00
Dillon-Brown
ca2a8b413d Move Repositories
Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
2021-03-30 19:22:42 +01:00
Dillon-Brown
02c5316f3f Move routing EventListeners and Subscribers
Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
2021-03-30 19:22:42 +01:00
Dillon-Brown
0774f73684 Move controllers
Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
2021-03-30 19:22:41 +01:00
Dillon-Brown
3aed1df849 Move all entities to component folders
Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
2021-03-30 19:22:41 +01:00
Dillon-Brown
7044598f34 Move all legacy handlers to backend
Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
2021-03-30 19:22:41 +01:00
Dillon-Brown
1cab43c7d3 Rename src to backend
Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
2021-03-30 19:22:41 +01:00
p.kumar
328554d534 Restrict user access to delete and merge actions in listview and recordview 2021-03-30 19:22:41 +01:00
Clemente Raposo
e68aae65c7 Add create view
- Add create view component and store
-- Extend record view store

- Add create view router configuration

- Add create save action
-- Allow re-redirecting after save
- Add create cancel action

- Add support to pre-fill create view with values
- Add default user to create view

- Update record view to
-- Allow disabling subpanels
-- Allow redirect query params
-- Allow setting initial view mode
-- Add support for create mode

- Add support for create mode in fields
-- defaults to edit mode
2021-03-30 19:22:40 +01:00
Dillon-Brown
a8e3dbf784 Update core service declarations
Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
2021-03-30 19:22:40 +01:00
Clemente Raposo
4e78b1b8a6 Add convert lead action
- Add record action handler
- Add action configuration
- Add unit test
2021-03-30 19:22:40 +01:00
Clemente Raposo
4d7f833d1a Add subpanel button mappers
- Add subpanel button mappers as view definition mapper
- Add support for adding subpanel top button mappers
2021-03-30 19:22:40 +01:00
Dillon-Brown
3819445574 Symfony 5 Upgrade
- Bump min PHP reqs for symfony/security-bundle
- Rework session switching
- Fix deprecated logout listener

Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
2021-03-30 19:22:40 +01:00
p.kumar
c880dd0836 fullName group field - hide Salutation label in edit mode 2021-03-30 19:22:39 +01:00
Clemente Raposo
e8f9b18418 Move api documentation to /docs
- Enable swagger docs
- Disable re-doc
- Move rest docs path to /docs/rest
- Move graphql docs path to /docs/graphql
2021-03-30 19:22:39 +01:00
Dillon-Brown
bcd937fc62 Move extension services into separate yaml file
Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
2021-03-30 19:22:39 +01:00
Dillon-Brown
2bee83c82c Add extensions to services definition
Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
2021-03-30 19:22:39 +01:00
p.kumar
ec644a97eb Group Field Configuration changed to consider Person Name as Group Field 2021-03-30 19:22:39 +01:00
Dillon-Brown
dbabb16009 Update composer autoloading for extensions
Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
2021-03-30 19:22:39 +01:00
Dillon-Brown
4603a6afbe Add extensions as a service resource
Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
2021-03-30 19:22:38 +01:00
Dillon-Brown
7410ade3a9 Move core services to be imported
Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
2021-03-30 19:22:38 +01:00
Clemente Raposo
97da21c1fa Add grouped field definition handling
- Add field definition mappers
-- Allows to add mapper classes that map the resulting definition
-- Declare mappers in services definition
- Add support for defining grouped fields
-- Add grouped field definition mapper
- Map legacy style group fields to new format
-- Add legacy grouped field mapper
- Add View definition mappers
- Add default configuration for group field preset types
-- Configure address default config
--- Set default layout
--- Set default display
--- Set default labels
- Map Group field types like address
-- apply default values

- Add codeception unit tests
2021-03-30 19:22:37 +01:00
Dillon-Brown
e9efb1d6af Remove default_index_method from tagged services
Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
2021-03-30 19:22:37 +01:00
Dillon-Brown
9881af09e2 Update assets base path
Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
2021-03-30 19:22:37 +01:00
Dillon-Brown
e14c076981 Restructure project index to public dir
Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
2021-03-30 19:22:36 +01:00
Clemente Raposo
690162a2ce Add modal button group component
Component is meant to by used by the modals that have buttons
Allows to implement a dynamic way to declare modal buttons.
Each button onClick call back receives the activeModal.
Allowing to close or dismiss the modal on the onClick callback

- Re-use scrm-button-group
- Extend button group and button interfaces
-- Override the onClick handler to receiving the active modal
-- Inject the active modal to the button callbacks
- Allow for a configurable breakpoint using the config:
-- ui.modal_buttons_collapse_breakpoint
- Add karma/jasmine tests
2021-03-30 19:22:36 +01:00
Jack Anderson
e9b9819e7d Accounts Chart Implementation 2021-03-30 19:22:36 +01:00
Clemente Raposo
af186a7013 Add RecordList FilterMappers
- Refactor LegacyFilterMapper to allow adding mappers per type
- Add date and date time mappers to convert to proper format
-- Api should receive fields in internal format
-- Legacy search expects user format
-- Convert to user format when calling legacy search

- Add multienum to correctly process criteria
-- Api search criteria receive an array of values
-- For other fields legacy expects just one value not an array
-- For multienum legacy expects an array of values
-- Add mapper to send array of values to legacy for multienums
2021-03-30 19:22:35 +01:00
j.anderson
004247656f Opportunities Chart Implementation 2021-03-30 19:22:35 +01:00
Clemente Raposo
bb19193aa1 Use sidebar widgets in list view
- Update list view folder to follow new structure
-- Move list view related components to list view folder
-- Move list view store to list view folder
-- Move list view adapters to list view folder

- Remove old implementation of list view charts
- Use sidebar widgets component

- Add support for declaring list view sidebar widgets
-- Replace ChartDefinitionProvider with ListViewSidebarWidgetDefinitionProvider
-- Add default configuration for list view sidebar widgets

- Add ListQueryDataHandler
-- Allows to easily get the list view query for the criteria set
-- Allows to override query parts and execute it

- Configure leads sidebar widget
- Add LeadsByStatusCount series statistic provider
-- Add unit tests

- Update unit tests
2021-03-30 19:22:35 +01:00
Clemente Raposo
09bcf1c871 Message component enhancements
- Adjust alert position
- Add ability to close when clicking in any part of the alert
- Add timer to auto-close success messages
-- Make timeout configurable through the backend
- Add fade in and fade out effects
- Add min width to alerts
- Add karma / jasmine tests
2021-03-30 19:22:34 +01:00
Clemente Raposo
fca0b8c375 Add Configurable Record view actions
- Rename frontend bulk actions to async actions
- Adjust actions.adapter.ts to use recordview meta actions
-- Check type of action and if its async
-- Allow running async actions
-- Allow reloading page if flag sent from backend
- Add RecordActionDefinitionProvider
- Add record view default actions configuration
- Add DeleteRecordAction
- Add DuplicateRecordAction
- Adjust karma/jasmine tests
- Add codeception unit tests
- Rename options dropdown to actions
- Change action button group rendering
-- allow some items to always be expanded
-- float to the left on extra small screens
- Add record view specific screen size action limits
2021-03-30 19:22:33 +01:00
Dillon-Brown
95702c7854 Fix Symfony deprecations
Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
2021-03-30 19:22:33 +01:00
Dillon-Brown
6ba763e1c7 Set dev configuration to enable further web profiler features.
- This change causes the browser to stop before making any redirections, show the redirect URL, its toolbar, and its profiler.

Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
2021-03-30 19:22:33 +01:00
Dillon-Brown
643bdfd23c Add dev secret vault
Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
2021-03-30 19:22:32 +01:00
Dillon-Brown
e59dcff91b Add Cryptographic keys for dev environment
Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
2021-03-30 19:22:32 +01:00
j.anderson
8a7d6a1379 Change Cases record view 2021-03-30 19:22:32 +01:00
Dillon-Brown
e82feb45b7 Update UserRepository and security.yaml to allow more control over user authentication
- Remove hardcoded property identifier to enable us to chose how users are identified.
- Remove user password encoding that isn't used in favour of using legacy users.
- Optimizing the container by removing unused services through service configs.

Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
2021-03-30 19:22:31 +01:00
Dillon-Brown
7701f45b05 Implement doctrine migrations
- Setup doctrine migration configuration.

Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
2021-03-30 19:22:31 +01:00
Dillon-Brown
8271d66178 Update User entity to match types with pre-existing legacy database
- Update User entity.
- Update schema_filters to only allow doctrine interaction with the users and migration_versions tables.
- Set auto_generate_proxy_classes to false since we don't need proxy classes.
- Updated broken ORM and doctrine mappings.

Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
2021-03-30 19:22:31 +01:00
Dillon-Brown
5a8f382f03 Refactor all existing namespaces
Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
2021-03-30 19:22:31 +01:00
Clemente Raposo
139ad660b8 Add RecordView configurable TopWidgets
- Structure re-factor
-- Move record view components to record view folder
-- Move record view store to record view folder
-- Add containers folder
--- add @containers alias
-- Move Subpanels to containers folder
-- Move subpanel-statistics.store to single-value-statistics.store

- Make administration repair a cache reset action

- Add dynamic top widget component
- Add statistics top widget component
- Add support for recordView defs topWidget configuration

- Adjust and standardize Statistic API structure
-- Add metadata to response.
--- Metadata should drive widgets behavior
-- Change existing StatisticsProviderInterface implementations to send back metadata

- Add SubpanelDataQueryHandler to make custom queries easier
-- Allows to get the query done to fetch subpanel data
-- Allows to run custom queries
- Add WonOpportunityAmountByYear using custom query
- Implement SubpanelOpportunitiesTotal using custom query

- Add karma/jasmine tests
2021-03-30 19:22:31 +01:00
Dillon-Brown
4cd53cc6fd Refactor authentication to use application/json
- Sending by JSON is the preferred choice for API platform.

Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
2021-03-30 19:22:31 +01:00
Dillon-Brown
a3aaa0c5fc Set web profiler config
- This will be automatically disabled in production environments

Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
2021-03-30 19:22:31 +01:00
Dillon-Brown
8235e46b2d Update Composer
Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
2021-03-30 19:22:31 +01:00
Dillon-Brown
6734f26d98 Implement CSRF protection
- Remove outdated CSRF package
- Implement core CSRF protection

Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
2021-03-30 19:22:31 +01:00