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

[WIP] [POC] Unified push notifications #80

Open
wants to merge 85 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
85 commits
Select commit Hold shift + click to select a range
364934a
feat: Initialize dart project (#2)
jonas-martinez May 30, 2022
de13f68
feat: Added api, error, page boilerplate (#3)
jonas-martinez May 30, 2022
997a70f
feat: Removed useless files (#4)
jonas-martinez May 30, 2022
4a1a78f
test: Add tests for API (#5)
jonas-martinez May 31, 2022
f4bebaf
feat: Add views (#11)
jonas-martinez Jun 1, 2022
14cc3e3
feat: Add missing views (#12)
jonas-martinez Jun 1, 2022
9043629
feat: Handle navigation (#8)
jonas-martinez Jun 1, 2022
c651940
fix: Fix flutter analyze (#14)
jonas-martinez Jun 1, 2022
4732e72
chore: Add vscode config (#15)
jonas-martinez Jun 1, 2022
503c6f1
feat: Added 404 error page
jonas-martinez Jun 3, 2022
c1cfb4a
feat: Add assets (#16)
jonas-martinez Jun 3, 2022
f2d4bb2
feat: Add fonts (#17)
jonas-martinez Jun 3, 2022
52fcb7e
feat: Remove app specific files (#18)
jonas-martinez Jun 7, 2022
5be8004
feat: Add test helpers (#19)
jonas-martinez Jun 7, 2022
22e2218
feat: Remove LenraChannel (#21)
jonas-martinez Jun 10, 2022
985819a
docs: Update README (#22)
jonas-martinez Jun 13, 2022
e3e22db
feat: Add flutter and lint_pr CI (#7)
jonas-martinez Jun 13, 2022
605a34a
ci: Add Semantic Release (#23)
jonas-martinez Jun 13, 2022
7df5df3
ci: Add .releaserc.yml (#25)
jonas-martinez Jun 13, 2022
df6c947
test: Add page_guard test
jonas-martinez Jun 14, 2022
ac5a4c4
test: Add views tests
jonas-martinez Jun 14, 2022
6ab18ff
ci: Add create_or_update_pr (#26)
jonas-martinez Jun 14, 2022
770d51c
ci: Add on_release (#27)
jonas-martinez Jun 14, 2022
441f098
fix: assets link
jonas-martinez Jun 14, 2022
b9fe229
ci: Fix on_release
jonas-martinez Jun 14, 2022
69e64a6
chore: Clean some file that should not have been pushed (#30)
Nesqwik Jul 5, 2022
b9443f7
feat: Better error handling (#29)
jonas-martinez Jul 12, 2022
e49851e
feat: Access token is now in headers (#33)
jonas-martinez Jul 22, 2022
cccb8b9
fix: ApiError parsing (#34)
jonas-martinez Jul 25, 2022
7e64d09
feat: Update dependencies (#35)
jonas-martinez Aug 1, 2022
24a2985
docs: Better documentation (#36)
jonas-martinez Aug 3, 2022
e540673
feat: Update CGU to match server changes
ClementGld Aug 3, 2022
89592c7
docs: MIT License & Better README (#32)
jonas-martinez Aug 5, 2022
7cb50a2
ci: Add Alpha Release (#38)
jonas-martinez Aug 16, 2022
5e504a3
ci: Generate and deploy doc (#39)
jonas-martinez Aug 16, 2022
6bdae77
feat: Remove lenra_ui_runner dependency (#40)
jonas-martinez Aug 19, 2022
91d6a66
ci: change version of setup-yq to stable
shiipou Aug 29, 2022
fc2dad9
ci: Fix on_release target repositories (#42)
jonas-martinez Sep 1, 2022
9de1e65
feat: Match baseSize changes on lenra_components (#43)
jonas-martinez Sep 12, 2022
523c804
fix: API Response does not use "data" key anymore (#44)
jonas-martinez Sep 20, 2022
712a0e9
fix: Accepted latest cgu receiving Map<String, dynamic> instead of bo…
jonas-martinez Sep 20, 2022
076a95c
fix: HTTP Response now parsed properly (#46)
jonas-martinez Sep 27, 2022
dbfe7f6
feat: Invitation (#47)
pichoemr Oct 4, 2022
e4603b3
feat: Rephrase registration message (#49)
jonas-martinez Oct 10, 2022
7bac432
fix: Back Ink Text alignment on SimplePage (#48)
jonas-martinez Oct 10, 2022
3a57290
feat: Update dependencies (#51)
jonas-martinez Oct 26, 2022
2f4b89a
feat!: Fix api requests (#55)
jonas-martinez Nov 2, 2022
4ce75d3
feat: keep connection (#56)
pichoemr Nov 21, 2022
4af0e73
feat!: Rework `selectedApp` variable for backoffice + Add `latestBuil…
jonas-martinez Nov 22, 2022
f25cf74
feat: Application API request (apps user opened) (#57)
jonas-martinez Nov 29, 2022
f016406
fix: Keep me logged in text alignment (#58)
jonas-martinez Dec 6, 2022
bac82a5
feat!: Big changes to the navigation system (#59)
Nesqwik Dec 14, 2022
cf058df
feat: Remove dev token (#60)
jonas-martinez Dec 16, 2022
1ac5bf0
feat: Update dependencies (#61)
jonas-martinez Dec 20, 2022
aacd461
fix: Keep me logged in - Alignment (#63)
jonas-martinez Dec 26, 2022
5905bf8
fix: Update dependencies (#64)
jonas-martinez Jan 2, 2023
0256c7f
fix: Navigation GoRouter reorganized (#65)
jonas-martinez Jan 9, 2023
c87828b
Revert "fix: Navigation GoRouter reorganized (#65)" (#68)
taorepoara Jan 9, 2023
0faf00e
feat: resend button (#70)
pichoemr Jan 16, 2023
caf8d50
feat: Add backInk to registration code page (#69)
pichoemr Jan 16, 2023
6dadef6
fix: Navigation GoRouter reorganized (#71)
jonas-martinez Jan 20, 2023
eee12d8
feat: Refresh Token - shared_preferences (#72)
jonas-martinez Jan 25, 2023
d1ce7bd
feat: Add notification API
Jan 26, 2023
09cefae
fix: Navigation back button (#73)
jonas-martinez Jan 27, 2023
f136cf1
feat: load sentry DSN from meta tag (#74)
shiipou Jan 27, 2023
a086892
fix: fromEnvironment const (#77)
jonas-martinez Feb 2, 2023
4a0e53d
fix: Scrollbar error (#78)
jonas-martinez Feb 2, 2023
e52926d
feat: Add SafeArea (#75)
jonas-martinez Feb 3, 2023
808b999
feat: Update dependencies (#79)
shiipou Feb 3, 2023
75635b9
update depg
Feb 7, 2023
d85d91d
feat: add deployment model (#76)
pichoemr Feb 14, 2023
012eda0
feat: Better simple page (#81)
jonas-martinez Feb 20, 2023
b697fc3
feat: App context in login/register page (#83)
jonas-martinez May 31, 2023
5083dd0
fix: Do not override redirect each time _toAuth is triggered (#84)
jonas-martinez Jun 16, 2023
2fc3b74
fix: Show errors on login and register (#85)
jonas-martinez Jul 3, 2023
5a59ac1
fix(build): Migrate SSH dependencies to HTTPS (#87)
shiipou Jul 4, 2023
c7c0d50
ci: semantic-release to new workflow (#90)
shiipou Aug 17, 2023
1773ea4
ci: fix invalid token
shiipou Aug 17, 2023
0b78918
feat!: Merge alpha on beta (#94)
jonas-martinez Aug 30, 2023
ebd43f8
fix: Also logout from the OAuth server (#96)
taorepoara Sep 12, 2023
46bca87
fix: CommonNavigator isCurrent was always returning false (#95)
jonas-martinez Sep 15, 2023
d2268c4
ci: We need to remove each PR-IS-WIP action call because it's broken …
shiipou Sep 26, 2023
6959b0a
feat: Add Stripe API (#97)
jonas-martinez Sep 27, 2023
76b91ec
fix: allow to set environment in Config.instance (#98)
shiipou Sep 29, 2023
5dc77f0
Merge branch 'beta' into up-notify
taorepoara Sep 29, 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
40 changes: 40 additions & 0 deletions .github/workflows/create_or_update_pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Create or Update PR

on:
workflow_dispatch:
inputs:
version:
description: "Lenra Component Version"
required: true
release_notes:
description: "Lenra Component Release notes"
required: false
origin:
description: "Label of the dependency to change version."
required: true

jobs:
create_or_update_pr:
name: Create or Update PR
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup yq
id: setup-yq
uses: shiipou/setup-yq-action@stable
- name: create_pr
uses: lenra-io/[email protected]
with:
name: "Update dependencies"
token: ${{ secrets.WORKFLOW_GITHUB_TOKEN }}
script: |
yq eval ".dependencies.${{ github.event.inputs.origin }}.git.ref = \"${{ github.event.inputs.version }}\"" -i pubspec.yaml
git add pubspec.yaml

RELEASE_NOTES="${{ github.event.inputs.release_notes }}"
RELEASE_TYPE="${RELEASE_NOTES/:*}"

git commit -m "${RELEASE_TYPE}: Upgrade ${{ github.event.inputs.origin }} to ${{ github.event.inputs.version }}
${RELEASE_NOTES}"
41 changes: 41 additions & 0 deletions .github/workflows/flutter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Flutter CI
on:
pull_request:
types:
- opened
- edited
- synchronize

env:
flutter_version: "3.10.x"
jobs:

Setup-Flutter:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v2
- name: Cache Flutter dependencies
uses: actions/cache@v2
with:
path: /opt/hostedtoolcache/flutter
key: ${{ runner.OS }}-flutter-install-cache-${{ env.flutter_version }}
- uses: subosito/[email protected]
with:
flutter-version: ${{ env.flutter_version }}
- uses: webfactory/[email protected]
with:
ssh-private-key: |
${{ secrets.LENRA_COMPONENTS_SSH }}
- name: Restore packages
run: flutter pub get

- name: Analyze
run: flutter analyze --no-congratulate

- name: Run tests
run: flutter test --coverage
# - name: Upload coverage to codecov
# uses: codecov/codecov-action@v2
# with:
# token: ${{ secrets.CODECOV_TOKEN }}
30 changes: 30 additions & 0 deletions .github/workflows/generate_and_deploy_doc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Generate and Deploy Doc
on:
push:
branches:
- beta

env:
flutter_version: "3.10.x"

permissions:
contents: write
jobs:
generate-and-deploy-doc:
concurrency: ci-${{ github.ref }} # Recommended if you intend to make multiple deployments in quick succession.
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3

- uses: subosito/[email protected]
with:
flutter-version: ${{ env.flutter_version }}

- name: Install and Build 🔧
run: dart doc .

- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: doc/api # The folder the action should deploy.
30 changes: 30 additions & 0 deletions .github/workflows/lint_pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: "Lint PR title"

on:
pull_request_target:
types:
- opened
- edited
- synchronize

jobs:
main:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: amannn/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
# For work-in-progress PRs you can typically use draft pull requests
# from Github. However, private repositories on the free plan don't have
# this option and therefore this action allows you to opt-in to using the
# special "[WIP]" prefix to indicate this state. This will avoid the
# validation of the PR title and the pull request checks remain pending.
# Note that a second check will be reported if this is enabled.
wip: true
# When using "Squash and merge" on a PR with only one commit, GitHub
# will suggest using that commit message instead of the PR title for the
# merge commit, and it's easy to commit this by mistake. Enable this option
# to also validate the commit message for one commit PRs.
validateSingleCommit: true
44 changes: 44 additions & 0 deletions .github/workflows/on_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Populate Release

on:
release:
types: [published]

jobs:
populate_release:
name: Populate Release
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@v2
- id: extract_tag
env:
GITHUB_REF: ${{ github.ref }}
run: |
echo "Extracting tag..."
REF="${GITHUB_REF##*/}"
echo "output.tag=${REF}"
echo "::set-output name=tag::${REF}"
if [[ ${GITHUB_REF} == *beta.* ]]; then
echo "::set-output name=target_ref::beta"
else
echo "::set-output name=target_ref::main"
fi

RELEASE_NOTES="$(git log -n1 | head -n5 | tail -n1)"
RELEASE_NOTES="${RELEASE_NOTES/ /}"
echo "::set-output name=release-notes::${RELEASE_NOTES}"
- name: create_pr
uses: shiipou/workflows/trigger_workflow@main
with:
target_ref: ${{ steps.extract_tag.outputs.target_ref }}
target_repository: "${{ github.repository_owner }}/dev-tools,${{ github.repository_owner }}/client-backoffice,${{ github.repository_owner }}/client-store,${{ github.repository_owner }}/lenra_ui_runner"
target_workflow: create_or_update_pr.yml
params: |
{
"version": "${{ steps.extract_tag.outputs.tag }}",
"origin": "client_common",
"release_notes": "${{ steps.extract_tag.outputs.release-notes }}"
}
token: ${{ secrets.WORKFLOW_GITHUB_TOKEN }}
17 changes: 17 additions & 0 deletions .github/workflows/semantic_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Release

on:
push:
branches:
- main
- rc
- beta
- alpha
- "*.x"

env:
flutter_version: "3.10.x"

jobs:
release:
uses: lenra-io/github-actions/.github/workflows/release.yml@main
Loading
Loading