Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

466 testing gui #548

Open
wants to merge 311 commits into
base: takeoff_develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
311 commits
Select commit Hold shift + click to select a range
b22cfd7
328-create-share-business-logic (#376)
airherna Nov 17, 2022
3e60d3c
List projects for Google Cloud (#378)
airherna Nov 17, 2022
2efbeb0
Added success dialog in init account
econesag Nov 17, 2022
d2df14a
Merge remote-tracking branch 'origin/takeoff_develop' into 327-init-a…
econesag Nov 17, 2022
93fe117
Add import of cloud_provider_id, and reset channel on close
econesag Nov 17, 2022
9d03345
336-clean-share-business-logic (#379)
airherna Nov 18, 2022
a7b9e11
List projects from CLI (#380)
airherna Nov 18, 2022
12e1132
Refactor of home page
econesag Nov 18, 2022
b0e2ae8
Make AutoClosingDialog stateful for dispose timer when testing
econesag Nov 18, 2022
10e2155
Merge remote-tracking branch 'origin/takeoff_develop' into 327-init-a…
econesag Nov 18, 2022
8c44f72
Update enable-firebase.sh
capf4bbo Nov 18, 2022
5756c8d
Setting accounts default value as empty string instead of using null
econesag Nov 18, 2022
b79d18f
Added tests
econesag Nov 18, 2022
8da36b5
Clean project CLI in Google Cloud (#381)
airherna Nov 18, 2022
55948f4
Create in Google Cloud from the CLI (#382)
airherna Nov 18, 2022
aca1ed5
Merge remote-tracking branch 'origin/takeoff_develop' into 327-init-a…
econesag Nov 18, 2022
bfeaea7
Move mockito to dev dependencies
econesag Nov 18, 2022
a21ec89
Merge pull request #384 from devonfw/327-init-account-gui
airherna Nov 18, 2022
635c9b5
Get user accounts at startup and test updated
econesag Nov 18, 2022
1266f6c
Update enable-firebase.sh
capf4bbo Nov 21, 2022
4513538
Docs added
capf4bbo Nov 21, 2022
b6b4c1e
Automatic generation of documentation
capf4bbo Nov 21, 2022
91a2701
Update setup-firebase.sh
capf4bbo Nov 21, 2022
ab73621
Merge branch 'feature/sp4-346-automate-firebase-resources-creation' o…
capf4bbo Nov 21, 2022
d4a946f
Update setup-firebase.asciidoc
capf4bbo Nov 21, 2022
97d9f89
Automatic generation of documentation
capf4bbo Nov 21, 2022
16cd958
Update setup-firebase.sh
capf4bbo Nov 21, 2022
c6960fe
Merge branch 'feature/sp4-346-automate-firebase-resources-creation' o…
capf4bbo Nov 21, 2022
126a21a
Update setup-firebase.asciidoc
capf4bbo Nov 21, 2022
56d5596
Automatic generation of documentation
capf4bbo Nov 21, 2022
7fbd93e
First Steps with create dialog, add color to custom floating button
econesag Nov 21, 2022
82e7ee8
Add reset form when closing
econesag Nov 21, 2022
2b50ea3
update Init updates all cloud providers
econesag Nov 21, 2022
574cc42
Update test
econesag Nov 21, 2022
006bca5
Merge pull request #393 from devonfw/388-check-already-logged-account…
airherna Nov 21, 2022
94aa7ae
Manage language version, add toString method in Language class and re…
econesag Nov 21, 2022
aef8d50
Avoid closing the dialog when clicking outside of it
econesag Nov 21, 2022
8283c37
Merge remote-tracking branch 'origin/takeoff_develop' into 340-create…
econesag Nov 21, 2022
9782ba1
update gitignore to avoid launch.json
econesag Nov 21, 2022
82f05fe
Migrated to cloud subcommands (#395)
airherna Nov 21, 2022
12320ed
Listing projects when call updateInitAccounts
econesag Nov 21, 2022
9ddcb9b
Added package to control minimun screen size
econesag Nov 21, 2022
8740d7f
Added loading page and error page when initializing app
econesag Nov 21, 2022
21ab8d3
Merge pull request #399 from devonfw/338-list-gui
airherna Nov 22, 2022
7a017f5
Merge pull request #400 from devonfw/387-set-minimum-app-widthheight
airherna Nov 22, 2022
2dde55c
Merge pull request #401 from devonfw/385-check-if-docker-is-installed…
airherna Nov 22, 2022
cb8730e
Merge remote-tracking branch 'origin/takeoff_develop' into 340-create…
econesag Nov 22, 2022
b012659
updated language and versiosn
econesag Nov 22, 2022
4841091
Add logout method and refactor getAccount
econesag Nov 22, 2022
b9da309
Add testing
econesag Nov 22, 2022
f7ac1d2
Keystore, sha keys and web map api service
capf4bbo Nov 22, 2022
7263758
Merge branch 'master' into feature/sp4-346-automate-firebase-resource…
capf4bbo Nov 22, 2022
13ac545
Merge pull request #403 from devonfw/391-log-out-lib
airherna Nov 22, 2022
c79471c
Log out from gui
econesag Nov 22, 2022
85d1ff5
Update setup-firebase.sh
capf4bbo Nov 22, 2022
278d89f
377-create-shared-business-logic-finish-the-qa-+-package-pipeline (#398)
airherna Nov 22, 2022
365629d
Add await in logout updateinitAccounts and updated test
econesag Nov 22, 2022
1484788
Merge remote-tracking branch 'origin/takeoff_develop' into 389-log-ou…
econesag Nov 22, 2022
36a0ef4
Removes switch from initAccount and logOut methods from controller in…
econesag Nov 22, 2022
da568c5
Update test and add coverage file and pubspec.lock to gitignore
econesag Nov 22, 2022
01d23a1
Merge remote-tracking branch 'origin/takeoff_develop' into 340-create…
econesag Nov 22, 2022
dec4035
Using enums for cloud and CICD providers
econesag Nov 22, 2022
2b7a240
fix flutter pipelines (#409)
airherna Nov 23, 2022
88afa53
Merge branch 'takeoff_develop' into 389-log-out-gui
airherna Nov 23, 2022
20f581d
Merge pull request #408 from devonfw/389-log-out-gui
airherna Nov 23, 2022
9e59db5
Update scripts/accounts/gcloud/create-project.sh
lpinon Nov 23, 2022
7954a77
Update scripts/accounts/gcloud/setup-firebase.sh
lpinon Nov 23, 2022
4b847a0
Update documentation/src/firebase/setup-firebase.asciidoc
lpinon Nov 23, 2022
10974d5
Automatic generation of documentation
lpinon Nov 23, 2022
d82cab8
Update scripts/accounts/gcloud/setup-firebase.sh
lpinon Nov 23, 2022
d936ec9
Show steps when creating project and open or close the window on erro…
econesag Nov 23, 2022
538053f
Merge remote-tracking branch 'origin/takeoff_develop' into 340-create…
econesag Nov 23, 2022
8ea22c5
Avoid overflow using single child scroll view
econesag Nov 23, 2022
a9725d2
Avoid hide creating project dialog, reset form after open project and…
econesag Nov 23, 2022
45c90d8
Add /mnt directory to root directory in getVolumeMappings
econesag Nov 23, 2022
fc24e4c
Add /mnt to root directory in getVolumeMappings in rancher controller
econesag Nov 23, 2022
f7d1964
Merge pull request #414 from devonfw/407-issue-with-characters-c-in-v…
airherna Nov 23, 2022
3a6143e
Save project on DB only on succesful creation (#413)
airherna Nov 23, 2022
d272e30
verify create form and hide create and quickstart buttons if user is …
econesag Nov 23, 2022
fe59a91
Set onPressed as null instead of hide the button
econesag Nov 23, 2022
de1a135
Update test
econesag Nov 23, 2022
8b58a5d
fixed typo
airherna Nov 23, 2022
0575d5d
Block Create button if using repo and cloud provider different than g…
econesag Nov 23, 2022
c6633f8
Solve hot reload exception when registering singletons
econesag Nov 23, 2022
b5caa08
Merge pull request #415 from devonfw/340-create-gui
airherna Nov 23, 2022
6053e25
332-quick-start-shared-business-logic (#420)
airherna Nov 24, 2022
e321b69
Create quickstart dialog and controller and added images for wayat
econesag Nov 24, 2022
5ba6a65
Support for nerdctl (#422)
airherna Nov 24, 2022
1dcc561
Do not save duplicate projects on Google Cloud cache (#423)
airherna Nov 24, 2022
8962ce3
errors fix
capf4bbo Nov 24, 2022
a1ffb3e
Added form fields in quickstart dialog
econesag Nov 24, 2022
de70afc
Merge remote-tracking branch 'origin/takeoff_develop' into 321-quick-…
econesag Nov 24, 2022
aca47fa
Fix create in containerd with nerdctl (#427)
airherna Nov 24, 2022
73c0222
Refactor of Monitor Dialog and Custom button
econesag Nov 24, 2022
b6afe2e
Merge branch 'takeoff_develop' into 321-quick-start-gui
airherna Nov 24, 2022
f42ed0d
Merge pull request #428 from devonfw/321-quick-start-gui
airherna Nov 24, 2022
7a28734
Avoid listing projects if the list is empty
econesag Nov 24, 2022
6c418b2
Merge pull request #432 from devonfw/429-whitespace-listing-projects
airherna Nov 25, 2022
bb83815
331-run-share-business-logic-cli (#434)
airherna Nov 25, 2022
c3c50fa
Modeled wayat backend script (#437)
airherna Nov 25, 2022
daa4af0
Merge branch 'master' into 402-automate-firebase-resources-creation-v2
lpinon Nov 25, 2022
ba2225d
Set default project
lpinon Nov 25, 2022
77f4549
Hotfix disable not working steps !int
lpinon Nov 28, 2022
c0edb8d
Clean GUI & Run Gui (#439)
econesag Nov 28, 2022
8950229
Rename firebase.json to disable conflicts
lpinon Nov 28, 2022
78a5c44
Change text button
econesag Nov 28, 2022
5522b8a
Added pop up and clean dialog
econesag Nov 28, 2022
ccf0dc3
Merge pull request #446 from devonfw/440-add-dialog-to-confirm-clean
airherna Nov 28, 2022
08d7cf5
Merge pull request #444 from devonfw/436-change-quickstart-form-creat…
airherna Nov 28, 2022
568da76
Create only backend or frontend (#445)
airherna Nov 28, 2022
e21045c
Avoid warning flutter using expanded
econesag Nov 28, 2022
37d5026
Merge branch 'master' into 402-automate-firebase-resources-creation-v2
capf4bbo Nov 28, 2022
0019d5f
Fix for sha keys
capf4bbo Nov 28, 2022
9f5c2d5
Refactor Form inside create
econesag Nov 28, 2022
dbfc8cf
Fix bad state: stdin was already listened to (#447)
airherna Nov 29, 2022
c2dc6f6
Merge branch 'master' into 402-automate-firebase-resources-creation-v2
lpinon Nov 29, 2022
d0ea861
Automatic generation of documentation
lpinon Nov 29, 2022
0c350d5
Merge branch 'master' into 402-automate-firebase-resources-creation-v2
capf4bbo Nov 29, 2022
e5abfa2
Merge branch '402-automate-firebase-resources-creation-v2' of https:/…
capf4bbo Nov 29, 2022
4a901a2
Update setup-firebase.sh
capf4bbo Nov 29, 2022
a960e6d
Refactor Flags Parsing
lpinon Nov 29, 2022
4ec0763
Update setup-firebase.sh
capf4bbo Nov 29, 2022
e19daa9
Merge branch '402-automate-firebase-resources-creation-v2' of https:/…
lpinon Nov 29, 2022
b870f26
Check Firebase CLI if Firebase Project
lpinon Nov 29, 2022
ba697fd
Create Firebase Project using Firebase CLI
lpinon Nov 29, 2022
53b85dc
Merge pull request #451 from devonfw/441-refactor-create-form-by-prov…
airherna Nov 29, 2022
eb00b68
Create Firebase Project using Firebase CLI
lpinon Nov 29, 2022
64a49a5
Delete setup-firebase.asciidoc
lpinon Nov 29, 2022
d6bfed8
Firebase Documentation
lpinon Nov 29, 2022
62077e9
Add Firebase Project flag
lpinon Nov 29, 2022
0288082
Merge branch 'master' into 402-automate-firebase-resources-creation-v2
lpinon Nov 30, 2022
74132ab
Merge branch '402-automate-firebase-resources-creation-v2' of https:/…
capf4bbo Nov 30, 2022
d64f48e
Sprint 1 command's state docs and fix quickstart help (#452)
airherna Nov 30, 2022
d26ddc0
455 business logic folder restructure (#457)
airherna Nov 30, 2022
7f90d45
Remove autogenerated files
econesag Nov 30, 2022
9c9560a
Remove autogenerated files in lib
econesag Nov 30, 2022
fdfc9ca
Updated .gitignore
airherna Nov 30, 2022
e88505e
Merge master into int
github-actions[bot] Nov 30, 2022
291362c
Merge feature/201_Automatic_Setup_QA_engine_in_Google_Cloud into int
github-actions[bot] Nov 30, 2022
8915708
gke-setup
mcerverc Nov 30, 2022
c7cdf39
Update setup-firebase.asciidoc
lpinon Nov 30, 2022
f94d814
!int
ultymatom Nov 30, 2022
b0e428c
Merge feature/tmp/manage_secret_merge_int into int
github-actions[bot] Nov 30, 2022
8b0da30
!int
ultymatom Nov 30, 2022
8f0baae
Merge branch 'master' into 402-automate-firebase-resources-creation-v2
lpinon Nov 30, 2022
06f67d0
!int
ultymatom Nov 30, 2022
dca150c
Merge feature/tmp/gke-deploy_merge_int into int
github-actions[bot] Nov 30, 2022
10f7295
!int
lpinon Nov 30, 2022
103abbe
Merge branch '402-automate-firebase-resources-creation-v2' into int
lpinon Nov 30, 2022
ce877c4
Quickstart Scripts
lpinon Nov 30, 2022
10e64e9
Merge branch 'feature/quickstart-backend-wayat' into int
lpinon Nov 30, 2022
646ffa3
Quickstart Frontend
lpinon Nov 30, 2022
c8fc929
Merge branch 'feature/quickstart-frontend-wayat' into int
lpinon Nov 30, 2022
f55c51a
Fix creation service account
lpinon Nov 30, 2022
4a707df
Update scripts/quickstart/gcloud/quickstart-wayat-frontend.sh
capf4bbo Dec 1, 2022
60df356
Update cors
capf4bbo Dec 1, 2022
c32d782
Update quickstart-wayat-frontend.sh
capf4bbo Dec 1, 2022
6df0529
Merge branch 'feature/quickstart-frontend-wayat' into int
lpinon Dec 1, 2022
c340c9d
Merge master into int
github-actions[bot] Dec 1, 2022
2a72624
Add Cors step
lpinon Dec 1, 2022
f47eed0
Merge branch 'feature/quickstart-frontend-wayat' into int
lpinon Dec 1, 2022
68cb9e5
Fix unix line ending
lpinon Dec 1, 2022
d7b1422
Merge branch 'feature/quickstart-frontend-wayat' into int
lpinon Dec 1, 2022
5ebf353
Merge branch 'master' into feature/quickstart-frontend-wayat
lpinon Dec 1, 2022
3a31f69
Merge master into int
github-actions[bot] Dec 1, 2022
01b56bd
Merge master into int
github-actions[bot] Dec 1, 2022
495b6ce
resolve miguel conflicts
Jorge-Dacal Dec 1, 2022
5a8c925
Merge branch 'int' of https://github.com/devonfw/hangar into int
Jorge-Dacal Dec 1, 2022
d337e57
Fixed FrontendURL for CORS
lpinon Dec 1, 2022
d1be739
Merge branch 'feature/quickstart-frontend-wayat' into int
lpinon Dec 1, 2022
5e0a73c
Added GuiMessage to domain an its dependencies
econesag Dec 1, 2022
767467f
fix quickstart export and resolved merge conflicts
Jorge-Dacal Dec 1, 2022
68d24dd
Merge branch 'int' of https://github.com/devonfw/hangar into int
Jorge-Dacal Dec 1, 2022
16951df
Add infoStream and inputStream to comunicate GUI and Logic
econesag Dec 1, 2022
53007b3
Merge pull request #474 from devonfw/458-dynamic-dialog-when-monitori…
airherna Dec 1, 2022
5d2e7bb
Merge master into int
github-actions[bot] Dec 1, 2022
626f93d
recover ! in if of deploy-cloud-run-setup-environment.sh and add . or…
Jorge-Dacal Dec 2, 2022
382d5ac
Merge branch 'int' of https://github.com/devonfw/hangar into int
Jorge-Dacal Dec 2, 2022
656177f
add endline in file package-setup-environment.sh
Jorge-Dacal Dec 2, 2022
911a2c8
add doblequotes to the sed commands in setupPackageName in quickstart…
Jorge-Dacal Dec 2, 2022
687ead7
Merge remote-tracking branch 'origin/int' into takeoff_develop
airherna Dec 2, 2022
53a62d1
Add buttons to access to GUI resources
serhiibets Dec 2, 2022
2e95a4e
Add _launchUrl
serhiibets Dec 7, 2022
38293ce
Update pubspec.yaml
serhiibets Dec 7, 2022
b66d02e
add test url links
serhiibets Dec 7, 2022
293f25f
Change url
serhiibets Dec 9, 2022
c44435b
Update url
serhiibets Dec 9, 2022
b705f54
Fix issues of reviewer
serhiibets Dec 12, 2022
a88497f
Fix issues of reviewer
serhiibets Dec 12, 2022
4d54004
Fixed issues of reviewer
serhiibets Dec 13, 2022
a40028a
modified error loading page
josuecapgemini Dec 13, 2022
e20808e
Delete url_launcher from lib
serhiibets Dec 13, 2022
503eee2
Changed error message and text alignment
airherna Dec 13, 2022
8043b3f
Add url_launcher to GUI
serhiibets Dec 13, 2022
4b944da
Merge pull request #493 from devonfw/460-calm-down-the-docker-not-run…
airherna Dec 13, 2022
f4ed2ca
Merge remote-tracking branch 'origin/takeoff_develop' into 324-access…
airherna Dec 13, 2022
be82403
471 Finish Quickstart and fix issues with GUI communication (#478)
airherna Dec 14, 2022
6936d54
Fixed UI issues
serhiibets Dec 14, 2022
ec9c252
Merge branch 'takeoff_develop' into 324-access-resources-gui
serhiibets Dec 14, 2022
b0864e3
Fix IDE url
serhiibets Dec 14, 2022
84317cd
Update link
serhiibets Dec 14, 2022
9dfbe40
Merge pull request #482 from devonfw/324-access-resources-gui
airherna Dec 14, 2022
78c20a6
467 testing lib (#490)
josuecapgemini Dec 14, 2022
dfd3370
465 multi language support (#500)
josuecapgemini Dec 16, 2022
dae65a1
add error_loading_test
serhiibets Dec 19, 2022
e025e97
add icon_text_button test
serhiibets Dec 19, 2022
56e4852
add loading_page test
serhiibets Dec 19, 2022
5ca4ae6
325 access resources cli (#499)
serhiibets Dec 20, 2022
4b3d111
Hangar image addition (#518)
capf4bbo Dec 20, 2022
b6233c0
392 mouse wheel scroll (#511)
josuecapgemini Dec 20, 2022
9e82083
Fix url and app icon added (#519)
capf4bbo Dec 20, 2022
9c33833
Merge branch 'takeoff_develop' of https://github.com/devonfw/hangar i…
serhiibets Dec 21, 2022
643330e
Merge branch 'takeoff_develop' into 466-testing-gui
serhiibets Dec 21, 2022
d3586a0
Merge branch 'takeoff_develop' of https://github.com/devonfw/hangar i…
serhiibets Dec 22, 2022
c93a12a
Merge branch 'takeoff_develop' into 466-testing-gui
serhiibets Dec 22, 2022
092dceb
Merge branch 'takeoff_develop' of https://github.com/devonfw/hangar i…
serhiibets Dec 26, 2022
4fed43e
Merge branch 'takeoff_develop' of https://github.com/devonfw/hangar i…
serhiibets Dec 26, 2022
f890a07
Merge branch 'takeoff_develop' of https://github.com/devonfw/hangar i…
serhiibets Dec 26, 2022
9c0d59e
Merge branch 'takeoff_develop' of https://github.com/devonfw/hangar i…
serhiibets Dec 26, 2022
8e4ad36
Merge branch 'takeoff_develop' of https://github.com/devonfw/hangar i…
serhiibets Dec 27, 2022
6d5dcb5
Merge branch 'takeoff_develop' into 466-testing-gui
serhiibets Dec 27, 2022
24c4d9d
Merge branch 'takeoff_develop' of https://github.com/devonfw/hangar i…
serhiibets Dec 27, 2022
b9eb2b1
Merge branch 'takeoff_develop' into 466-testing-gui
serhiibets Dec 27, 2022
f305c0d
Merge branch 'takeoff_develop' of https://github.com/devonfw/hangar i…
serhiibets Dec 28, 2022
393f12f
Merge branch 'takeoff_develop' into 466-testing-gui
serhiibets Dec 28, 2022
79d9f22
Move files to common folder
serhiibets Dec 28, 2022
b2fdda5
Add project_detailes tests
serhiibets Dec 28, 2022
ab7e3db
Merge branch 'takeoff_develop' of https://github.com/devonfw/hangar i…
serhiibets Dec 28, 2022
afc3471
Merge branch 'takeoff_develop' into 466-testing-gui
serhiibets Dec 28, 2022
08c4919
Fixed tests in project_detailes.dart
serhiibets Dec 28, 2022
ada54b3
Add clean_dialog tests
serhiibets Dec 28, 2022
f4f0437
Commit
serhiibets Dec 28, 2022
a208ccc
Fixed google form region test
airherna Dec 28, 2022
05ed035
Add create controller tests
serhiibets Dec 29, 2022
2e4c456
Add create_dialog tests
serhiibets Dec 29, 2022
d858340
Add google_form_controller tests
serhiibets Dec 29, 2022
bae7add
Ignore
serhiibets Dec 29, 2022
eba08a2
Add create_message tests
serhiibets Dec 29, 2022
4d6f860
Add quickstart_controller test
serhiibets Dec 29, 2022
864886e
Ignore
serhiibets Dec 29, 2022
37de896
Add quickstart_dialog tests
serhiibets Dec 29, 2022
b270391
Add monitor_controller tests
serhiibets Dec 29, 2022
8d799b1
Add user_interaction tests
serhiibets Dec 29, 2022
f2df136
Fix test error
serhiibets Dec 29, 2022
1856bcc
Add file generate_coverage
serhiibets Dec 29, 2022
4e3a23b
Add tests to monitorController
serhiibets Dec 30, 2022
1f57d7f
Add tests to repo_selector
serhiibets Dec 30, 2022
f2f7b41
Clean unused libraries
serhiibets Dec 30, 2022
901a131
Add tests to monitor_dialog
serhiibets Dec 30, 2022
3ab4ef0
revert createProject changes
airherna Jan 2, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file modified scripts/accounts/gcloud/setup-firebase.sh
100755 → 100644
Empty file.
Empty file modified scripts/pipelines/common/templates/package/flutter-package.sh
100755 → 100644
Empty file.
Empty file modified scripts/pipelines/gcloud/pipeline_generator.sh
100755 → 100644
Empty file.
Empty file.
8 changes: 8 additions & 0 deletions takeoff/takeoff_gui/generate_coverage.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
flutter clean
flutter pub get
flutter pub run build_runner build --delete-conflicting-outputs
flutter test --coverage
remove_from_coverage -f coverage/lcov.info -r '.g.dart$'
remove_from_coverage -f coverage/lcov.info -r '_libw.dart$'
remove_from_coverage -f coverage/lcov.info -r 'options.dart$'
remove_from_coverage -f coverage/lcov.info -r 'mock_projects.dart$'
12 changes: 3 additions & 9 deletions takeoff/takeoff_gui/lib/common/custom_button.dart
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,15 @@ class CustomButton extends StatelessWidget {

@override
Widget build(BuildContext context) {
return ElevatedButton(
return ElevatedButton.icon(
onPressed: onPressed == null ? null : () => onPressed!(),
style: ElevatedButton.styleFrom(
backgroundColor: color,
minimumSize: const Size(150, 50),
maximumSize: const Size(170, 50),
),
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Icon(icon),
const SizedBox(width: 10),
Text(text),
],
),
icon: Icon(icon),
label: Text(text),
);
}
}
31 changes: 17 additions & 14 deletions takeoff/takeoff_gui/lib/common/monitor/pages/monitor_dialog.dart
Original file line number Diff line number Diff line change
Expand Up @@ -30,20 +30,22 @@ class MonitorDialog extends StatelessWidget {
child: Column(
children: [
Observer(
builder: (_) => Row(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: [
Text(
controller.hasFinished
? AppLocalizations.of(context)!
.projectCreationFinishedMessage
: AppLocalizations.of(context)!
.creatingProjectMessage,
style: const TextStyle(fontSize: 30)),
if (!controller.hasFinished)
const CircularProgressIndicator(),
],
),
builder: (_) => SizedBox(
//mainAxisAlignment: MainAxisAlignment.spaceEvenly,
child: controller.hasFinished
? Text(
AppLocalizations.of(context)!
.projectCreationFinishedMessage,
style: const TextStyle(fontSize: 30))
: Row(
children: [
Text(
AppLocalizations.of(context)!
.creatingProjectMessage,
style: const TextStyle(fontSize: 30)),
const CircularProgressIndicator(),
],
)),
),
const SizedBox(height: 50),
SizedBox(
Expand Down Expand Up @@ -98,6 +100,7 @@ class MonitorDialog extends StatelessWidget {
});
}

@visibleForTesting
_generateDialog(GuiMessage message, BuildContext context) {
switch (message.type) {
case MessageType.info:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,11 @@ class _UserInteractionDialogState extends State<UserInteractionDialog> {
padding: const EdgeInsets.symmetric(horizontal: 30.0),
child: SingleChildScrollView(
child: Column(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: [
Row(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: [
Text(
AppLocalizations.of(context)!.followStepsMessage,
style: const TextStyle(fontSize: 30),
),
],
Text(
AppLocalizations.of(context)!.followStepsMessage,
style: const TextStyle(fontSize: 30),
),
const SizedBox(height: 50),
SelectableText(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ abstract class _CreateController with Store {
repoProvider = CloudProvidersComb.cicd[cloudProvider]![0];
}

void createProject() async {
void createProject() {
monitorController.monitorProcess(() async => formController.create(
backendLanguage: backendLanguage,
backendVersion: backendVersion,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,33 +50,25 @@ class GoogleForm extends StatelessWidget {
],
),
const SizedBox(height: 15),
Row(
children: [
Expanded(
child: Observer(builder: (_) {
if (controller.region.isEmpty) {
controller.region = googleCloudRegions.first;
}
Observer(builder: (_) {
if (controller.region.isEmpty) {
controller.region = googleCloudRegions.first;
}

return DropdownButtonFormField(
decoration: InputDecoration(
label: Text(AppLocalizations.of(context)!.region),
border: const OutlineInputBorder(),
),
items: googleCloudRegions
.map((e) => DropdownMenuItem(
value: e,
child: Text(e),
))
.toList(),
value: controller.region,
onChanged: (value) => controller.region = value!);
}),
),
const SizedBox(width: 20),
Expanded(child: Container()),
],
),
return DropdownButtonFormField(
decoration: InputDecoration(
label: Text(AppLocalizations.of(context)!.region),
border: const OutlineInputBorder(),
),
items: googleCloudRegions
.map((e) => DropdownMenuItem(
value: e,
child: Text(e),
))
.toList(),
value: controller.region,
onChanged: (value) => controller.region = value!);
}),
],
);
}
Expand Down
30 changes: 16 additions & 14 deletions takeoff/takeoff_gui/lib/features/details/pages/project_details.dart
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,22 @@ class ProjectDetails extends StatelessWidget {
body: Row(
children: [
SideBar(),
Padding(
padding: const EdgeInsets.all(20.0),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
// TODO add dropdown to select project here
const SizedBox(height: 40),
Text(
"${project.name} ${AppLocalizations.of(context)!.projectResources}",
style: const TextStyle(fontSize: 30),
),
const SizedBox(height: 40),
ResourceDetails(),
],
Expanded(
child: Padding(
padding: const EdgeInsets.all(20.0),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
// TODO add dropdown to select project here
const SizedBox(height: 40),
Text(
"${project.name} ${AppLocalizations.of(context)!.projectResources}",
style: const TextStyle(fontSize: 30),
),
const SizedBox(height: 40),
ResourceDetails(),
],
),
),
)
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class CleanDialog extends StatelessWidget {
backgroundColor: Colors.red.shade200,
title: Text(
AppLocalizations.of(context)!.removeProject,
style: TextStyle(fontSize: 30),
style: const TextStyle(fontSize: 30),
),
content: SingleChildScrollView(
child: Padding(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,13 @@ abstract class _QuickstartController with Store {
@computed
bool get isValidForm => billingAccount.isNotEmpty && region.isNotEmpty;

void createWayat() {
monitorController.monitorProcess(() async => await facade.quickstartWayat(
billingAccount: billingAccount,
googleCloudRegion: region,
outputStream: monitorController.outputChannel,
inputStream: monitorController.inputChannel));
Future<void> createWayat() async {
await monitorController.monitorProcess(() async =>
await facade.quickstartWayat(
billingAccount: billingAccount,
googleCloudRegion: region,
outputStream: monitorController.outputChannel,
inputStream: monitorController.inputChannel));
}

@action
Expand Down
39 changes: 39 additions & 0 deletions takeoff/takeoff_gui/test/common/error_loading_test.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:flutter_gen/gen_l10n/app_localizations.dart';
import 'package:takeoff_gui/common/error_loading_page.dart';

// @GenerateMocks([ClassToMock])
void main() async {
setUpAll(() async {});

Widget createApp(Widget body) {
return MaterialApp(
onGenerateTitle: (context) => AppLocalizations.of(context)!.appTitle,
localizationsDelegates: AppLocalizations.localizationsDelegates,
supportedLocales: AppLocalizations.supportedLocales,
localeResolutionCallback:
(Locale? locale, Iterable<Locale> supportedLocales) {
for (Locale supportedLocale in supportedLocales) {
if (supportedLocale.languageCode == locale?.languageCode) {
return supportedLocale;
}
}
return const Locale("en", "US");
},
home: Scaffold(
body: body,
),
);
}

testWidgets('Widget error widget', (tester) async {
// Avoid overflow due to test conditions
FlutterError.onError = null;
String messageText = "TestText";
IconData icon = Icons.warning_amber_outlined;
await tester.pumpWidget(createApp(ErrorLoadingPage(message: messageText)));
expect(find.text(messageText), findsOneWidget);
expect(find.byIcon(icon), findsOneWidget);
});
}
52 changes: 52 additions & 0 deletions takeoff/takeoff_gui/test/common/icon_text_button_test.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:takeoff_gui/common/icon_text_button.dart';
import 'package:flutter_gen/gen_l10n/app_localizations.dart';

// @GenerateMocks([ClassToMock])
void main() async {
setUpAll(() async {});

Widget createApp(Widget body) {
return MaterialApp(
onGenerateTitle: (context) => AppLocalizations.of(context)!.appTitle,
localizationsDelegates: AppLocalizations.localizationsDelegates,
supportedLocales: AppLocalizations.supportedLocales,
localeResolutionCallback:
(Locale? locale, Iterable<Locale> supportedLocales) {
for (Locale supportedLocale in supportedLocales) {
if (supportedLocale.languageCode == locale?.languageCode) {
return supportedLocale;
}
}
return const Locale("en", "US");
},
home: Scaffold(
body: body,
),
);
}

testWidgets('Widget test', (tester) async {
// Avoid overflow due to test conditions
FlutterError.onError = null;
String buttonText = "TestText";
IconData icon = Icons.account_circle;
await tester.pumpWidget(createApp(
IconTextButton(
text: buttonText,
icon: icon,
onPressed: () => true,
),
));
await tester.pumpWidget(createApp(IconTextButton(
icon: icon,
text: buttonText,
)));

await tester.pumpAndSettle();

expect(find.text(buttonText), findsOneWidget);
expect(find.byIcon(icon), findsOneWidget);
});
}
42 changes: 42 additions & 0 deletions takeoff/takeoff_gui/test/common/loading_page_test.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:flutter_gen/gen_l10n/app_localizations.dart';
import 'package:takeoff_gui/common/loading_page.dart';

// @GenerateMocks([ClassToMock])
void main() async {
setUpAll(() async {});

Widget createApp(Widget body) {
return MaterialApp(
onGenerateTitle: (context) => AppLocalizations.of(context)!.appTitle,
localizationsDelegates: AppLocalizations.localizationsDelegates,
supportedLocales: AppLocalizations.supportedLocales,
localeResolutionCallback:
(Locale? locale, Iterable<Locale> supportedLocales) {
for (Locale supportedLocale in supportedLocales) {
if (supportedLocale.languageCode == locale?.languageCode) {
return supportedLocale;
}
}
return const Locale("en", "US");
},
home: Scaffold(
body: body,
),
);
}

testWidgets('Widget loading page', (tester) async {
// Avoid overflow due to test conditions
String text =
"Launching the app, please while checking the requirements...";
ImageProvider image = const AssetImage("assets/gifs/rocket.gif");
await tester.pumpWidget(createApp(LoadingPage(
message: text,
)));
expect(find.text(text), findsOneWidget);
expect(find.byType(Image), findsOneWidget);
expect(find.widgetWithImage(Image, image), findsNothing);
});
}
Loading