-
-
Notifications
You must be signed in to change notification settings - Fork 77
Add profile name functionality to heartbeat and settings #189
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: master
Are you sure you want to change the base?
Conversation
This change enhances user experience by allowing users to set a custom profile name, which can improve the identification of user sessions and preferences. Without this change, users would lack a personalized touch in their interactions, potentially leading to confusion when managing multiple profiles. * Introduced `getDisplayProfileName` to retrieve the profile name in the heartbeat function. * Added a new input field for custom profile name in the settings interface. * Implemented `generateProfileIdentifier` Signed-off-by: Thales Ceolin <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Important
Looks good to me! 👍
Reviewed everything up to 116d29b in 55 seconds. Click for details.
- Reviewed
220lines of code in6files - Skipped
0files when reviewing. - Skipped posting
6draft comments. View those below. - Modify your settings and rules to customize what types of comments Ellipsis leaves. And don't forget to react with 👍 or 👎 to teach Ellipsis.
1. src/background/heartbeat.ts:31
- Draft comment:
Including profileName in heartbeat data is a useful addition for session tracking. Ensure getDisplayProfileName returns an appropriate fallback when no custom name is set. - Reason this comment was not posted:
Confidence changes required:0%<= threshold50%None
2. src/background/main.ts:38
- Draft comment:
initializeProfileIdentifier is straightforward. Consider adding error handling around generateProfileIdentifier to catch potential failures. - Reason this comment was not posted:
Confidence changes required:33%<= threshold50%None
3. src/settings/index.html:54
- Draft comment:
The Profile Name input field is clearly implemented. Consider adding a maxlength attribute to limit input length and mitigate potential abuse. - Reason this comment was not posted:
Confidence changes required:33%<= threshold50%None
4. src/settings/main.ts:39
- Draft comment:
Custom profile name handling on save works well. It might be beneficial to add client-side validation (e.g., maximum length) beyond the HTML pattern. - Reason this comment was not posted:
Confidence changes required:33%<= threshold50%None
5. src/storage.ts:140
- Draft comment:
getDisplayProfileName provides a sensible fallback using a truncated profile identifier when no custom name is set. Verify that this fallback meets the display requirements. - Reason this comment was not posted:
Confidence changes required:33%<= threshold50%None
6. vite.config.ts:32
- Draft comment:
The custom plugin for copying the logo is a neat addition. Consider whether a missing logo file should trigger an error if it's critical for branding. - Reason this comment was not posted:
Confidence changes required:33%<= threshold50%None
Workflow ID: wflow_RR8zl8nGDXoZDmb7
You can customize by changing your verbosity settings, reacting with 👍 or 👎, replying to comments, or adding code review rules.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was there some problem with the current implementation? Vite should automatically copy all files to the bundled extension :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will remove that part, something happened and it didnt copy on my end.
other than that is there anything else you want to modify?
thanks for reviewing so quickly
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll take a closer look in the evening, it looks fine for now 😇
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
excellent. I've just removed the unecessary copy.
thanks again @BelKed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems that there is still missing a trailing space, please remove :)
The removal of the custom plugin for copying the logo file streamlines the Vite configuration, reducing unnecessary complexity. Without this change, the build process could have included redundant steps that may lead to confusion or errors in future maintenance. * Eliminated the custom plugin that copied the logo file from the media directory to the build directory. * Removed imports for file system operations and path resolution that were no longer necessary. Signed-off-by: Thales Ceolin <[email protected]>
BelKed
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change enhances the user experience by providing visibility into the user's profile directly within the popup. Without this addition, users would lack important contextual information, potentially leading to confusion regarding their current profile status. * Introduced a new table row in the HTML to display the user's profile. * Integrated the `getDisplayProfileName` function to fetch the profile name from storage. * Updated the `renderStatus` function to populate the profile name in the newly added HTML element. Signed-off-by: Thales Ceolin <[email protected]>
|
@BelKed just updated with your request. THanks for looking into it! |
|
friendly bump in case this is forgotten @BelKed |
|
I'm not a repo owner/maintainer, @ErikBjare is 😁 |


Allow users to set a custom profile name, which can improve the identification of user sessions and preferences. E.g.
Work profile for client X, Personal, etc.
getDisplayProfileNameto retrieve the profile name in the heartbeat function.generateProfileIdentifierImportant
Adds custom profile name functionality to heartbeat and settings, including UI input and storage handling.
profileNameto heartbeat data inheartbeat.tsusinggetDisplayProfileName().main.tswithgenerateProfileIdentifier().profileNameinindex.html.profileNameinmain.ts.getCustomProfileName,setCustomProfileName, andgetDisplayProfileNameinstorage.ts.generateProfileIdentifierto create unique profile identifiers.vite.config.tsto copy logo files during build.This description was created by
for 116d29b. You can customize this summary. It will automatically update as commits are pushed.