Commit graph

481 commits

Author SHA1 Message Date
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
Clemente Raposo
b69df1ba3b Add inline_edit definition check
- Check inline_edit vardefs to determine if inline edit button should be rendered
2021-03-30 19:22:30 +01:00
Clemente Raposo
deed1ef4d5 Make Module icons themable
- Move module icons to suite 8 side images
- Update all module icon svgs to be themable using css
-- They should support using css stroke and fill to change color
2021-03-30 19:22:30 +01:00
Clemente Raposo
50e8fdcb5f Add History Timeline widget
- Add History Timeline widget component
-- Using mock data for now
- Change widget component to receive widget to render
- Add history widget to record view
- Conditionally display history widget
-- Check if module has activities or history subpanel
2021-03-30 19:22:30 +01:00
Dillon-Brown
6bef8e374b Add inline editing icons for record-view
Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
2021-03-30 19:22:30 +01:00
Clemente Raposo
8829495f50 Subpanel data retrieval
- Add ability to defined preset data handlers
-- Extract regular list view data logic to ListDataHandler.php
-- Add PresetListDataHandlerInterface.php and PresetListDataHandlers.php to give the ability do define a preset query
-- Add logic to RecordListHandler.php to use the preset data handler if the preset info is passed on the criteria.
- Update subpanel stores in front end
-- Initialize store proper subpanel criteria
-- Initialize subpanel stores within recordView store.
-- Trigger subpanel data load on subpanel display
- Update subpanel
-- Update styling
-- enable minimize button
- Update table
-- Add loading
2021-03-30 19:22:30 +01:00
Dillon-Brown
fe9ecb50ac Fix record-view-profile CSS
- The tabs should be slightly smaller
- Add missing line to record-view
- Link fields should be an orange colour
- Fix the background of text areas

Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
2021-03-30 19:22:30 +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
Clemente Raposo
0010232df3 Remove subpanel suite8 side configuration
- Use title provided in layout defs for each module
- Use module icon as subpanel icon
2021-03-30 19:22:30 +01:00
Clemente Raposo
b19b278060 Adjust subpanel number of columns on re-size
- Extract column calculation logic to max-columns-calculator.service.ts
- Use calculation logic in subpanel container
2021-03-30 19:22:30 +01:00
Clemente Raposo
d3ca0865a5 Add subpanel icon
- Remove subpanel button
-- Add new 'none' options to panel component
- Add subpanel icon
-- Add icon area to panel component
2021-03-30 19:22:30 +01:00
Clemente Raposo
8770ef1441 Render table within subpanel
- De-couple table from listviewStore and MetadataStorea
-- Add TableConfig to get things through input
- Move list data handling from listViewStore to recordListStore
-- use recordListStore within listViewStore
- Add subpanel store
- Initialize list of subpanelStores within RecordViewStore
-- Create a subpanel store for each configured subpanel
- Change subpanel container and subpanel components
-- Use store instead of directly using the metadata
- Remove ui from some of the component names
- Move common interfaces to app-common to avoid dependencies
- Update karma/jasmine tests
- Update codeception tests
2021-03-30 19:22:30 +01:00
Clemente Raposo
4210ab72d7 Reload record from DB after saving 2021-03-30 19:22:30 +01:00