feat: integrate agent edit profile screen as an embedded tab in profile settings and restrict agent connection actions to non-agent users
This commit is contained in:
@@ -71,7 +71,11 @@ class _EditProfileData {
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
class AgentEditProfileScreen extends ConsumerStatefulWidget {
|
||||
const AgentEditProfileScreen({super.key});
|
||||
/// When true, omits the in-screen back button + title row so this widget can
|
||||
/// be embedded inside another shell (e.g. a tab in ProfileSettingsScreen).
|
||||
final bool embedded;
|
||||
|
||||
const AgentEditProfileScreen({super.key, this.embedded = false});
|
||||
|
||||
@override
|
||||
ConsumerState<AgentEditProfileScreen> createState() =>
|
||||
@@ -433,6 +437,10 @@ class _AgentEditProfileScreenState
|
||||
Widget build(BuildContext context) {
|
||||
final asyncData = ref.watch(_editProfileDataProvider);
|
||||
|
||||
if (widget.embedded) {
|
||||
return _buildBody(asyncData);
|
||||
}
|
||||
|
||||
return Column(
|
||||
children: [
|
||||
// Header with back button
|
||||
|
||||
Reference in New Issue
Block a user