submission
This commit is contained in:
@@ -308,6 +308,13 @@ class ApiConstants {
|
||||
static const String saveProject =
|
||||
'/building_material.building_material.api.project.save';
|
||||
|
||||
/// Get project detail (requires sid and csrf_token)
|
||||
/// POST /api/method/building_material.building_material.api.project.get_detail
|
||||
/// Body: { "name": "#DA00011" }
|
||||
/// Returns: Full project detail with all fields
|
||||
static const String getProjectDetail =
|
||||
'/building_material.building_material.api.project.get_detail';
|
||||
|
||||
/// Create new project (legacy endpoint - may be deprecated)
|
||||
/// POST /projects
|
||||
static const String createProject = '/projects';
|
||||
|
||||
@@ -189,7 +189,7 @@ final class LoggingInterceptorProvider
|
||||
}
|
||||
|
||||
String _$loggingInterceptorHash() =>
|
||||
r'4d3147e9084d261e14653386ecd74ee471993af4';
|
||||
r'6afa480caa6fcd723dab769bb01601b8a37e20fd';
|
||||
|
||||
/// Provider for ErrorTransformerInterceptor
|
||||
|
||||
|
||||
@@ -42,6 +42,7 @@ import 'package:worker/features/price_policy/price_policy.dart';
|
||||
import 'package:worker/features/products/presentation/pages/product_detail_page.dart';
|
||||
import 'package:worker/features/products/presentation/pages/products_page.dart';
|
||||
import 'package:worker/features/products/presentation/pages/write_review_page.dart';
|
||||
import 'package:worker/features/projects/domain/entities/project_submission.dart';
|
||||
import 'package:worker/features/projects/presentation/pages/submission_create_page.dart';
|
||||
import 'package:worker/features/projects/presentation/pages/submissions_page.dart';
|
||||
import 'package:worker/features/promotions/presentation/pages/promotion_detail_page.dart';
|
||||
@@ -391,12 +392,17 @@ final routerProvider = Provider<GoRouter>((ref) {
|
||||
MaterialPage(key: state.pageKey, child: const SubmissionsPage()),
|
||||
),
|
||||
|
||||
// Submission Create Route
|
||||
// Submission Create/Edit Route
|
||||
GoRoute(
|
||||
path: RouteNames.submissionCreate,
|
||||
name: RouteNames.submissionCreate,
|
||||
pageBuilder: (context, state) =>
|
||||
MaterialPage(key: state.pageKey, child: const SubmissionCreatePage()),
|
||||
pageBuilder: (context, state) {
|
||||
final submission = state.extra as ProjectSubmission?;
|
||||
return MaterialPage(
|
||||
key: state.pageKey,
|
||||
child: SubmissionCreatePage(submission: submission),
|
||||
);
|
||||
},
|
||||
),
|
||||
|
||||
// Quotes Route
|
||||
|
||||
Reference in New Issue
Block a user