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

New pages integrated related to companies #404

Merged
merged 16 commits into from
May 26, 2024
2 changes: 1 addition & 1 deletion .github/workflows/auto-merge.yml
DonnieBLT marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ jobs:
- uses: actions/checkout@v2
- uses: ahmadnassri/action-dependabot-auto-merge@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
github-token: ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ jobs:
steps:
- uses: docker://chinthakagodawita/autoupdate-action:v1
env:
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
1 change: 1 addition & 0 deletions .github/workflows/issue-assign.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@ jobs:
uses: OWASP-BLT/BLT-Action@main
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}

Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ jobs:
with:
webhook-url: ${{ secrets.SLACK_PR_REMINDER_WEBHOOK_URL }}
provider: 'slack' # Required (slack, rocket or msteams)
channel: '#project-blt-prs' # Optional, eg: #general
channel: '#project-blt-prs' # Optional, eg: #general
23 changes: 18 additions & 5 deletions lib/src/models/company_model.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,14 @@ class Company {
String? email;
String? url;
String? hexcolor;
final int openIssues;
final int closedIssues;
String? twitter;
String? facebook;
int? openIssues;
int? closedIssues;
final DateTime lastModified;
final String logoLink;
final String topTester;
bool? isActive;

Company(
this.id,
Expand All @@ -24,6 +27,9 @@ class Company {
this.lastModified,
this.logoLink,
this.topTester,
this.twitter,
this.facebook,
this.isActive,
);

Color? get valueColor {
Expand All @@ -45,14 +51,21 @@ class Company {
parsedJson["email"] ?? null,
parsedJson["url"] ?? null,
parsedJson["color"] ?? null,
parsedJson["open"],
parsedJson["closed"],
parsedJson["open"] ?? 0,
parsedJson["closed"] ?? 0,
DateTime.parse(parsedJson["modified"]),
parsedJson["logo"].toString(),
parsedJson["top"],
parsedJson["top"] ?? "",
parsedJson["twitter"],
parsedJson["facebook"],
parsedJson["isActive"],
);
}

static List<Company> fromSnapshot(List<dynamic> json) {
return json.map((data) => Company.fromJson(data)).toList();
}

void setMoreInfo(
int id,
String mail,
Expand Down
1 change: 0 additions & 1 deletion lib/src/pages/auth/forgot.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import 'package:blt/src/pages/pages_import.dart';
import 'package:flutter/material.dart';

/// Page for initiating the process for recovering
/// a user's account password.
Expand Down
1 change: 0 additions & 1 deletion lib/src/pages/auth/login.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import 'package:blt/src/pages/pages_import.dart';
import 'package:flutter/material.dart';

/// The login page for the app.
class LoginPage extends StatefulWidget {
Expand Down
1 change: 0 additions & 1 deletion lib/src/pages/auth/signup.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import 'package:blt/src/pages/pages_import.dart';
import 'package:flutter/material.dart';

/// The signup page for the app.
class SignUpPage extends StatefulWidget {
Expand Down
Loading
Loading