Connections view #130

Merged
jsegarra merged 5 commits from wbuezas/hedera-web-mindshore:feature/connections-view into beta 2025-03-28 13:33:10 +00:00
Member

PR relacionada de salix: verdnatura/salix#3597

PR relacionada de salix: https://gitea.verdnatura.es/verdnatura/salix/pulls/3597
wbuezas added 1 commit 2025-03-25 14:24:22 +00:00
gitea/hedera-web/pipeline/pr-beta This commit looks good Details
b691bf2cf4
Connections view
wbuezas requested review from jsegarra 2025-03-25 14:25:19 +00:00
jsegarra requested changes 2025-03-25 22:49:35 +00:00
Dismissed
@ -40,0 +72,4 @@
return;
}
const formattedConnections = data
Member

Esto se podría simplificar
connections.value = data .map(({ visitUser = {}, ...rest }) => ({ ...rest, user: visitUser.user, stamp: visitUser.stamp, visitAgent: visitUser.visitAccess?.visitAgent })) .filter(({ user }) => user);

Esto se podría simplificar `connections.value = data .map(({ visitUser = {}, ...rest }) => ({ ...rest, user: visitUser.user, stamp: visitUser.stamp, visitAgent: visitUser.visitAccess?.visitAgent })) .filter(({ user }) => user); `
Author
Member

Aplicado.

Commit: d9445f72e3

Aplicado. Commit: https://gitea.verdnatura.es/verdnatura/hedera-web/commit/d9445f72e3353d6b7d072c9a8add59a9447311b1
Member

En loopback se pueden crear scopes, de esta manera, no haria falta pasarle el filter.
Ahora ya está fusionada en salix, pero bueno, lo dejo como comentario a futuro

En loopback se pueden crear scopes, de esta manera, no haria falta pasarle el filter. Ahora ya está fusionada en salix, pero bueno, lo dejo como comentario a futuro
@ -109,13 +162,14 @@ onBeforeUnmount(() => clearInterval(intervalId.value));
>
<span
v-if="
Member

Esto se podria simplificar, porque el uso x6 de connection.visitagent no mola
Seria una funcion en el v-if y otra funcion a la que le pases connection y te lo devuelva formateado
Otra opcion es
const renderAgentDetails = (connection) => { const agent = connection.visitAgent; return agent?.platform && agent?.browser && agent?.version ? h('span', ${agent.platform} - ${agent.browser} - ${agent.version}) : null; };

<component :is="renderAgentDetails(connection)" />

Esto se podria simplificar, porque el uso x6 de connection.visitagent no mola Seria una funcion en el v-if y otra funcion a la que le pases connection y te lo devuelva formateado Otra opcion es `const renderAgentDetails = (connection) => { const agent = connection.visitAgent; return agent?.platform && agent?.browser && agent?.version ? h('span', `${agent.platform} - ${agent.browser} - ${agent.version}`) : null; };` ` <component :is="renderAgentDetails(connection)" />`
Author
Member

Aplicado.

Commit: 365d4d31e1

Aplicado. Commit: https://gitea.verdnatura.es/verdnatura/hedera-web/commit/365d4d31e105d5ccb748c046ce01b3db53eddc45
Member
https://gitea.verdnatura.es/verdnatura/hedera-web/pulls/130#issuecomment-85635 ![image](/attachments/271b6a12-5c08-4f42-9d63-c2908378ef2a)
wbuezas added 1 commit 2025-03-26 08:31:57 +00:00
gitea/hedera-web/pipeline/pr-beta This commit looks good Details
d9445f72e3
Acortar codigo
wbuezas added 1 commit 2025-03-26 08:37:37 +00:00
gitea/hedera-web/pipeline/pr-beta This commit looks good Details
365d4d31e1
Code improvement
wbuezas requested review from jsegarra 2025-03-26 08:38:15 +00:00
jsegarra approved these changes 2025-03-28 08:22:34 +00:00
jsegarra added 1 commit 2025-03-28 08:22:47 +00:00
jsegarra scheduled this pull request to auto merge when all checks succeed 2025-03-28 08:23:04 +00:00
jsegarra added 1 commit 2025-03-28 13:32:25 +00:00
gitea/hedera-web/pipeline/pr-beta This commit looks good Details
aa4e161c1f
Merge branch 'beta' into feature/connections-view
jsegarra merged commit 2f307e7a7b into beta 2025-03-28 13:33:10 +00:00
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: verdnatura/hedera-web#130
No description provided.