Commit graph

110 commits

Author SHA1 Message Date
Clemente Raposo
1d39952e87 Allow non mapped legacy module names
- Keep legacy module when not defined
- Adjust unit tests
2021-03-30 19:22:42 +01:00
Dillon-Brown
674af51eea Update test namespaces
Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
2021-03-30 19:22:42 +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
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
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
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
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
Clemente Raposo
09ce66e875 Add codeception unit tests for system config mappers 2021-03-30 19:22:37 +01:00
Dillon-Brown
06a6932496 Fix unit tests
- Update unit test bootstrap pathing
- Move new theme images to new legacy path
- Fix AccountsNewByMonthMock unit test warning
- Change startLegacyApp to follow the correct method signature

Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
2021-03-30 19:22:36 +01:00
Jack Anderson
e9b9819e7d Accounts Chart Implementation 2021-03-30 19:22:36 +01:00
Clemente Raposo
4f8d734e58 Fix DaysUntilDueTask statistic unit tests
- Tests failed due to difference in timezones conversion
2021-03-30 19:22:36 +01:00
Clemente Raposo
bfed5ae78e Fix editview metadata loading for Users module
- Properly load the legacy app and router
-- Fixes user module metadata loading
- Adjust unit tests
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
j.anderson
035762ff27 Activities and History Subpanel Changes 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
j.anderson
a778e0e504 Add Contracts Subpanel Implementation 2021-03-30 19:22:35 +01:00
j.anderson
6065c9c22a Campaign subpanel implementation 2021-03-30 19:22:35 +01:00
j.anderson
68a9e70345 Add quotes insight 2021-03-30 19:22:34 +01:00
j.anderson
4db1d03190 Tidy Invoice Subpanel Insight 2021-03-30 19:22:34 +01:00
j.anderson
65a1dd98b5 testing 2021-03-30 19:22:34 +01:00
j.anderson
9855c638c6 Invoice Subpanel implementation 2021-03-30 19:22:34 +01:00
j.anderson
adca306c93 Add Cases Subpanel Implementation 2021-03-30 19:22:34 +01:00
Dillon-Brown
2114e123d8 Implement skipped tests
Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
2021-03-30 19:22:34 +01:00
Dillon-Brown
9dc999d5a5 Fix OpportunitySalesStageTimeSpanTest
Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
2021-03-30 19:22:34 +01:00
Dillon-Brown
12c9bec2a1 Fix statistics unit tests
Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
2021-03-30 19:22:34 +01:00
j.anderson
420bd2fc85 Change datetime to date for events subpanel 2021-03-30 19:22:34 +01:00
j.anderson
9fdfb4c73d Add Contact Subpanel implementation 2021-03-30 19:22:34 +01:00
j.anderson
abb164315c Fix Test Files 2021-03-30 19:22:34 +01:00
Clemente Raposo
7477586d03 Send SubPanelActivitiesNextDate insight dates in db format
- Send dates in db format as expected by the frontend
- Fix unit tests
2021-03-30 19:22:34 +01:00
j.anderson
eb7ec59014 Add History Subpanel implementation 2021-03-30 19:22:34 +01:00
j.anderson
0d9c019b57 Add Activities Implementation 2021-03-30 19:22:34 +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
j.anderson
f57828ca69 Add event subpanel implementation 2021-03-30 19:22:33 +01:00
j.anderson
06a9cb9742 Add CasesPerAccount and CaseAccountDateEntered Statistics 2021-03-30 19:22:33 +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
Clemente Raposo
69325626aa Add Opportunity Size Analysis statistic
- Add OpportunitiesForUser statistic
- Add OpportunitySizeAnalysis statistic
- Add PreparedStatementHandler
- Add number statistic builder method
- Add codeception unit tests
2021-03-30 19:22:33 +01:00
Dillon-Brown
661f23f04a Update test mock namespaces
Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
2021-03-30 19:22:33 +01:00
Dillon-Brown
6977b48511 Add skip annotation for failing API tests
Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
2021-03-30 19:22:33 +01:00
Clemente Raposo
28eba5ddf0 Add configurable statistics sidebar widget component
- Add Statistics sidebar widget component
-- Add interfaces and types for configuration
- Change widget-panel to receive a label instead of labelkey
-- Change usages to send label instead of label key
- Add karma/jasmine tests
- Fix codeception unit tests
2021-03-30 19:22:32 +01:00
j.anderson
48900113aa Add Tasks Top Widget 2021-03-30 19:22:32 +01:00
Clemente Raposo
68d0d07a1e Add RecordView configurable SidebarWidgets
- Add dynamic sidebar widget component
- Move history-timeline to sidebar widget component
- Add chart sidenar widget componet
- Add charts-data store
- Add multiseries-statistics store
- Add support for recordView defs sidebarWidget configuration
- Apply formatting to yAxis ticks
- re-factor currency and number formatting to be re-usable
-- Add NumberFormatting and CurrencyFormatting services
-- Change corresponding pipes to use services
- Move utils to app-common
- Re-factor charts component
-- to be able to receive data an configs from backend
- Re-factor widget into widget-panel
- Move front-end data lisview charts to list-chart component

- Add support for fetching several rows in SubpanelDataQueryHandler

- Adjust and standardize Statistic API structure
-- Add SeriesResponse Model
-- Add multi-series response building helper methods

- Adjust tests
2021-03-30 19:22:32 +01:00
Dillon-Brown
a267325698 Update codeception namespaces
- Refactor codeception test namespaces
- Remove local config files in favor of dist
- Update test environment with doctrine and nelmio configurations

Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
2021-03-30 19:22:32 +01:00
j.anderson
aeff40fec1 Add tests for Case Days Open 2021-03-30 19:22:32 +01:00
Clemente Raposo
857296f935 Add LeadsDaysOpen Statistic
- Add Statistic implementation class
- Add codeception unit test
-- change mock sql results handling
2021-03-30 19:22:32 +01:00
Clemente Raposo
d5a86261f4 Add OpportunitySalesStageTimeSpan Statistic
- Add OpportunitySalesStageTimeSpan statistic provider
- Add AuditQueryingTrait to have it re-usable
- Add common methods to StatisticsHandlingTrait
- Add support to send labelKey in the statistic response
- Add top widget reloading on save
-- Add refreshOnRecordUpdate flag to allow configuration
- Only do top widget and subpanel calls after record data returns
2021-03-30 19:22:32 +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
Dillon-Brown
5579401a1f Implement routing configuration
Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
2021-03-30 19:22:30 +01:00