Repository navigation
Conversation
Contributor
|
ready for review? |
Contributor
|
pls attach a demo showing the functionality @audriu |
Contributor
Author
Screen_Recording_20251006_084243_Omi.Dev.mp4Please see attached. |
Contributor
Where are you storing the name of device? I see no firmware changes |
Contributor
Author
|
For now, this only stores the device name in the app so users can manage the names of their Omi devices locally. |
Contributor
|
But what if I connect through a new phone? It should store in local onboard storage of omi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Device Rename Feature - Summary of Changes
Fixes #2824
Overview
This PR implements the ability for users to rename their Omi device after connection. The custom "Device Name" is stored in local storage and persists across app sessions. The app now distinguishes between:
Both are displayed throughout the app, with the custom Device Name shown prominently while preserving the original Product Name for reference.
Key Distinction
Before This PR:
After This PR:
This allows users to personalize their device while maintaining technical reference to the actual product.
Features Added
1. Custom Device Name Storage
2. Device Rename UI
3. Display Name Integration
Files Modified
app/lib/backend/preferences.dartChanges:
setCustomDeviceName(String deviceId, String customName)methodgetCustomDeviceName(String deviceId)methodclearCustomDeviceName(String deviceId)methodPurpose: Store and retrieve custom device names per device ID in local storage
app/lib/backend/schema/bt_device/bt_device.dartChanges:
getDisplayName()method to BtDevice classPurpose: Provides a unified method to get the display name (custom name if set, otherwise original device name)
app/lib/pages/settings/change_device_name_widget.dart(NEW FILE)Changes:
Purpose: Provides the UI for users to rename their device
app/lib/pages/settings/device_settings.dartChanges:
change_device_name_widget.dartgetDisplayName()method for Device NamePurpose: Integrate rename functionality into device settings, display both Device Name and Product Name, and ensure cleanup on device removal
app/lib/pages/home/device.dartChanges:
change_device_name_widget.dartgetDisplayName()methodgetDisplayName())device.namefrom BTPurpose: Display custom device name prominently while preserving original product name for reference, and provide easy access to rename functionality
Technical Implementation
Storage Strategy
Display Logic
Usage Throughout App
User Flow
Setting a Custom Name:
Viewing Custom Name:
Persistence:
Multiple Devices:
Testing Recommendations
Manual Testing Checklist
Edge Cases to Test