Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
22 changes: 0 additions & 22 deletions .github/ISSUE_TEMPLATE/bug_report.md

This file was deleted.

29 changes: 29 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Bug report
about: Create a report to help us improve
title: '[Bug]: '
labels: ['bug', 'triage']
body:
- type: textarea
id: expected
attributes:
label: Expected behavior
description: Please describe the expected behavior
validations:
required: true
- type: textarea
id: Actual
attributes:
label: Actual behavior
description: Please describe the behvior you're actually seeing.
validations:
required: true
- type: textarea
id: steps
attributes:
label: Steps to reproduce
description: Please list concise steps to reproduce the issue. Without reporoduction steps, we likely won't be able address this issue.
- type: textarea
id: version
attributes:
label: Additional details
description: Please include relevant details to this problem, such as: Dart/Flutter sdk version number, python version number, platform, and any other relevant details.
27 changes: 27 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Feature request
description: Request net-new features and behavior improvements
title: '[Feature]: '
labels: ['feature', 'triage']
body:
- type: textarea
attributes:
label: Use case
description: |
Please tell us the problem you are running into or gap you're trying to fill.

Is your feature request related to a problem? Please give a clear and
concise description of what the problem is.
validations:
required: true
- type: textarea
attributes:
label: Proposal
description: |
Briefly but precisely describe what you would like implemented.

Consider attaching something showing what you are imagining:
* images
* videos
* code samples
validations:
required: true
26 changes: 26 additions & 0 deletions .github/ISSUE_TEMPLATE/umbrealla.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Create an umbrella issue
description: |
Create an umbrella issue for a new feature.
title: '☂️: '
labels: ['feature', 'triage']
body:
- type: markdown
attributes:
value: |
Thanks for filing an issue.

Note: Umbrella issues require at least one individual child issue to exist.
- type: textarea
id: description
attributes:
label: Description
description: Please describe the feature you are adding.
validations:
required: true
- type: textarea
id: tracking_issues
attributes:
label: Tracking Issues
description: List of issues associated with this feature.
validations:
required: true
10 changes: 7 additions & 3 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
Fixes #<issue_number_goes_here>
### Issue Link:
What is the link to the issue this cherry-pick is addressing?

https://github.com/flutter/flutter/issues/< Replace with issue link here >

> It's a good idea to open an issue first for discussion.

- [ ] Tests pass
- [ ] Appropriate changes to documentation are included in the PR
- [ ] All tests pass
- [ ] Appropriate inline docstrings changes are included in the PR
- [ ] Appropriate documentation changes to the [docs](./docs) site are included in the PR
36 changes: 36 additions & 0 deletions .github/workflows/eval_explorer_analyze.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Eval Explorer Analyze

on:
pull_request:
paths:
- 'packages/eval_explorer/**'
- '.github/workflows/eval_explorer_analyze.yml'
push:
branches:
- main
paths:
- 'packages/eval_explorer/**'
- '.github/workflows/eval_explorer_analyze.yml'

jobs:
analyze:
runs-on: ubuntu-latest
timeout-minutes: 10

steps:
- name: Checkout repository
uses: actions/checkout@v6

- name: Install Flutter
run: |
git clone https://github.com/flutter/flutter.git --depth 1 -b stable $HOME/flutter
echo "$HOME/flutter/bin" >> $GITHUB_PATH
echo "$HOME/.pub-cache/bin" >> $GITHUB_PATH

- name: Install dependencies
working-directory: packages/eval_explorer
run: flutter pub get

- name: Analyze
working-directory: packages/eval_explorer
run: dart analyze --fatal-infos
36 changes: 36 additions & 0 deletions .github/workflows/eval_explorer_format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Eval Explorer Format

on:
pull_request:
paths:
- 'packages/eval_explorer/**'
- '.github/workflows/eval_explorer_format.yml'
push:
branches:
- main
paths:
- 'packages/eval_explorer/**'
- '.github/workflows/eval_explorer_format.yml'

jobs:
format:
runs-on: ubuntu-latest
timeout-minutes: 10

steps:
- name: Checkout repository
uses: actions/checkout@v6

- name: Install Flutter
run: |
git clone https://github.com/flutter/flutter.git --depth 1 -b stable $HOME/flutter
echo "$HOME/flutter/bin" >> $GITHUB_PATH
echo "$HOME/.pub-cache/bin" >> $GITHUB_PATH

- name: Install dependencies
working-directory: packages/eval_explorer
run: flutter pub get

- name: Check formatting
working-directory: packages/eval_explorer
run: dart format --set-exit-if-changed .
36 changes: 36 additions & 0 deletions .github/workflows/eval_explorer_tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Eval Explorer Tests

on:
pull_request:
paths:
- 'packages/eval_explorer/**'
- '.github/workflows/eval_explorer_tests.yml'
push:
branches:
- main
paths:
- 'packages/eval_explorer/**'
- '.github/workflows/eval_explorer_tests.yml'

jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 10

steps:
- name: Checkout repository
uses: actions/checkout@v6

- name: Install Flutter
run: |
git clone https://github.com/flutter/flutter.git --depth 1 -b stable $HOME/flutter
echo "$HOME/flutter/bin" >> $GITHUB_PATH
echo "$HOME/.pub-cache/bin" >> $GITHUB_PATH

