Commit graph

3126 commits

Author SHA1 Message Date
Clemente Raposo
58c1ff4264 Add AppState Facade
- Add facade with cross-app loading flag observable
- Update AppComponent to use the facade
- Update language facade to set loading when calling api
2021-03-30 19:21:32 +01:00
Clemente Raposo
5d78c4257a Add loading spinner on route loading
- Add FullPage Loading Spinner component
- Add spinner to app component html
- Listen to route loading events to enable / disable spinner
2021-03-30 19:21:32 +01:00
Clemente Raposo
9486eec316 Update Navigation service
- Update service to cope with changes to the graphql Record query
2021-03-30 19:21:32 +01:00
Clemente Raposo
2f3df6be46 Add BaseMetadataResolver
- Update LanguageFacade to fetch AppStrings
- Add BaseMetadata resolver
-- Does a chained call to get the SystemConfigs and then the AppStrings
- Temp: only enable resolver for #Listview route for now
2021-03-30 19:21:32 +01:00
Clemente Raposo
bcc7950d0f Add SystemConfigs facade
- Add facade
- Add graphql Collection query
- Update graphql record query
2021-03-30 19:21:32 +01:00
Ross Moroney
f1719823e6 Add language facade 2021-03-30 19:21:32 +01:00
Clemente Raposo
1e6b530091 Legacy handler Unit Test cleanup 2021-03-30 19:21:32 +01:00
Clemente Raposo
b1b048a152 Add AppListStrings Legacy Handler
- Add AppListStrings Legacy handler
- Update AppListStrings Item data provider to use legacy handler
- Add unit tests for legacy handler
2021-03-30 19:21:32 +01:00
Clemente Raposo
35265b52ff Add AppListStrings API entrypoint
- Add AppListStrings entity
- Add AppListStringsItemDataProvider with sample data
2021-03-30 19:21:32 +01:00
Clemente Raposo
b624a27088 Remove unneeded service configuration in favor of autowiring 2021-03-30 19:21:32 +01:00
Clemente Raposo
c02ab30a05 Add SystemConfig Legacy Handler
- Add SystemConfi Legacy handler
- Add service configuration to specify which configs are exposed to the frontend
- Update Systemconfig Item and Collection data provider to use legacy handler
- Add unit tests for legacy handler
2021-03-30 19:21:32 +01:00
Clemente Raposo
32d40be3e7 Add AppStrings Legacy Handler
- Add AppStrings Legacy handler
-- Inject some User module key into app strings
- Update AppStrings Item data provider to use legacy handler
- Add unit tests for legacy handler
2021-03-30 19:21:32 +01:00
Clemente Raposo
21158789fe Fix karma tests 2021-03-30 19:21:32 +01:00
Clemente Raposo
99f28973f7 Fix unit tests 2021-03-30 19:21:32 +01:00
Clemente Raposo
bd2e3d6e0c Add session swapping to LegacyHandlers
- Autowire LegacyHandlers as Symfony Services
-- Configure legacy handlers folder in service.yml
-- Replace handler instantiation with service injection

- Add init and close to legacy handlers
-- Swap sessions
-- Swap current dir
-- Add config to allow moving values between sessions
-- replace hard coded values with injected configuration

- Remove unused services and corresponding unit test
-- NavbarService.php
-- AuthenticationService.php

- Refactor Authentication Handler to
-- call init and close methods

- Refactor navbar handler to be used as a service
-- Adjust navbar unit tests
2021-03-30 19:21:32 +01:00
Clemente Raposo
93d49d2514 Add AppStrings API entrypoint
- Add AppStrings entity
- Add AppStringsItemDataProvider with sample data
2021-03-30 19:21:32 +01:00
Clemente Raposo
1ae0ba0fc0 Add SystemConfig API entrypoint
- Add SystemConfig entity
-- only declare the configs needed at the moment

