Compare commits

...

3 Commits

Author SHA1 Message Date
Neeraj
ad95b5bd2d [mob] Add album join option for internal users (#7147)
## Summary
• Adds album join toggle in manage links widget behind internal user
flag
• Dynamic permission levels: Viewers or Collaborators based on collect
setting

## Test plan
- [ ] Verify toggle only appears for internal users
- [ ] Test toggle functionality
- [ ] Confirm description changes based on collect setting
2025-09-11 17:37:12 +05:30
Neeraj
6b1757fc36 Update internal changes log with new entries 2025-09-11 17:16:01 +05:30
Neeraj
42527c0cd5 [mob] Add album join option for internal users
Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-11 16:53:25 +05:30
2 changed files with 29 additions and 1 deletions

View File

@@ -53,6 +53,8 @@ class _ManageSharedLinkWidgetState extends State<ManageSharedLinkWidget> {
widget.collection!.publicURLs.firstOrNull?.enableDownload ?? true;
final isPasswordEnabled =
widget.collection!.publicURLs.firstOrNull?.passwordEnabled ?? false;
final isJoinEnabled =
widget.collection!.publicURLs.firstOrNull?.enableJoin ?? false;
final enteColorScheme = getEnteColorScheme(context);
final PublicURL url = widget.collection!.publicURLs.firstOrNull!;
final String urlValue =
@@ -94,6 +96,31 @@ class _ManageSharedLinkWidgetState extends State<ManageSharedLinkWidget> {
AppLocalizations.of(context).allowAddPhotosDescription,
),
const SizedBox(height: 24),
if (flagService.internalUser)
MenuItemWidget(
key: ValueKey("Allow join $isJoinEnabled"),
captionedTextWidget: const CaptionedTextWidget(
title: "Allow joining album (i)",
),
alignCaptionedTextToLeft: true,
menuItemColor: getEnteColorScheme(context).fillFaint,
trailingWidget: ToggleSwitchWidget(
value: () => isJoinEnabled,
onChanged: () async {
await _updateUrlSettings(
context,
{'enableJoin': !isJoinEnabled},
);
},
),
),
if (flagService.internalUser)
MenuSectionDescriptionWidget(
content: isCollectEnabled
? "Allow people with link to join your album as Collaborator"
: "Allow people with link to join your album as Viewer",
),
if (flagService.internalUser) const SizedBox(height: 24),
MenuItemWidget(
alignCaptionedTextToLeft: true,
captionedTextWidget: CaptionedTextWidget(

View File

@@ -1,5 +1,6 @@
- Neeraj: (i) Add allow joining album option in manage links
- Neeraj: Fix lock error + improve logViewer
- Laurens: text embedding caching for memories and discover
- Neeraj: (i) Option to send qr for link
- Neeraj: (i) Debug option to enable logViewer
- Neeraj: Potential fix for ios in-app payment
- Neeraj: Potential fix for ios in-app payment