Commit graph

343 commits

Author SHA1 Message Date
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
Dillon-Brown
23d90c1725 Update Angular front-end path to use new folder structure
- Removed outdated build commands
- Set output paths to public/dist
- Updated back-end index to use new pathing

Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
2021-03-30 19:22:32 +01:00
Dillon-Brown
5aa63016ce Update NPM
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
Dillon-Brown
c44c3ae8e5 Add Symfony/Yaml dependency
- This enables the ability to use composer without dev packages on Symfony prod

Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
2021-03-30 19:22:32 +01:00
Mac Rae
41d954dec1 Update Readme to include new install process 2021-03-30 19:22:32 +01:00
Mac Rae
186d6eaaeb Add support for firefox and headlesschrome in tests 2021-03-30 19:22:32 +01:00
j.anderson
85000db8c4 Add Cases Top widget 2021-03-30 19:22:32 +01:00
Dillon-Brown
3fc7b08dd4 Fix users table ID default to match legacy
Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
2021-03-30 19:22:32 +01:00
Clemente Raposo
eb37bd2c46 Fix Karma test 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
j.anderson
8a7d6a1379 Change Cases record view 2021-03-30 19:22:32 +01:00
Dillon-Brown
0cce4ee2a9 Lock codeception composer dev requirement
- This is required until we update our test code

Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
2021-03-30 19:22:32 +01:00
Dillon-Brown
c31ea0cd4d Update utf8 types to match legacy database
Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
2021-03-30 19:22:31 +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
Dillon-Brown
10dd04a2c7 Remove unused API
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
3b0fd86837 Update composer
Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
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
Dillon-Brown
6446d62f5e Update NPM
Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
2021-03-30 19:22:31 +01:00
Clemente Raposo
cd8b9004a9 Add multienum field edit + detail components
- Add BaseMultiEnumComponent that extends BaseEnumComponent
- Add multienum detail field component
- Add multienum edit field component
- Allow passing a list of options instead of using the appListStrings
-- Usefull for:
--- adding standalone enums/multienums
--- updating the list of possible values based on other values
- Update RecordHandler to map the api format to legacy format
- Add karma/jasmine tests
2021-03-30 19:22:31 +01:00
Clemente Raposo
5e594b73e4 Add enum field edit and detail mode components
- Add enum detail field component
- Add enum edit field component
- Install ngx-chips components
- Style ngx-chips components
- Use ngx-chips in enum edit field component
- Add karma/jasmine tests
2021-03-30 19:22:31 +01:00
Clemente Raposo
4b7b68d430 Subpanel button size adjustments
- adjust width and height
2021-03-30 19:22:31 +01:00
Dillon-Brown
a0767964a9 Fix undefined property in the field model
Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
2021-03-30 19:22:31 +01:00
Dillon-Brown
b7aa1f54d1 Fix mobile navigation fadein
Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
2021-03-30 19:22:31 +01:00
Dillon-Brown
47ec74949c Update NPM
Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
2021-03-30 19:22:31 +01:00
Clemente Raposo
63de5ba178 Fix subpanel data loading for collections
- Add null validations for special scenarions
2021-03-30 19:22:31 +01:00
Clemente Raposo
8208fa65b3 Add new routing config 2021-03-30 19:22:31 +01:00
Clemente Raposo
a40391435a Adjust textarea display in listview mode
- Remove border
- Remove padding
2021-03-30 19:22:31 +01:00
Clemente Raposo
ebe4334d07 Subpanel button styling adjustments
- Change border color
- Truncate button text
- Align display
2021-03-30 19:22:31 +01:00
Dillon-Brown
9d61592a7c Fix field layout button CSS
Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
2021-03-30 19:22:31 +01:00
Dillon-Brown
adac880020 Fix order of ListView data buttons
Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
2021-03-30 19:22:31 +01:00
Dillon-Brown
f0c55891ee Implement edit mode date/datetime fields
Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
2021-03-30 19:22:31 +01:00
Clemente Raposo
607396f04a Change mock value for Contacts module 2021-03-30 19:22:31 +01:00
Clemente Raposo
3308fdd80f Add margin between subpanel buttons 2021-03-30 19:22:31 +01:00
Clemente Raposo
8dfeee7368 Remove decimal place digits from subpanel stats
- Add support for overriding the number of digits
- Set subpanel stats digits as 0
2021-03-30 19:22:30 +01:00
Clemente Raposo
24432c342c Record and list view styling adjustments
- Add standard fontsizes and heights for panel headers
-- user panel in widget component
- Adjust subpanel square buttons to match mocks
- Adjust inline edit button layout to always be on the right of the field
- Add word wrapping to record-content fields to support long names/text
2021-03-30 19:22:30 +01:00
Clemente Raposo
b7059f7645 Fix record view access errors
- Use classic view for some modules
- Add support for minimal detailviewdefs configuration
2021-03-30 19:22:30 +01:00
Clemente Raposo
a6568b23ea Fix subpanel create action buttons
- Fix error by passing action and getting the module from the action
- Map actions for History and activities modules
- Add support for several actions
2021-03-30 19:22:30 +01:00
Clemente Raposo
8108da840c Fix relationship link in Quotes
- Default rname to name field
2021-03-30 19:22:30 +01:00
Clemente Raposo
6f27192477 Fix single quotes displayed as html encoded
- When retrieving the record disable the encode option
2021-03-30 19:22:30 +01:00
Clemente Raposo
d062e56cd8 Add subpanel stats
- Retrieve the subpanel stats from backend
-- with mock data for now
- Display inline loading spinner while the stats are being retrieved
- Render stats using field component
- Add statistics api, resolvers and data providers
- Add statistics provider registry
- Add the needed statistics providers for each subpanel type
-- return mock data for now
- Add inline loading spinner component
2021-03-30 19:22:30 +01:00