Skip to content

Conversation

@konard
Copy link
Member

@konard konard commented Sep 14, 2025

Summary

  • Added family name (last name) support to user display in top user listings and reputation/karma change notifications
  • Users are now displayed with both first and last names for better identification

Changes Made

  • New method: Added get_user_full_name() method to Bot class that retrieves both first and last names from VK API
  • User creation: Updated BetterBotBaseDataService.get_or_create_user() to store full names (first + last) instead of just first names
  • Profile updates: Modified update_command() to use full names when updating user profiles
  • Karma messages: Updated karma change notifications to display full names
  • Mock class: Added get_user_full_name() method to VkInstance mock for testing

Before vs After

Before:

  • Top listings: [id123|John] - github.com/john Python, JavaScript
  • Karma changes: Карма изменена: [id123|John] [5]->[6]

After:

  • Top listings: [id123|John Smith] - github.com/john Python, JavaScript
  • Karma changes: Карма изменена: [id123|John Smith] [5]->[6]

Test Plan

  • Syntax validation passed for all modified Python files
  • New users will be created with full names stored
  • Existing users can update their profiles to get full names
  • Top command will display full names in user listings
  • Karma change notifications will show full names
  • Mock VK instance supports the new method for testing

🤖 Generated with Claude Code


Resolves #20

Adding CLAUDE.md with task information for AI processing.
This file will be removed when the task is complete.

Issue: #20
@konard konard self-assigned this Sep 14, 2025
* Add get_user_full_name method to Bot class to retrieve both first and last names from VK API
* Update user creation in BetterBotBaseDataService to store full names (first + last)
* Update user profile updates to use full names
* Update karma change messages to display full names instead of just first names
* Update VkInstance mock class to support get_user_full_name method
* Top user listings now show full names in format: [id123|John Smith] instead of [id123|John]
* Reputation/karma change notifications now display full names for better user identification

Fixes #20

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
@konard konard changed the title [WIP] Add family name to each user in top and in reputation change Add family name support to user display in top and reputation change Sep 14, 2025
@konard konard marked this pull request as ready for review September 14, 2025 03:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add family name to each user in top and in reputation change

1 participant