Commit graph

481 commits

Author SHA1 Message Date
codeph0y
ee52ca0050 Add create buttons to the subpanels 2021-03-30 19:22:30 +01:00
Clemente Raposo
b4639304bb Send html entities decoded data
- Remove forced innerHtml injection and sanitize
2021-03-30 19:22:30 +01:00
Clemente Raposo
7043ecb6d1 Add Record save
- Rename RecordView and ListView Apis to Record and Record List
- Align the record structure returned by Record and Record List Apis
- Add saveRecord graphql api
- Add save functionality to RecordHandler legacy handler
- Add record save action button to the front end
- Add record save api call to the record manager and recordView store
2021-03-30 19:22:30 +01:00
codeph0y
dac39d5895 Add subpanels to record view 2021-03-30 19:22:30 +01:00
Dillon-Brown
c21fc7c10a Implement GroupFields for FullName component
Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
2021-03-30 19:22:30 +01:00
Dillon-Brown
bd19a640ae Remove unused PHP stubs
Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
2021-03-30 19:22:30 +01:00
Clemente Raposo
779438afc8 Fix subpanel image warning
- Check if icons are set
2021-03-30 19:22:29 +01:00
Clemente Raposo
1b81f04f02 Fix relate field link
- Get the relate_id from proper attribute
2021-03-30 19:22:29 +01:00
Clemente Raposo
a434d130e2 Add RecordView edit mode
- Use action definitions in record-settings-menu
-- Action interface
-- Add RecordAction interface
-- Add record adapt to send the actions to the menu
-- Add temporary hard-coded action list
-- Add record action handlers:
--- edit
--- cancel
--- history
--- create
- Update jasmine/karma tests
2021-03-30 19:22:29 +01:00
Clemente Raposo
e4837e9b45 Display fields on record content
- Add field layout component to display the fields using defs
- Adjust RecordContentComponent to use FieldLayout component
- Add Record manager to store to split the fields / record logic
-- Add staging are to allow having changed fields that weren't saved

- Apply ApiBeanMapper to RecordView
-- to match the model on ListView