- name: Install dependencies
working-directory: packages/eval_explorer
run: flutter pub get

- name: Run unit tests
working-directory: packages/eval_explorer
run: ./bin/run_tests.sh unit
20 changes: 20 additions & 0 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
include: package:lints/recommended.yaml

formatter:
trailing_commas: preserve

# Uncomment the following section to specify additional rules.

# linter:
# rules:
# - camel_case_types

# analyzer:
# exclude:
# - path/to/excluded/files/**

# For more information about the core and recommended set of lints, see
# https://dart.dev/go/core-lints

# For additional information about configuring this file, see
# https://dart.dev/guides/language/analysis-options
34 changes: 1 addition & 33 deletions packages/dataset_config/analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -1,33 +1 @@
# This file configures the static analysis results for your project (errors,
# warnings, and lints).
#
# This enables the 'recommended' set of lints from `package:lints`.
# This set helps identify many issues that may lead to problems when running
# or consuming Dart code, and enforces writing Dart using a single, idiomatic
# style and format.
#
# If you want a smaller set of lints you can change this to specify
# 'package:lints/core.yaml'. These are just the most critical lints
# (the recommended set includes the core lints).
# The core lints are also what is used by pub.dev for scoring packages.

include: package:lints/recommended.yaml

formatter:
trailing_commas: preserve

# Uncomment the following section to specify additional rules.

# linter:
# rules:
# - camel_case_types

# analyzer:
# exclude:
# - path/to/excluded/files/**

# For more information about the core and recommended set of lints, see
# https://dart.dev/go/core-lints

# For additional information about configuring this file, see
# https://dart.dev/guides/language/analysis-options
include: ../../analysis_options.yaml
2 changes: 1 addition & 1 deletion packages/devals_cli/analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
include: package:lints/recommended.yaml
include: ../../analysis_options.yaml

linter:
rules:
Expand Down
3 changes: 2 additions & 1 deletion packages/devals_cli/lib/src/dataset/workspace.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ enum WorkspaceType { template, path, git, create }
enum TemplatePackage {
flutterApp('flutter_app', 'flutter_eval_app'),
dartPackage('dart_package', 'dart_eval_package'),
jasprApp('jaspr_app', 'jaspr_eval_app');
jasprApp('jaspr_app', 'jaspr_eval_app')
;

const TemplatePackage(this.yamlValue, this.packageName);

Expand Down
1 change: 1 addition & 0 deletions packages/eval_explorer/analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
include: ../../analysis_options.yaml
63 changes: 63 additions & 0 deletions packages/eval_explorer/bin/run_tests.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
#!/bin/bash
set -e

# Usage:
# ./run_unit_tests.sh [test_type]
#
# Arguments:
# test_type: Optional. The type of tests to run.
# Values: 'unit' (default), 'integration', 'all'
#
# Examples:
# ./run_unit_tests.sh # Runs unit tests (default)
# ./run_unit_tests.sh unit # Runs unit tests
# ./run_unit_tests.sh integration # Runs integration tests
# ./run_unit_tests.sh all # Runs all tests


# Parse the first argument to determine which tests to run
# Options: unit (default), integration, all
TEST_TYPE=${1:-unit}
ARGS=""

if [ "$TEST_TYPE" == "unit" ]; then
ARGS="--exclude-tags=integration"
elif [ "$TEST_TYPE" == "integration" ]; then
ARGS="--tags=integration"
elif [ "$TEST_TYPE" == "all" ]; then
ARGS=""
else
echo "Error: Invalid argument '$TEST_TYPE'. Usage: $0 [unit|integration|all]"
exit 1
fi

# Define the base directory relative to the script location
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"

# Function to run tests in a directory
run_tests() {
local dir="$1"
local cmd="$2"
echo "----------------------------------------------------------------"
echo "Running $TEST_TYPE tests in $dir..."
echo "----------------------------------------------------------------"
cd "$SCRIPT_DIR/../$dir" || exit 1

if [ "$cmd" == "flutter" ]; then
flutter test $ARGS
else
if [ -d "test" ]; then
dart test $ARGS
else
echo "No 'test' directory found in $dir. Skipping tests."
fi
fi
}

run_tests "eval_explorer_shared" "dart"
run_tests "eval_explorer_server" "dart"
run_tests "eval_explorer_flutter" "flutter"

echo "----------------------------------------------------------------"
echo "All $TEST_TYPE tests passed successfully!"
echo "----------------------------------------------------------------"
13 changes: 13 additions & 0 deletions packages/eval_explorer/eval_explorer_client/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Files and directories created by pub
.dart_tool/
.packages

# Omit committing pubspec.lock for library packages:
# https://dart.dev/guides/libraries/private-files#pubspeclock
pubspec.lock

# Conventional directory for build outputs
build/

# Directory created by dartdoc
doc/api/
3 changes: 3 additions & 0 deletions packages/eval_explorer/eval_explorer_client/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## 1.0.0

- Initial version, created by Stagehand
5 changes: 5 additions & 0 deletions packages/eval_explorer/eval_explorer_client/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# eval_explorer_client

Serverpod client package for the eval_explorer application. Code in this package is mostly generated by Serverpod.

📖 **[eval_explorer documentation](../../../docs/eval_explorer.md)**
Loading
Loading