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

Admin UI: Initialize flutter setup #547

Merged
merged 81 commits into from
Mar 15, 2024
Merged
Show file tree
Hide file tree
Changes from 65 commits
Commits
Show all changes
81 commits
Select commit Hold shift + click to select a range
e48cd9e
chore: update settings.json with dart
jkoenig134 Mar 1, 2024
8ad5759
chore: add readme
jkoenig134 Mar 1, 2024
9a1f744
fix: git-un-ignore adminui packages
jkoenig134 Mar 1, 2024
5835aae
chore: add initial flutter setup
jkoenig134 Mar 1, 2024
26df68b
feat: add adminui boilerplate
jkoenig134 Mar 1, 2024
9688c01
feat: add types
jkoenig134 Mar 4, 2024
72daa75
feat: add sdk
jkoenig134 Mar 4, 2024
47da926
feat: use client in the app
jkoenig134 Mar 4, 2024
720bfe3
Merge branch 'main' into initialize-flutter-setup
jkoenig134 Mar 4, 2024
6b261dc
chore: move AdminUI to AdminUI folder
jkoenig134 Mar 4, 2024
54998f8
fix: allow internet access for the mac app
jkoenig134 Mar 4, 2024
2e5b782
chore: add setup for configs
jkoenig134 Mar 4, 2024
3eaa919
feat: async creation of client
jkoenig134 Mar 4, 2024
cddccab
chore: update mac icons
jkoenig134 Mar 4, 2024
8606528
chore: change name from admin_ui to AdminUI
jkoenig134 Mar 4, 2024
50d21f1
feat: add window_size plugin
jkoenig134 Mar 4, 2024
a614f0b
fix: use empty baseurl for web
jkoenig134 Mar 4, 2024
e0594bc
feat: add shared preferences
jkoenig134 Mar 4, 2024
81b401b
feat: add routing
jkoenig134 Mar 4, 2024
f7d3e1d
feat: add packages
jkoenig134 Mar 5, 2024
37d7c18
chore: move AdminUI to AdminUi
jkoenig134 Mar 5, 2024
cae35d2
chore: add packages
jkoenig134 Mar 5, 2024
8a9ef0e
chore: move stuff
jkoenig134 Mar 5, 2024
469fd84
chore: ignore again
jkoenig134 Mar 5, 2024
f711191
chore: simplify logout
jkoenig134 Mar 5, 2024
d464b7f
chore: make more readable
jkoenig134 Mar 5, 2024
a793989
fix: check for api key validity
jkoenig134 Mar 5, 2024
1c8d2eb
chore: do not copy code from go_router package
jkoenig134 Mar 6, 2024
102ba3a
fix: use enmeshed logo as svg
jkoenig134 Mar 6, 2024
5081147
chore: update default window size on macos
jkoenig134 Mar 6, 2024
5005f9f
chore: yeet unused launch config
jkoenig134 Mar 6, 2024
2a3b071
chore: update extensions
jkoenig134 Mar 6, 2024
e84b073
fix: obscure text in pw field
jkoenig134 Mar 6, 2024
b45d89b
chore: add tier get and delete endpoints
stamenione Mar 7, 2024
e1046ee
feat: add quota types and endpoints
stamenione Mar 7, 2024
6155b6c
feat: add quota endpoint
stamenione Mar 7, 2024
9075977
chore format
stamenione Mar 7, 2024
125339d
wip
stamenione Mar 7, 2024
e9545b6
chore: wip
stamenione Mar 11, 2024
657b383
chore: update identity
stamenione Mar 11, 2024
e892d34
chore: update, change method name and type
stamenione Mar 11, 2024
b7603cf
chore: remove unnecessary imports
stamenione Mar 11, 2024
907a25d
feat: add relationships type and endpoint
stamenione Mar 11, 2024
4f287a0
ci: move runAdminUiChecks to aui folder and rename it to runChecks
tnotheis Mar 12, 2024
e390cad
ci: add and execute runFlutterChecks script
tnotheis Mar 12, 2024
6a1546e
ci: rename flutter checks jobs
tnotheis Mar 12, 2024
a491947
ci: use correct script folder and name
tnotheis Mar 12, 2024
bec89fd
chore: simplify relationship type
stamenione Mar 12, 2024
6e39051
chore: finalize identities odata
stamenione Mar 12, 2024
6485868
chore: add separate get and make result for odata
stamenione Mar 12, 2024
7b06a38
chore: comment now follows flutter style to-do
stamenione Mar 12, 2024
464ac93
chore: simplify relationship endpoint
stamenione Mar 12, 2024
798dbd2
chore: show the results of getting the data
stamenione Mar 12, 2024
ef2531a
ci: trigger pipelines
stamenione Mar 12, 2024
38cdc9f
Merge branch 'main' into initialize-flutter-setup
mergify[bot] Mar 12, 2024
c4f703e
chore: add some basic pagination
stamenione Mar 12, 2024
4fb84e7
chore: add filtering for odata
stamenione Mar 13, 2024
8f75993
chore: add filtering example
stamenione Mar 13, 2024
dd20bb7
chore: export identity overview filter
stamenione Mar 13, 2024
56f3ca8
fix: syntax
stamenione Mar 13, 2024
29a8cdd
chore: bump melos
jkoenig134 Mar 13, 2024
f1a52f0
chore: use builtin melos analyze command
jkoenig134 Mar 13, 2024
4b29f8d
refactor: identities
stamenione Mar 14, 2024
5835d2c
chore: add types to dependencies
stamenione Mar 14, 2024
db23f64
refactor: move enum
stamenione Mar 14, 2024
41d0956
chore: rename parameters
stamenione Mar 14, 2024
6eccccb
feat: add identity overview
stamenione Mar 14, 2024
cd13b87
Merge branch 'main' into initialize-flutter-setup
mergify[bot] Mar 14, 2024
2383aa8
Merge branch 'main' into initialize-flutter-setup
mergify[bot] Mar 14, 2024
438136b
Merge branch 'main' into initialize-flutter-setup
mergify[bot] Mar 14, 2024
adab77a
Merge branch 'initialize-flutter-setup' of https://github.com/nmshd/b…
stamenione Mar 15, 2024
5e24680
chore: display only identity overview
stamenione Mar 15, 2024
f1bdfcb
chore: add trailing comma and add named parameter
stamenione Mar 15, 2024
ba70a09
Merge branch 'main' into initialize-flutter-setup
mergify[bot] Mar 15, 2024
3cfff17
refactor: use port 8082 for local testing
jkoenig134 Mar 15, 2024
11a38fd
chore: remove UI code
jkoenig134 Mar 15, 2024
863311d
fix: make pagination usable
jkoenig134 Mar 15, 2024
f8dae37
chore: remove comment
jkoenig134 Mar 15, 2024
722629e
fix: early return
jkoenig134 Mar 15, 2024
391f102
refactor: make pretty
jkoenig134 Mar 15, 2024
32697ac
chore: remove unused file
jkoenig134 Mar 15, 2024
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
1 change: 1 addition & 0 deletions .ci/runAdminUiChecks.sh → .ci/aui/runChecks.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/bin/bash
set -e
set -x

