1
0
forked from baron/baron-sso

userfront: 회원가입 단계에서 소속 유형 선택/입력 레거시 UI를 완전히 제거하고 100% 개인가입 단일화 및 기업 문의 배너 적용 (#1183)

This commit is contained in:
2026-06-16 17:03:20 +09:00
parent b1c853b3c3
commit 40eaadd88d

View File

@@ -1740,111 +1740,50 @@ Matters not expressly provided in this Policy are governed by the Company's inte
), ),
), ),
), ),
const SizedBox(height: 18), const SizedBox(height: 24),
_buildProfileFieldGroup(
title: tr('ui.userfront.signup.profile.affiliation_type'),
description: '개인 가입 혹은 기업 연동을 선택합니다.',
isDesktop: isDesktop,
trailing: null,
child: Column(
crossAxisAlignment: CrossAxisAlignment.stretch,
children: [
DropdownButtonFormField<String>(
key: ValueKey(_affiliationType),
initialValue: _affiliationType,
decoration: InputDecoration(
labelText: tr(
'ui.userfront.signup.profile.affiliation_type',
),
border: const OutlineInputBorder(),
),
items: [
DropdownMenuItem(
value: 'GENERAL',
child: Text(tr('domain.affiliation.general')),
),
DropdownMenuItem(
value: 'AFFILIATE',
child: Text(tr('domain.affiliation.affiliate')),
),
],
onChanged: _isAffiliateLocked
? null
: (val) {
if (val == null) {
return;
}
setState(() {
_affiliationType = val;
if (_affiliationType == 'GENERAL') {
_companyCode = null;
}
});
},
),
AnimatedSize(
duration: const Duration(milliseconds: 180),
curve: Curves.easeOut,
child: Column(
crossAxisAlignment: CrossAxisAlignment.stretch,
children: [
if (_affiliationType == 'AFFILIATE') ...[
const SizedBox(height: 16),
Container( Container(
padding: const EdgeInsets.all(16), padding: const EdgeInsets.all(16),
decoration: BoxDecoration( decoration: BoxDecoration(
color: Theme.of(context) color: _signupSurface,
.colorScheme
.primaryContainer
.withValues(alpha: 0.15),
borderRadius: BorderRadius.circular(12), borderRadius: BorderRadius.circular(12),
border: Border.all( border: Border.all(
color: Theme.of(context) color: _signupBorder,
.colorScheme
.primary
.withValues(alpha: 0.25),
), ),
), ),
child: Column( child: Column(
crossAxisAlignment: crossAxisAlignment: CrossAxisAlignment.stretch,
CrossAxisAlignment.stretch,
children: [ children: [
Row( Row(
children: [ children: [
Icon( Icon(
Icons.business, Icons.business,
color: Theme.of(context) color: Theme.of(context).colorScheme.primary,
.colorScheme size: 20,
.primary,
size: 24,
), ),
const SizedBox(width: 10), const SizedBox(width: 8),
Expanded( Expanded(
child: Text( child: Text(
'기업 소속 가입 안내', '기업/가족사 소속이신가요?',
style: TextStyle( style: TextStyle(
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
fontSize: 15, fontSize: 14,
color: Theme.of(context) color: _signupInk,
.colorScheme
.primary,
), ),
), ),
), ),
], ],
), ),
const SizedBox(height: 12), const SizedBox(height: 8),
Text( Text(
'기업/가족사 소속 회원은 바로 가입하는 대신 별도 문의를 통해 가입 및 워크스페이스 연동이 진행됩니다.\n\n아래 버튼을 눌러 담당자에게 가입 문의 메일을 보내거나 baroncs@baroncs.co.kr로 직접 문의해 주시기 바랍니다.', '기업가족사 임직원은 온라인 즉시 가입 대신 별도 연동 문의를 통해 워크스페이스 계정이 발급됩니다.\n\n아래 버튼을 눌러 담당자에게 문의 메일을 발송해 주시기 바랍니다.',
style: TextStyle( style: TextStyle(
fontSize: 13, fontSize: 12,
height: 1.5, height: 1.45,
color: _signupInk color: _signupInk.withValues(alpha: 0.7),
.withValues(alpha: 0.8),
), ),
), ),
const SizedBox(height: 16), const SizedBox(height: 12),
FilledButton.icon( OutlinedButton.icon(
onPressed: () async { onPressed: () async {
final Uri emailUri = Uri( final Uri emailUri = Uri(
scheme: 'mailto', scheme: 'mailto',
@@ -1857,49 +1796,19 @@ Matters not expressly provided in this Policy are governed by the Company's inte
await launchUrl(emailUri); await launchUrl(emailUri);
} }
}, },
icon: const Icon(Icons.mail_outline, icon: const Icon(Icons.mail_outline, size: 16),
size: 18),
label: const Text('기업 소속 문의하기'), label: const Text('기업 소속 문의하기'),
style: FilledButton.styleFrom( style: OutlinedButton.styleFrom(
shape: RoundedRectangleBorder( shape: RoundedRectangleBorder(
borderRadius: borderRadius: BorderRadius.circular(8),
BorderRadius.circular(8),
), ),
padding: const EdgeInsets.symmetric( padding: const EdgeInsets.symmetric(vertical: 10),
vertical: 12),
), ),
), ),
], ],
), ),
), ),
], ],
],
),
),
],
),
),
if (_affiliationType == 'GENERAL') ...[
const SizedBox(height: 18),
_buildProfileFieldGroup(
title: tr(
'ui.userfront.signup.profile.department_optional',
),
description: '선택 입력 항목입니다.',
isDesktop: isDesktop,
child: TextFormField(
controller: _deptController,
onChanged: (_) => setState(() {}),
decoration: InputDecoration(
labelText: tr(
'ui.userfront.signup.profile.department_optional',
),
border: const OutlineInputBorder(),
),
),
),
],
],
), ),
), ),
), ),
@@ -2374,13 +2283,7 @@ Matters not expressly provided in this Policy are governed by the Company's inte
canGoNext = true; canGoNext = true;
} }
if (_currentStep == 3) { if (_currentStep == 3) {
final nameOk = _nameController.text.trim().isNotEmpty; canGoNext = _nameController.text.trim().isNotEmpty;
if (_affiliationType == 'GENERAL') {
canGoNext = nameOk;
} else {
// 기업 소속(AFFILIATE)인 경우 직접 가입 대신 문의로 안내하므로 다음 단계 진행을 차단합니다.
canGoNext = false;
}
} }
return Scaffold( return Scaffold(