Skip to content

Commit 972947f

Browse files
committed
Migrate code from SolidUI
1 parent 8b0bc01 commit 972947f

24 files changed

+2286
-16
lines changed
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
---
2+
name: 'bug report'
3+
about: Create a bug report to help improve FilePod.
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
## Describe the Bug
11+
12+
[A clear and concise description of the bug.]
13+
14+
## To Reproduce
15+
16+
Steps to reproduce the behaviour:
17+
18+
1. Go to '...'
19+
2. Click on '....'
20+
3. Scroll down to '....'
21+
4. See error
22+
23+
```bash
24+
$ commands
25+
...
26+
```
27+
28+
## Expected Behaviour
29+
30+
[A clear and concise description of what you expected to happen.]
31+
32+
## Screenshots
33+
34+
[If applicable, add screenshots to help explain your problem.]
35+
36+
## Context
37+
38+
Where has the issue been observed:
39+
40+
- [ ] Android
41+
- [ ] Chrome
42+
- [ ] iOS
43+
- [ ] Linux
44+
- [ ] macOS
45+
- [ ] Web
46+
- [ ] Windows
47+
48+
[Add any other context about the problem here.]
49+
50+
App Version:
51+
Flutter Version:
52+
53+
## Closing Criteria
54+
55+
Checklist for closing the issue:
56+
57+
- [ ] No errors from `make prep`
58+
- [ ] All tests pass `make qtest`
59+
- [ ] [Issue specific requirements.]
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
---
2+
name: 'feature request'
3+
about: Suggest an idea or feature improvement for FilePod.
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
---
8+
9+
## Description
10+
11+
[A clear and concise description of the problem or new functionality.]
12+
13+
## Why
14+
15+
So that as a user I can [clear and concise benefit].
16+
17+
## Closing Criteria
18+
19+
Checklist for closing the issue:
20+
21+
- [ ] No errors from `make prep`
22+
- [ ] All tests pass `make qtest`
23+
- [ ] [Issue specific requirements.]
24+
25+
## Alternatives
26+
27+
[A clear and concise description of any alternative solutions or
28+
features you've considered.]
29+
30+
## Additional Context
31+
32+
[Add any other context or screenshots about the feature request here.]

.github/pull_request_template.md

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# Pull Request Details
2+
3+
## What issue does this PR address
4+
5+
- [Description]
6+
7+
## Associated Issue
8+
9+
- This PR relates to issue #
10+
11+
## Type of Change
12+
13+
- [ ] Bug fix (non-breaking change which fixes an issue)
14+
- [ ] New feature (non-breaking change which adds functionality)
15+
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
16+
- [ ] This change requires a documentation update
17+
18+
## How Has This Been Tested?
19+
20+
Please describe the tests that you ran to verify your changes.
21+
22+
## Checklist
23+
24+
Complete the check-list below to ensure your branch is ready for PR.
25+
26+
- [ ] Screenshots included in linked issue #
27+
- [ ] Changes adhere to the [style and coding guidelines](https://survivor.togaware.com/gnulinux/flutter-style.html)
28+
- [ ] I have performed a self-review of my code
29+
- [ ] I have commented my code, particularly in hard-to-understand areas
30+
- [ ] I have made corresponding changes to the documentation
31+
- [ ] Any dependent changes have been merged and published in downstream modules
32+
- [ ] The update contains no confidential information
33+
- [ ] The update has no duplicated content
34+
- [ ] No lint check errors are related to these changes (`make prep` or `flutter analyze lib`)
35+
- [ ] Integration test `dart test` output or screenshot included in issue #
36+
- [ ] I tested the PR on these devices:
37+
- [ ] Android
38+
- [ ] iOS
39+
- [ ] Linux
40+
- [ ] MacOS
41+
- [ ] Windows
42+
- [ ] Web
43+
- [ ] I have identified reviewers
44+
- [ ] The PR has been approved by reviewers
45+
46+
## Finalising
47+
48+
Once PR discussion is complete and reviewers have approved:
49+
50+
- [ ] Merge dev into the this branch
51+
- [ ] Resolve any conflicts
52+
- [ ] Add a one line summary into the CHANGELOG.md
53+
- [ ] Push to the git repository and review
54+
- [ ] Merge the PR into dev

.github/workflows/ci.yaml

Lines changed: 135 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,135 @@
1+
name: Lint Checks
2+
3+
on:
4+
push:
5+
pull_request:
6+
types: [opened, reopened, synchronize]
7+
8+
env:
9+
FLUTTER_VERSION: '3.38.9'
10+
11+
jobs:
12+
13+
analyze:
14+
runs-on: ubuntu-latest
15+
if: github.event.repository.private == false
16+
steps:
17+
- uses: actions/checkout@v4
18+
- uses: subosito/flutter-action@v2
19+
with:
20+
channel: 'stable'
21+
flutter-version: ${{env.FLUTTER_VERSION}}
22+
- run: flutter pub get
23+
- run: flutter analyze --fatal-infos
24+
25+
format:
26+
runs-on: ubuntu-latest
27+
if: github.event.repository.private == false
28+
steps:
29+
- uses: actions/checkout@v4
30+
- uses: subosito/flutter-action@v2
31+
with:
32+
channel: 'stable'
33+
flutter-version: ${{env.FLUTTER_VERSION}}
34+
- run: flutter pub get
35+
- run: dart format --set-exit-if-changed .
36+
37+
unused_code:
38+
runs-on: ubuntu-latest
39+
if: github.event.repository.private == false
40+
steps:
41+
- uses: actions/checkout@v4
42+
- uses: subosito/flutter-action@v2
43+
with:
44+
channel: 'stable'
45+
flutter-version: ${{env.FLUTTER_VERSION}}
46+
- run: flutter pub get
47+
- run: dart pub global activate dart_code_metrics
48+
- run: metrics check-unused-code --disable-sunset-warning lib
49+
50+
unused_files:
51+
runs-on: ubuntu-latest
52+
if: github.event.repository.private == false
53+
steps:
54+
- uses: actions/checkout@v4
55+
- uses: subosito/flutter-action@v2
56+
with:
57+
channel: 'stable'
58+
flutter-version: ${{env.FLUTTER_VERSION}}
59+
- run: flutter pub get
60+
- run: dart pub global activate dart_code_metrics
61+
- run: metrics check-unused-files --disable-sunset-warning lib
62+
63+
import_order:
64+
runs-on: ubuntu-latest
65+
if: github.event.repository.private == false
66+
steps:
67+
- uses: actions/checkout@v4
68+
- uses: subosito/flutter-action@v2
69+
with:
70+
channel: 'stable'
71+
flutter-version: ${{env.FLUTTER_VERSION}}
72+
- run: flutter pub get
73+
- run: dart pub global activate import_order_lint
74+
- run: import_order --check
75+
76+
markdown:
77+
runs-on: ubuntu-latest
78+
if: github.event.repository.private == false
79+
steps:
80+
- uses: actions/checkout@v4
81+
- uses: actions/setup-node@v4
82+
with:
83+
node-version: 18
84+
- run: npm install -g markdownlint-cli
85+
- run: markdownlint *.md lib assets
86+
87+
link_checker:
88+
runs-on: ubuntu-latest
89+
if: github.event.repository.private == false
90+
permissions:
91+
issues: write
92+
steps:
93+
- uses: actions/checkout@v4
94+
95+
- name: Link Checker
96+
id: lychee
97+
uses: lycheeverse/lychee-action@v2
98+
with:
99+
args:
100+
--no-progress
101+
'*.md'
102+
'./**/*.dart'
103+
'assets/**/*.md'
104+
'assets/**/*.html'
105+
fail: true
106+
107+
locmax:
108+
runs-on: ubuntu-latest
109+
if: github.event.repository.private == false
110+
steps:
111+
- uses: actions/checkout@v4
112+
- run: make locmax
113+
114+
copyright:
115+
runs-on: ubuntu-latest
116+
if: github.event.repository.private == false
117+
steps:
118+
- uses: actions/checkout@v4
119+
- name: Check copyright headers
120+
run: |
121+
missing_copyright=$(find lib -type f -name '*.dart' \
122+
! -name '*.g.dart' \
123+
! -name '*.gr.dart' \
124+
! -name '*.freezed.dart' \
125+
! -name '*.chopper.dart' \
126+
! -name '*.part.dart' \
127+
! -name '*.config.dart' \
128+
-exec grep -L "Copyright" {} \;)
129+
if [ -n "$missing_copyright" ]; then
130+
echo "Files missing copyright headers:"
131+
echo "$missing_copyright"
132+
exit 1
133+
else
134+
echo "All non-generated Dart files have copyright headers"
135+
fi

0 commit comments

Comments
 (0)