change user_name still used as login and add display_name for dashboard view instead of username on login

This commit is contained in:
Alberto-Audrix committed 2026-09-10 10:51:51 +07:00
1 parent 7a562c18ec
commit 11b0ca26a5
33 files changed
+180 -145

No files matched your search

@@ -10,8 +10,8 @@ const { listMock, createMock, updateMock, setPasswordMock, authState } = vi.hois
authState: {
user: {
id: 99,
user_login: 'account_admin',
user_name: 'account_admin',
display_name: 'account_admin',
status: 'account_admin' as string,
created_at: '',
updated_at: '',
@@ -45,8 +45,8 @@ describe('UserManagementPage', () => {
setPasswordMock.mockReset();
authState.user = {
id: 99,
user_login: 'account_admin',
user_name: 'account_admin',
display_name: 'account_admin',
status: 'account_admin',
created_at: '',
updated_at: '',
@@ -54,8 +54,8 @@ describe('UserManagementPage', () => {
listMock.mockResolvedValue([
{
id: 1,
user_login: 'gm1.login',
user_name: 'gm1',
user_name: 'gm1.login',
display_name: 'gm1',
status: 'gm',
managed_by_name: 'buh1',
created_at: '',
@@ -63,8 +63,8 @@ describe('UserManagementPage', () => {
},
{
id: 99,
user_login: 'account_admin',
user_name: 'account_admin',
display_name: 'account_admin',
status: 'account_admin',
managed_by_name: null,
created_at: '',
@@ -73,8 +73,8 @@ describe('UserManagementPage', () => {
]);
createMock.mockResolvedValue({
id: 2,
user_login: 'newgm',
user_name: 'newgm',
display_name: 'newgm',
status: 'gm',
created_at: '',
updated_at: '',
@@ -108,8 +108,8 @@ describe('UserManagementPage', () => {
await waitFor(() => {
expect(createMock).toHaveBeenCalledWith({
user_login: 'newgm',
user_name: 'New GM',
user_name: 'newgm',
display_name: 'New GM',
status: 'gm',
password: 'temp123',
});