Commit graph

3177 commits

Author SHA1 Message Date
Clemente Raposo
58886232f6 Add message to ListView when no records are found
- Check if there are records and show message if list is empty
2021-03-30 19:21:39 +01:00
Clemente Raposo
f66a7ff649 Fix list view rendering issue
- field name not properly picked up for some modules
2021-03-30 19:21:39 +01:00
Dillon-Brown
59d440726b Update list-view app routing to include all modules 2021-03-30 19:21:39 +01:00
Dillon-Brown
5cbc4311e9 Implement record-view history widget
- Add base sidebar widget for record-view
- Add dynamic widget title for list-view and record-view

Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
2021-03-30 19:21:39 +01:00
Dillon-Brown
5a411afe08 Implement record-view structure
- Add record-container component.
- Add record-header component.
- Add status-bar component.
- Add subpanel component.
- Add widget types to widget component.
- Add initial SASS styling for record-view.

Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
2021-03-30 19:21:39 +01:00
Dillon-Brown
c5ee6b4f8e Implement record-view routing
Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
2021-03-30 19:21:39 +01:00
Dillon-Brown
573fed6d2b Implement chart loading splash 2021-03-30 19:21:39 +01:00
Pedro Ernst
c2b92c8967 Line Actions Fixes
Correctly set labels on line actions
Increase spacing between line action icons
Fix return module after creating related record
2021-03-30 19:21:39 +01:00
Clemente Raposo
f837f50f17 Add accounts types per month chart
- Add line chart rendering in charts component
- Rename chart to account_types_per_month
- Show all month number on x axis
- Group account data
- Add date parsing using luxon
-- Add luxon library
- Remove pipeline-chart to make chart centered
2021-03-30 19:21:39 +01:00
Dillon-Brown
118f523066 Add accounts chart 2021-03-30 19:21:38 +01:00
Pedro Ernst
91a1469662 Fix login with new users breaking the auth process 2021-03-30 19:21:38 +01:00
Clemente Raposo
2932630c1d Change Filter Panel label 2021-03-30 19:21:38 +01:00
Clemente Raposo
4809bf5be9 Add leads by status list view charts
- Add pie-grid-chart component
- Add leads by status data source
- Adjust charts component
2021-03-30 19:21:38 +01:00
Clemente Raposo
07e9dbfd99 Add pipeline-by-sales-stage chart
- Add re-usable vertical-bar-chart with expected data source
- Add pipeline-by-sales-stage that implements the vertical-bar-chart data source
- Add keyed charts to charts component to add more in the future
- Add sample y axis formatting
- Add sample tooltip formatting
2021-03-30 19:21:38 +01:00
Dillon-Brown
a4797775de Implement chart module UI 2021-03-30 19:21:38 +01:00
Pedro Ernst
1c35bdd580 Feature #11505 List View Line Actions
Add line actions to listview to allow creating related records
2021-03-30 19:21:38 +01:00
Clemente Raposo
8011c20cbc Add link field navigation
- Remove link from varchar component
- Add link to generic field component to apply to several types of fields
-- Add record property to generic field component
-- Add link generation based on the record and module
- Add module information to list view metadata field
- Pass record information on list view table field rendering
- Rename interfaces to have a clear meaning

Add link field navigation

- Remove link from varchar component
- Add link to generic field component to apply to several types of fields
-- Add record property to generic field component
-- Add link generation based on the record and module
- Add module information to list view metadata field
- Pass record information on list view table field rendering
- Rename interfaces to have a clear meaning
2021-03-30 19:21:38 +01:00
Dillon-Brown
c9dc2217c3 Create base email component 2021-03-30 19:21:38 +01:00
Dillon-Brown
8debeb560d Add link to base varchar component 2021-03-30 19:21:38 +01:00
Dillon-Brown
5eed974fa2 Remove hardcoded email field from list-view 2021-03-30 19:21:38 +01:00
Clemente Raposo
d8179f5324 Add listview menu action improvements
- Add actionLabelKeys to the navbar api
- Use actionLabelKeys in action-menu
- Filter out the List / View action in te action-menu
- Change module-navigation getActionLabel to support declaring the labelKey to use
- Fix unit test
2021-03-30 19:21:38 +01:00
Clemente Raposo
f027fc5a75 Remove ending colon on app strings and mod strings
- Remove the ending colon on the legacy handlers as the labels get cached afterwards
2021-03-30 19:21:38 +01:00
Pedro Ernst
13cf4119dd Feature #10442 List Bulk Delete Action
Implement bulk delete handler and process
2021-03-30 19:21:38 +01:00
Garry Henderson
cf76c0e020 Replace grey panel border with shadow 2021-03-30 19:21:38 +01:00
Clemente Raposo
2c7d4a91e6 Fix Karma tests
- Fix ExportBulkAction mock
- Add listview_column_limits to mock system configs
2021-03-30 19:21:38 +01:00
l.wilson
1919cc1d21 CSS style fixes to List View
- Align action and option buttons to the right

- Css fix bulk action text vertical alignment

- Css fix left side alignment of list body