Expand Down
9 changes: 9 additions & 0 deletions .ci/aui/runFlutterChecks.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash
set -e
set -x

cd AdminUi
dart pub global activate melos
melos bootstrap
melos analyze
melos format
13 changes: 12 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,18 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Run Checks
run: ./.ci/runAdminUiChecks.sh
run: ./.ci/aui/runChecks.sh

run-adminUi-flutter-checks:
runs-on: ubuntu-latest
name: Run Admin UI Flutter Checks
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Flutter
uses: subosito/[email protected]
- name: Run checks
run: ./.ci/aui/runFlutterChecks.sh

check-formatting:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -366,3 +366,6 @@ dist
# feature.cs files are generated by the build process and should not be committed to source control
**/*.feature.cs
**/SpecFlow/

# flutter
!AdminUi/packages/*
2 changes: 1 addition & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"recommendations": ["ms-azuretools.vscode-docker", "ms-dotnettools.csdevkit"]
"recommendations": ["ms-azuretools.vscode-docker", "Dart-Code.flutter", "Dart-Code.dart-code"]
}
14 changes: 5 additions & 9 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,11 @@
"version": "0.2.0",
"configurations": [
{
"name": "Attach to Consumer API (Docker)",
"type": "docker",
"request": "attach",
"platform": "netCore",
"sourceFileMap": {
"/app": "${workspaceFolder}"
},
"containerName": "consumerApi",
"processName": "ConsumerApi"
"name": "Launch current dart file",
"request": "launch",
"type": "dart",
"toolArgs": ["--dart-define-from-file=${workspaceFolder}/AdminUI/config.json"],
"templateFor": ""
}
]
}
7 changes: 6 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,10 @@
"editor.codeActionsOnSave": {
"source.organizeImports": "explicit"
},
"files.eol": "\n"
"files.eol": "\n",
"dart.lineLength": 150,
"[dart]": {
"editor.defaultFormatter": "Dart-Code.dart-code",
"editor.rulers": [150]
}
}
9 changes: 9 additions & 0 deletions AdminUi/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
pubspec_overrides.yaml
.dart_tool
build
.flutter-plugins
.flutter-plugins-dependencies
.DS_Store

# config.json for connecting to the admin api
config.json
35 changes: 35 additions & 0 deletions AdminUi/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Admin UI

## Development Guide

### Prerequisites

- [Flutter](https://flutter.dev/docs/get-started/install) (we are using the `stable` channel)
- [melos](https://melos.invertase.dev/getting-started)

TLDR: `dart pub global activate melos`

Make sure to [add the system cache bin directory to your path](https://dart.dev/tools/pub/cmd/pub-global#running-a-script-from-your-path) (`$HOME/.pub-cache/bin` for mac and linux and `%LOCALAPPDATA%\Pub\Cache\bin` for most Windows versions).

### Getting Started

Run `melos bootstrap` to [install and link dependencies](https://melos.invertase.dev/commands/bootstrap) in all packages and apps.

### Melos scripts

For an overview of all available melos scripts, run `melos run` or `melos run --help`.

### Configuration

Create a file `AdminUI/config.json` with the following content:

```json
{
"BASE_URL": "...",
"API_KEY": "..."
}
```

This configuration is automatically used when using the VSCode tooling (run / debug buttons).

For building and running the app from the command line, you can use the `--dart-define-from-file=<path-to-file>` flag.
9 changes: 9 additions & 0 deletions AdminUi/analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
include: package:very_good_analysis/analysis_options.yaml

linter:
rules:
lines_longer_than_80_chars: false
sort_constructors_first: false
public_member_api_docs: false
always_use_package_imports: false
avoid_setters_without_getters: false
43 changes: 43 additions & 0 deletions AdminUi/apps/admin_ui/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Miscellaneous
*.class
*.log
*.pyc
*.swp
.DS_Store
.atom/
.buildlog/
.history
.svn/
migrate_working_dir/

# IntelliJ related
*.iml
*.ipr
*.iws
.idea/

# The .vscode folder contains launch configuration and tasks you configure in
# VS Code which you may wish to be included in version control, so this line
# is commented out by default.
#.vscode/

# Flutter/Dart/Pub related
**/doc/api/
**/ios/Flutter/.last_build_id
.dart_tool/
.flutter-plugins
.flutter-plugins-dependencies
.pub-cache/
.pub/
/build/

