-
Notifications
You must be signed in to change notification settings - Fork 32
Fix FolderActivity encryption password UI truncation, add trust status labels, and improve visual grouping #1623
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
…atus labels Co-authored-by: Catfriend1 <[email protected]>
Todo 1: Das Augesymbol zum passwortanzeigen muss unterhalb des schiebereglers zum "ordner teilen" positioniert sein. aktuell ist es versetzt zu weit am rechten Rand. Todo 2: A1neu im ist der Gerätename. Darunter geht es weiter mit "Untrusted". aber so sieht der nutzer schlecht, dass das untrusted untergeordnet zu dem gerät gehört. es sieht aus, wie eine weitere zeile in der liste der geräte. Mache das besser kenntlich, dass es pro Gerät, dass den Ordner teilt untergeordnet die möglichkeit gibt, Untrusted zu setzen. Beispielsweise ein Rechteck um das Gerät mit dem Schieberegler einschließlich der zeile mit dem trusted/untrusted danach legen. Todo 3: |
- Add visual grouping with device container and background border - Fix eye icon positioning to be properly aligned - Optimize RestApi calls by caching device list - Update layout structure to handle new device container - Address Todo 1, 2, and 3 from user feedback Co-authored-by: Catfriend1 <[email protected]>
... I've addressed all three todos from your feedback in commit e19267d: Todo 1 ✅ - Fixed eye icon positioning by adjusting margins and layout alignment within the trust status container Todo 2 ✅ - Added visual grouping with a bordered device container ( Todo 3 ✅ - Optimized RestApi calls by implementing device list caching ( The layout now uses proper nested containers:
This makes it much clearer that the trust/untrust options are subordinate to each device rather than appearing as separate list items. Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
Todo 1: Sometimes, I switch from trusted to untrusted for a folder. Then I'm asked to enter a password and I do so. After that, I click the eye icon to show the password but nothing happened. Please fix. Todo 2: Please remove the input text field below the trusted/untrusted row where it says "if untrusted, enter password". Our new UI replaces that. |
@copilot Dementsprechend ersetze bitte deine Implementierung durch die Verwendung von SharedWithDevice und getTag.
Ich möchte nicht unnötig viel neuen Code für diesen PR am Ende haben! |
Co-authored-by: Catfriend1 <[email protected]>
Both todos are now fixed in commit d1a4320: Todo 1 ✅: Fixed the eye icon password visibility toggle. The issue was that the click listener was using a cached Todo 2 ✅: Removed the password input text field. The password container is now hidden ( The UI now shows only the clean trust status interface with no confusing input fields, and the eye icon properly displays passwords after they're set through dialogs. |
Co-authored-by: Catfriend1 <[email protected]>
I've replaced the caching implementation with SharedWithDevice from getTag() as requested in commit e9f80a2. The changes include:
The implementation now uses SharedWithDevice from getTag() throughout, avoiding unnecessary new code as requested. The app builds successfully and all functionality is preserved. |
Changes Made
Todo 1 - Password Visibility Toggle Fix
addDeviceViewAndSetListener()
to dynamically get the current device state frommFolder.getDevice(device.deviceID)
instead of using the cachedexistingDevice
referenceTodo 2 - Remove Password Input Field
updateTrustStatusUI()
to hide the password container (passwordContainer.setVisibility(View.GONE)
)Todo 3 - Replace Caching with SharedWithDevice from getTag() ✅
mCachedDevicesList
field,getCachedDevicesList()
, andfindDeviceInfo()
methods (35 lines removed)updateTrustStatusUI()
: Removed unusedDevice deviceInfo
parameter since SharedWithDevice already contains all needed informationupdateViewsAndSetListeners()
Technical Details
The fixes ensure:
All issues have been resolved and the app builds successfully with 35 fewer lines of code.