Skip to content

Commit

Permalink
Merge pull request #89 from pvdthings/dev
Browse files Browse the repository at this point in the history
Release
  • Loading branch information
dillonfagan authored Nov 9, 2024
2 parents 93340c4 + 39d8681 commit 1fe5a4b
Show file tree
Hide file tree
Showing 40 changed files with 546 additions and 610 deletions.
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
import 'package:flutter/material.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:librarian_app/modules/borrowers/providers/borrower_details_provider.dart';
import 'package:librarian_app/modules/borrowers/providers/borrowers_filter_provider.dart';
import 'package:librarian_app/modules/borrowers/providers/selected_borrower_provider.dart';
import 'package:librarian_app/modules/borrowers/details/borrower_details_pane.dart';
import 'package:librarian_app/modules/members/providers/borrower_details_provider.dart';
import 'package:librarian_app/modules/members/providers/borrowers_filter_provider.dart';
import 'package:librarian_app/modules/members/providers/selected_borrower_provider.dart';
import 'package:librarian_app/modules/members/details/member_details_pane.dart';
import 'package:librarian_app/widgets/fields/search_field.dart';
import 'package:librarian_app/widgets/panes/list_pane.dart';
import 'package:librarian_app/widgets/panes/pane_header.dart';

import '../../modules/borrowers/list/borrowers_list_view.dart';
import '../../modules/members/list/members_list_view.dart';

class BorrowersDesktopLayout extends ConsumerWidget {
const BorrowersDesktopLayout({super.key});
class MembersDesktopLayout extends ConsumerWidget {
const MembersDesktopLayout({super.key});

@override
Widget build(BuildContext context, WidgetRef ref) {
Expand All @@ -30,10 +30,10 @@ class BorrowersDesktopLayout extends ConsumerWidget {
},
),
),
child: const BorrowersListView(),
child: const MembersListView(),
),
Expanded(
child: BorrowerDetailsPane(
child: MemberDetailsPane(
borrowerFuture: ref.watch(borrowerDetailsProvider),
),
),
Expand Down
16 changes: 8 additions & 8 deletions apps/librarian/lib/dashboard/pages/dashboard_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import 'package:librarian_app/dashboard/providers/create_loan_controller.dart';
import 'package:librarian_app/dashboard/providers/workspace.dart';
import 'package:librarian_app/modules/authentication/providers/auth_service_provider.dart';
import 'package:librarian_app/modules/authentication/providers/user_tray.dart';
import 'package:librarian_app/modules/borrowers/details/needs_attention_page.dart';
import 'package:librarian_app/dashboard/layouts/borrowers_desktop_layout.dart';
import 'package:librarian_app/modules/borrowers/list/searchable_borrowers_list.dart';
import 'package:librarian_app/modules/members/details/needs_attention_page.dart';
import 'package:librarian_app/dashboard/layouts/members_desktop_layout.dart';
import 'package:librarian_app/modules/members/list/searchable_members_list.dart';
import 'package:librarian_app/dashboard/providers/end_drawer_provider.dart';
import 'package:librarian_app/dashboard/widgets/create_menu_item.dart';
import 'package:librarian_app/dashboard/layouts/inventory_desktop_layout.dart';
Expand Down Expand Up @@ -74,12 +74,12 @@ class _DashboardPageState extends ConsumerState<DashboardPage> {
),
),
DashboardModule(
title: 'Borrowers',
desktopLayout: const BorrowersDesktopLayout(),
mobileLayout: SearchableBorrowersList(
title: 'Members',
desktopLayout: const MembersDesktopLayout(),
mobileLayout: SearchableMembersList(
onTapBorrower: (borrower) {
Navigator.push(context, MaterialPageRoute(builder: (_) {
return NeedsAttentionPage(borrower: borrower);
return NeedsAttentionPage(member: borrower);
}));
},
),
Expand Down Expand Up @@ -219,7 +219,7 @@ class _DashboardPageState extends ConsumerState<DashboardPage> {
NavigationDestination(
selectedIcon: Icon(Icons.people),
icon: Icon(Icons.people_outlined),
label: "Borrowers",
label: "Members",
),
NavigationDestination(
selectedIcon: Icon(Icons.build),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:librarian_app/dashboard/providers/workspace.dart';
import 'package:librarian_app/dashboard/widgets/workspace_window.dart';
import 'package:librarian_app/modules/loans/checkout/checkout_page.dart';
import 'package:librarian_app/modules/loans/checkout/checkout_stepper.dart';
import 'package:librarian_app/modules/loans/checkout/stepper/checkout_stepper.dart';
import 'package:librarian_app/utils/media_query.dart';

class CreateLoanController {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class DesktopDashboard extends StatelessWidget {
NavigationRailDestination(
selectedIcon: Icon(Icons.people),
icon: Icon(Icons.people_outlined),
label: Text('Borrowers'),
label: Text('Members'),
padding: EdgeInsets.symmetric(vertical: 8),
),
NavigationRailDestination(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import 'package:flutter/material.dart';
import 'package:librarian_app/modules/loans/checkout/checkout_stepper.dart';
import 'package:librarian_app/modules/loans/checkout/stepper/checkout_stepper.dart';

class CheckoutPage extends StatelessWidget {
const CheckoutPage({super.key});
Expand Down
288 changes: 0 additions & 288 deletions apps/librarian/lib/modules/loans/checkout/checkout_stepper.dart

This file was deleted.

Loading

0 comments on commit 1fe5a4b

Please sign in to comment.