# Symbolication related
app.*.symbols

# Obfuscation related
app.*.map.json

# Android Studio will place build artifacts here
/android/app/debug
/android/app/profile
/android/app/release
36 changes: 36 additions & 0 deletions AdminUi/apps/admin_ui/.metadata
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# This file tracks properties of this Flutter project.
# Used by Flutter tool to assess capabilities and perform upgrades etc.
#
# This file should be version controlled and should not be manually edited.

version:
revision: "abb292a07e20d696c4568099f918f6c5f330e6b0"
channel: "stable"

project_type: app

# Tracks metadata for the flutter migrate command
migration:
platforms:
- platform: root
create_revision: abb292a07e20d696c4568099f918f6c5f330e6b0
base_revision: abb292a07e20d696c4568099f918f6c5f330e6b0
- platform: macos
create_revision: abb292a07e20d696c4568099f918f6c5f330e6b0
base_revision: abb292a07e20d696c4568099f918f6c5f330e6b0
- platform: web
create_revision: abb292a07e20d696c4568099f918f6c5f330e6b0
base_revision: abb292a07e20d696c4568099f918f6c5f330e6b0
- platform: windows
create_revision: abb292a07e20d696c4568099f918f6c5f330e6b0
base_revision: abb292a07e20d696c4568099f918f6c5f330e6b0

# User provided section

# List of Local paths (relative to this file) that should be
# ignored by the migrate tool.
#
# Files that are not part of the templates will be ignored by default.
unmanaged_files:
- 'lib/main.dart'
- 'ios/Runner.xcodeproj/project.pbxproj'
3 changes: 3 additions & 0 deletions AdminUi/apps/admin_ui/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# admin_ui

The Enmeshed Backbone Admin UI.
1 change: 1 addition & 0 deletions AdminUi/apps/admin_ui/analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
include: ../../analysis_options.yaml
Binary file added AdminUi/apps/admin_ui/assets/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions AdminUi/apps/admin_ui/assets/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added AdminUi/apps/admin_ui/assets/mac-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading