인벤토리 include 필터 문구 수정

This commit is contained in:
JiWoong Sul
2025-10-22 18:48:00 +09:00
parent cefcfaac0d
commit a14133df52
7 changed files with 12 additions and 9 deletions

View File

@@ -375,6 +375,7 @@ class _InboundPageState extends State<InboundPage> {
key: ValueKey(_pendingIncludes.hashCode), key: ValueKey(_pendingIncludes.hashCode),
controller: _includeController, controller: _includeController,
initialValues: _pendingIncludes, initialValues: _pendingIncludes,
placeholder: const Text(InboundTableSpec.includeEmptyLabel),
selectedOptionsBuilder: (context, values) { selectedOptionsBuilder: (context, values) {
if (values.isEmpty) { if (values.isEmpty) {
return const Text(InboundTableSpec.includeEmptyLabel); return const Text(InboundTableSpec.includeEmptyLabel);

View File

@@ -44,7 +44,7 @@ class InboundTableSpec {
static const String allStatusLabel = '전체 상태'; static const String allStatusLabel = '전체 상태';
/// include 옵션이 선택되지 않았을 때 표시하는 기본 라벨. /// include 옵션이 선택되지 않았을 때 표시하는 기본 라벨.
static const String includeEmptyLabel = 'Include 없음'; static const String includeEmptyLabel = '선택 없음';
/// 테이블 열 폭 계산을 위한 기준 값. /// 테이블 열 폭 계산을 위한 기준 값.
static const double columnSpanWidth = 140; static const double columnSpanWidth = 140;
@@ -74,7 +74,7 @@ class InboundTableSpec {
static String includeLabel(String value) { static String includeLabel(String value) {
switch (value) { switch (value) {
case 'lines': case 'lines':
return '라인 포함'; return '상세정보 포함';
default: default:
return value; return value;
} }

View File

@@ -474,6 +474,7 @@ class _OutboundPageState extends State<OutboundPage> {
key: ValueKey(_pendingIncludes.hashCode), key: ValueKey(_pendingIncludes.hashCode),
controller: _includeController, controller: _includeController,
initialValues: _pendingIncludes, initialValues: _pendingIncludes,
placeholder: const Text(OutboundTableSpec.includeEmptyLabel),
selectedOptionsBuilder: (context, values) { selectedOptionsBuilder: (context, values) {
if (values.isEmpty) { if (values.isEmpty) {
return const Text(OutboundTableSpec.includeEmptyLabel); return const Text(OutboundTableSpec.includeEmptyLabel);

View File

@@ -43,7 +43,7 @@ class OutboundTableSpec {
static const String allStatusLabel = '전체 상태'; static const String allStatusLabel = '전체 상태';
/// include 선택이 비어 있을 때 보여줄 라벨. /// include 선택이 비어 있을 때 보여줄 라벨.
static const String includeEmptyLabel = 'Include 없음'; static const String includeEmptyLabel = '선택 없음';
/// 테이블 열 폭 기준 값. /// 테이블 열 폭 기준 값.
static const double columnSpanWidth = 140; static const double columnSpanWidth = 140;
@@ -61,7 +61,7 @@ class OutboundTableSpec {
static String includeLabel(String value) { static String includeLabel(String value) {
switch (value) { switch (value) {
case 'lines': case 'lines':
return '라인 포함'; return '상세정보 포함';
case 'customers': case 'customers':
return '고객 포함'; return '고객 포함';
default: default:

View File

@@ -422,6 +422,7 @@ class _RentalPageState extends State<RentalPage> {
key: ValueKey(_pendingIncludes.hashCode), key: ValueKey(_pendingIncludes.hashCode),
controller: _includeController, controller: _includeController,
initialValues: _pendingIncludes, initialValues: _pendingIncludes,
placeholder: const Text(RentalTableSpec.includeEmptyLabel),
selectedOptionsBuilder: (context, values) { selectedOptionsBuilder: (context, values) {
if (values.isEmpty) { if (values.isEmpty) {
return const Text(RentalTableSpec.includeEmptyLabel); return const Text(RentalTableSpec.includeEmptyLabel);

View File

@@ -48,7 +48,7 @@ class RentalTableSpec {
static const String allRentalTypeLabel = '대여구분 전체'; static const String allRentalTypeLabel = '대여구분 전체';
/// include 선택 없음 라벨. /// include 선택 없음 라벨.
static const String includeEmptyLabel = 'Include 없음'; static const String includeEmptyLabel = '선택 없음';
/// 테이블 열 폭 기준 값. /// 테이블 열 폭 기준 값.
static const double columnSpanWidth = 140; static const double columnSpanWidth = 140;
@@ -66,7 +66,7 @@ class RentalTableSpec {
static String includeLabel(String value) { static String includeLabel(String value) {
switch (value) { switch (value) {
case 'lines': case 'lines':
return '라인 포함'; return '상세정보 포함';
case 'customers': case 'customers':
return '고객 포함'; return '고객 포함';
default: default:

View File

@@ -38,7 +38,7 @@ void main() {
); );
await tester.pumpAndSettle(); await tester.pumpAndSettle();
expect(find.text('라인 포함'), findsWidgets); expect(find.text('상세정보 포함'), findsWidgets);
expect(tester.takeException(), isNull); expect(tester.takeException(), isNull);
await tester.tap(find.widgetWithText(ShadButton, '입고 등록')); await tester.tap(find.widgetWithText(ShadButton, '입고 등록'));
@@ -69,7 +69,7 @@ void main() {
); );
await tester.pumpAndSettle(); await tester.pumpAndSettle();
expect(find.text('라인 포함'), findsWidgets); expect(find.text('상세정보 포함'), findsWidgets);
expect(find.text('고객 포함'), findsWidgets); expect(find.text('고객 포함'), findsWidgets);
expect(tester.takeException(), isNull); expect(tester.takeException(), isNull);
}); });
@@ -90,7 +90,7 @@ void main() {
); );
await tester.pumpAndSettle(); await tester.pumpAndSettle();
expect(find.text('라인 포함'), findsWidgets); expect(find.text('상세정보 포함'), findsWidgets);
expect(tester.takeException(), isNull); expect(tester.takeException(), isNull);
}); });
} }