- Css fix nav home icon offset
2021-03-30 19:21:38 +01:00
Clemente Raposo
bc3a124835 Fix list view table column display on mobile view 2021-03-30 19:21:38 +01:00
Clemente Raposo
ee454f7195 Set list view table layout as fixed
- Set table layout as fixed for better display and support displaying cells with long content
2021-03-30 19:21:38 +01:00
l.wilson
f3a4dd6488 Change bulk action dropdown hover color, border and size 2021-03-30 19:21:38 +01:00
l.wilson
aa7b063947 CSS fixes to list view checkbox column width and select checkbox size 2021-03-30 19:21:38 +01:00
Dillon-Brown
29544dd524 Add chart button display when available 2021-03-30 19:21:38 +01:00
Garry Henderson
e5fba6e3fb [Legacy] Add entry to configHandler & charts label 2021-03-30 19:21:38 +01:00
Garry Henderson
2eca6056da Display/hide listview columns by screen size 2021-03-30 19:21:38 +01:00
Garry Henderson
f00ec67432 apply table-striped bootstrap class 2021-03-30 19:21:38 +01:00
l.wilson
05e4028265 Filter style fixes and hide saved/quick filter buttons 2021-03-30 19:21:38 +01:00
Clemente Raposo
cd7c611069 Set symfony profiler to track exceptions only
- Avoid having huge volume of cached data
2021-03-30 19:21:38 +01:00
Clemente Raposo
2a4e209614 Add Csv export bulk action
- Add CsvExportBulkAction process handler to provide the download information
- Extract legacy filter handling code to the LegacyFilterMapper.php service
- Add ExportBulkAction angular service to download the file using the info provided
2021-03-30 19:21:38 +01:00
Clemente Raposo
8881bc85f9 Add Merge bulk action
- Add base frontend bulk action handling
-- Add max min validations
-- Add generic backend bulk action process call
- Add front end redirect handler
-- Can be re-used by several bulk actions if needed
- Add MergeRecordsBulkAction.php backend handler
-- Handle the the bulk action process request
-- Tells front end if extra handling is needed

- Fix bug list view metadata sent to the front end
2021-03-30 19:21:38 +01:00
Dillon-Brown
8a5a002e76 Add chart type selection dropdown 2021-03-30 19:21:37 +01:00
Dillon-Brown
2f5472f3c3 Add initial chart configuration for listview
- Create charts.yaml configuration.
- Add chart interface.
- Add chart service to fetch chart config.
2021-03-30 19:21:37 +01:00
Dillon-Brown
a41ab09f58 Fix the ViewDefinitions API not sending types 2021-03-30 19:21:37 +01:00
Clemente Raposo
e8112140af Enable new list view for a set of modules 2021-03-30 19:21:37 +01:00
Clemente Raposo
cc92e16141 Add configurable ListView BulkActions
- Add BulkActionDefinitionProvider
-- Add module.listview.bulk_action symfony parameter config
--- Add base config to bulk_actions.yaml
-- Add AclHandler legacy handler
- Add bulk actions list to the list view definitions api
- Retrieve bulk actions in metadata store
- Add bulkactions to list view store
- Display bulk actions list in bulk-action-menu.component
- Change dropdown-button to render dropdown items as <a> tags
- Add/update codeception unit tests
- Add/update karma/jasmine unit tests
2021-03-30 19:21:37 +01:00
Dillon-Brown
95904fe427 Add list-view clear filter button 2021-03-30 19:21:37 +01:00
Clemente Raposo
9bbe35df3e Add missing api resource grant checks 2021-03-30 19:21:37 +01:00
Clemente Raposo
ca6a2f121d Add sorting to list view
- Add sorting to listview api
- Set the fields sortable default value as true, like legacy
- Add sorting button component
- Conditionally display sort button according to field definition
- Add logic to update table when sort button is clicked
- Store used sort in local storage
- Update sort svgs
- Fix listview labels display
-- fallback to check modstring and fallback to appstrings
- Fix name field display in ListView
-- fallback to varchar field when no mapping set
- Add / update karma tests
2021-03-30 19:21:37 +01:00
Dillon-Brown
9eed1c00bb Implement email links on the listview 2021-03-30 19:21:37 +01:00
Clemente Raposo
f2bd9d9949 Improve session checks and cookie reset
- Clean CSRF token when session has expired
-- On the root path
-- On the session-check entrypoint
--- Needed since this invalidates the session

- Add new session token after expiring old session
-- On the session-check entrypoint
--- Needed as the following login requests will require a token

- Configure CSRF token generation on the session-status api
-- The session status can invalidate the session
-- It also cleans the tokens
-- We need to generate a new token afterwards
2021-03-30 19:21:37 +01:00
Clemente Raposo
ec712ff075 Change order of list pagination buttons 2021-03-30 19:21:37 +01:00
Clemente Raposo
84bf643ce4 Add ListView filtering
- Add legacy filtering to ListView handler
- Map new filter format to legacy format
-- Add filter_operator_map.yaml to configure mappings
- Add criteria to field interface to support filter fields
- Add varchar filter mode component
-- Uses criteria instead of value for displaying and data binding
- Add search and clear buttons to list filter panel
-- Use internal criteria to keep current criteria status
--- Updated using filter field 2 way data binding
-- Update ListView store criteria on search or clear
- Update ListView store fetch method to use criteria
- ListView store: store criteria on local storage
-- Add current list criteria to local storage upon search
-- Load criteria when list view data is loaded
- Clear selection when filter is applied
- Update karma/jasmine tests
2021-03-30 19:21:37 +01:00