- Add SystemConfigItemDataProvider with sample data
2021-03-30 19:21:32 +01:00
Clemente Raposo
ac13d08e44 Enable GraphiQl docs
- Configure the assets folder to public
- Enable GraphiQl docs
2021-03-30 19:21:32 +01:00
Will
21d2428876 Add theme states for navigation menu and buttons 2021-03-30 19:21:32 +01:00
Will
6c98815029 Add reusable widget component and service 2021-03-30 19:21:32 +01:00
Dillon-Brown
93c4e2ce91 Add legacy handler to fetch module sub menu data 2021-03-30 19:21:32 +01:00
Dillon-Brown
ed5feb3938 Fix NonGroupedNavTabs returning sorted array by default 2021-03-30 19:21:32 +01:00
Dillon-Brown
0df81cbb98 Add eslintrc and all necessary dependencies to handle linting javascript/typescript
- Add engines to specify the engines needed to build and run the project.
- Add browserslist to dynamically handle our supported browsers with for all our automated tooling and inspections.
- Add typescript-eslint/eslint-plugin and typescript-eslint/parser to handle typescript parsing.
- Add eslint-plugin-compat to share configurations between our automated tools.
- Add eslint-plugin-import in order to create an eslint that matches our existing tslint config without losing functionality.
- Add eslint-plugin-jsdoc in order to create an eslint that matches our current tslint config without losing functionality.
- Add eslint-plugin-jasmine to provide support for jasmine testing.
- Removed unused tslint.json
2021-03-30 19:21:32 +01:00
Clemente Raposo
86793924e9 Fix Jasmine/Karma tests
- Add missing imports
2021-03-30 19:21:32 +01:00
Will
5c13637f5d Add dynamic button component 2021-03-30 19:21:32 +01:00
Ross Moroney
662b92e65d Add list components to view 2021-03-30 19:21:32 +01:00
Will Rennie
febd2442c5 Adding restructured components 2021-03-30 19:21:32 +01:00
Will Rennie
e888e74a09 Remove list view include from api service 2021-03-30 19:21:32 +01:00
Will
e0dffa841b Remove redundant components to refine component structure 2021-03-30 19:21:32 +01:00
Dillon-Brown
b83d27edcd Complete navigation user action menu contract 2021-03-30 19:21:32 +01:00
Dillon-Brown
287ed2fb15 Add Angular CSRF protection 2021-03-30 19:21:31 +01:00
Dillon-Brown
9bff8530c6 Add Suite-8 user authentication 2021-03-30 19:21:31 +01:00
Clemente Raposo
ca0e00dfd1 Fix Legacy re-directs for subpaths
- Add units tests to check that :
-- requests to the api aren't taken as legacy
-- valid requests done in a subpath instance are considered valid
2021-03-30 19:21:31 +01:00
Clemente Raposo
87a01cf443 Fix navigation submenu frontend routes 2021-03-30 19:21:31 +01:00
Dillon-Brown
fdb97afcb3 Fix NavTabs to return agreed navbar contract 2021-03-30 19:21:31 +01:00
Ross Moroney
18cf64c8ad Add list view and routing for viewing. 2021-03-30 19:21:31 +01:00
Will
94337a5eb5 Fix component loading errors 2021-03-30 19:21:31 +01:00
Clemente Raposo
e3ce6d85ef Retrieve Navigation Menu data from API
- Add Navigation Api Service
- Add Metadata Facade Service
- Build Navigation menu using fetched menu items
- Fix submenu item link on template
- Cleanup code warnings
- Remove get method from RecordGQL
-- we won't be using GraphQL cache for the moment
- Fix classic view karma tests
- Fix Filter karma tests
- Add set of base jasmine tests for:
-- navbar component
-- metadata service
-- navigation metadata service
2021-03-30 19:21:31 +01:00
Will
7ed07c6091 Add theming states for login form 2021-03-30 19:21:31 +01:00
Clemente Raposo
668bd04df9 Serve frontend app using symfony router 2021-03-30 19:21:31 +01:00
Clemente Raposo
b809e5c85b Add ClassicView routing
Redirect Suite7 requests to Suite8 ClassicView routes for valid actions
- Use Symfony kernel events
- Use Symfony service configuration and DI for module mapping

Add legacy redirection tests
- Add acceptance test support
-- Add config helper
- Fix issue when running `codcept run`
-- functional tests missing
- Add functional tests for legacy routing
- Add unit tests for legacy routing
2021-03-30 19:21:31 +01:00
Will
57005f75f1 Fix missing Angular SVG npm 2021-03-30 19:21:31 +01:00
Will
20a9733fc0 Add Angular SVG component 2021-03-30 19:21:31 +01:00
Clemente Raposo
d4baf71483 Add ng serve local proxy configuration for api calls 2021-03-30 19:21:31 +01:00
Clemente Raposo
6cc736f623 Add Record GraphQL Api Service
- Add Apollo GraphQL client
- Add Record Query service
- Disable Apollo cache
2021-03-30 19:21:31 +01:00
Ross Moroney
d8d92f42ea Add .gitkeep to public folder 2021-03-30 19:21:31 +01:00
Dillon-Brown
2ff7e1bce4 Update old cli reference and remove unused path constants 2021-03-30 19:21:31 +01:00
Will
41a73d3f03 Add filter and column chooser modals to list view 2021-03-30 19:21:31 +01:00
Dillon-Brown
33a9f0ba3e Update .env to use the Symfony configuration standard 2021-03-30 19:21:31 +01:00
Ross Moroney
d55e1d75a3 Update installion documentation on readme 2021-03-30 19:21:31 +01:00