diff --git a/plans/nicknames_and_chat_outline.md b/plans/nicknames_and_chat_outline.md index af48a5a1..7ec32c7d 100644 --- a/plans/nicknames_and_chat_outline.md +++ b/plans/nicknames_and_chat_outline.md @@ -1,3 +1,9 @@ # general idea: - users will be able to have and set nicknames -- a user's nickname will store in the browser cookie system \ No newline at end of file +- a user's nickname will store in the browser using persistence.js +- the user's nickname should probably just be in socket.data.nickname +- on connection, the web UI will tell the server "this is my nickname" + - completely enforced by the web UI +- replace any place in the web UI that shows a socket ID with the nickname +- list of users and nicknames will be sent in the session data to web clients + - this will be used in the future for a user list and chat \ No newline at end of file diff --git a/webui/src/settings/persistence.js b/webui/src/settings/persistence.js index 0b93d5e2..ef0a0f0d 100644 --- a/webui/src/settings/persistence.js +++ b/webui/src/settings/persistence.js @@ -33,4 +33,4 @@ export function saveSettings(settings) { console.warn('Failed to write settings cookie', error); // eslint-disable-line no-console return false; } -} +} \ No newline at end of file