- Add styling
- Add karma/jasmine tests
2021-03-30 19:22:29 +01:00
Clemente Raposo
a016c171c8 Update ng-dynamic-component to version 6.1.0
- Needed due to angular 9 update
2021-03-30 19:22:29 +01:00
codeph0y
56d97d726e Add subpanel buttons 2021-03-30 19:22:29 +01:00
Dillon-Brown
0bd1d84df2 Implement relate field links
Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
2021-03-30 19:22:29 +01:00
codeph0y
2f04c03c13 Add select which subpanels to view banner 2021-03-30 19:22:29 +01:00
Clemente Raposo
ca7da3a1b3 Add tab layout support to RecordContent component
- Add tab layout rendering using ng-bootstrap
-- based on the recordViewDefs
- Add needed styles
- Add jasmine/karma tests
2021-03-30 19:22:29 +01:00
Clemente Raposo
2f96565a30 Add Record Content component
- Add RecordView metadata to view definitions api
- Re-structure record store / fix issues
- Small structure change to the record container adapter
- Add Record Content component
- Add Record Content Adapter to bridge to the record store
- Add minimize option to panel component
- Add minimize button
- Add codeception unit tests
- Add jasmine / karma tests
2021-03-30 19:22:29 +01:00
Clemente Raposo
994b2c69bf Update list view api data retrieval
- Update ListViewHandler to use new method to retrieve data
- Update View definitions api to send fieldDefinitions as sub-object
- Update table and list view components to use new data format
- Move common front end interfaces to a common module
- UnEscape and sanitize html characters in varchar field
-- Add htmlSanitize pipe
- Update unit tests
2021-03-30 19:22:29 +01:00
Dillon-Brown
b1c2f9efb1 Add text field detail component to the record-view 2021-03-30 19:22:29 +01:00
Dillon-Brown
1e004f4913 Implement site.webmanifest for improved user experience
- Add a set of default config values for the app manifest

Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
2021-03-30 19:22:29 +01:00
Dillon-Brown
8b44274cd2 Remove unused properties, vars and parameters
Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
2021-03-30 19:22:29 +01:00
Dillon-Brown
b9a5095b78 Update AppFixtures to use auto-wiring
- Fixed the Doctrine Entity Manager being passed as an argument.

Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
2021-03-30 19:22:29 +01:00
Dillon-Brown
cfa14208f6 Remove PHP session headers
- Removed all native PHP session functions as they bypass the Symfony event system.

Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
2021-03-30 19:22:29 +01:00
Dillon-Brown
897240324a Add missing license specification in composer.json
Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
2021-03-30 19:22:29 +01:00
Dillon-Brown
6acc0ba9e7 Remove commented out code
Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
2021-03-30 19:22:29 +01:00
Dillon-Brown
8c9b920e48 Update .gitignore to specify project specific ignores only
- Updated .gitignore placeholders to .gitkeep and removed the ones that are no longer needed.
- Updated root .gitignore with further project specific ignores.
- Removed all non-project ignores (IDE, filetypes, etc) from the root .gitignore

Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
2021-03-30 19:22:07 +01:00
Dillon-Brown
79395ab203 Add .editorconfig file to assist with maintaining consistent coding style
- Marked the .editconfig as root to stop further file searching.
- Added default charset, EOL, EOF and trailing whitespace rules.
- Set indent style and size for common file types (PHP, JS, HTML, SCSS, JSON).
- Added a commit message ruleset to prevent going over 72 characters.

Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
2021-03-30 19:21:40 +01:00
Dillon-Brown
53556322c7 Update gitignore for symfony/phpunit-bridge
Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
2021-03-30 19:21:40 +01:00
Dillon-Brown
99edaeb860 Update file perms to be more restrictive
- Removed unnecessary file execution permissions.

Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
2021-03-30 19:21:40 +01:00
Clemente Raposo
357b052293 Add button group component
- Add button group component
- Add dropdown submenu component
- Apply button group to listview actions menu
- Apply button group to listview settings menu
- Add actions and settings menu limit size based configuration
- Re-factor columnchooser component to be able to call dynamically
- Fix console error on app component
- Add unit tests
2021-03-30 19:21:40 +01:00
Clemente Raposo
6ec70ccc3e Update ng-boostrap to version 6.2
- Needed due to angular 9 update
2021-03-30 19:21:40 +01:00
Clemente Raposo
401f15331f Fix schedulers new list view rendering
- Send the user search type (advanced/basis) on when fetching the list view data
- check if the metadata for advanced search is defined, otherwise fallback to basic
2021-03-30 19:21:40 +01:00
Clemente Raposo
e5a894a347 Fix security groups new list view rendering
- Fix error thrown when rendering security groups in the new list view
-- Send security groups module information as part of the navbar api
2021-03-30 19:21:40 +01:00
Clemente Raposo
04d17f2631 Omit fields not defined on vardefs from listview definition api
- Check if if fields are defined on the vardefs and omit any that aren't
-- Log any found
- Clean moduleMatcher list view enable module list
- Add missing modules to use new list view
2021-03-30 19:21:40 +01:00
Dillon-Brown
63fe5948ae Implement SavedSearch filters
Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
2021-03-30 19:21:40 +01:00
Clemente Raposo
bdc22e029f Add standard format for searchdefs api fields
- Check for simplified configuration and expand to standard configuration
- Change the way vardefs defaults are applied to view configurations
- Add unit tests
2021-03-30 19:21:40 +01:00
Clemente Raposo
7df391c37c Fix Codeception Tests
- Remove old functional tests
- Fix aspect mock conf at the run all level
- Fix view definition handler unit test
2021-03-30 19:21:40 +01:00
Clemente Raposo
9ad9e189bc Update swimlane/ngx-charts charts version to latest 14.0.0
- update swimlane
- remove unused ng2-charts lib
2021-03-30 19:21:40 +01:00
Clemente Raposo
07114d7163 Record view adjustments and fixes
- fix karma tests
- remove @Directive from base field classes
- Fix imports
- Change record-settings-menu.component.ts
-- Get route and module inside the onClick, to make sure they are available
2021-03-30 19:21:39 +01:00
Dillon-Brown
8bc1feb757 Upgrade to Angular 9
- NPM Audit fixes
- Update npm packages
- Fix front-end tests

Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
2021-03-30 19:21:39 +01:00
Garry Henderson
9d44b9e1d4 Charts styling fixes 2021-03-30 19:21:39 +01:00
Clemente Raposo
27b0d9b30b Add vertical-bar-chart legend
- Replace x axis ticks with legend
- Display legend below the chart
- Display legend as a list
- Show name as well as the value on the tooltip
2021-03-30 19:21:39 +01:00
Clemente Raposo
8617d4cd0f Fix line chart legend display
- Add styling to display legend and a list
2021-03-30 19:21:39 +01:00
Garry Henderson
84cc116928 remove .value check 2021-03-30 19:21:39 +01:00
Dillon-Brown
76588cefeb Add record-view settings menu buttons
- Add history button
- Refactor new button

Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
2021-03-30 19:21:39 +01:00
Garry Henderson
3d9a896149 Maintain listview hr vertical alignment 2021-03-30 19:21:39 +01:00
Dillon-Brown
5e0bb96fa3 Add record-view edit button
Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
2021-03-30 19:21:39 +01:00
Dillon-Brown
17fedebf06 Add record-view header new button
Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
2021-03-30 19:21:39 +01:00
Dillon-Brown
76ea67dd8a Add record header component title
Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
2021-03-30 19:21:39 +01:00
Garry Henderson
353210fada Add dividing line & adjust padding by screen size 2021-03-30 19:21:39 +01:00
Garry Henderson
022918f786 Footer stays at bottom of page 2021-03-30 19:21:39 +01:00