Skip to content

fix: fix detail view rendering in docker#7

Merged
ontehfritz merged 2 commits intomainfrom
fix-render-docker
Feb 4, 2026
Merged

fix: fix detail view rendering in docker#7
ontehfritz merged 2 commits intomainfrom
fix-render-docker

Conversation

@ontehfritz
Copy link
Contributor

No description provided.

@ontehfritz ontehfritz merged commit 02d5c95 into main Feb 4, 2026
4 checks passed
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR refactors data fetching logic in three list view components (RoleListView, PermissionListView, and AccountListView) to fix rendering issues in Docker. Despite the PR title mentioning "detail view", the changes are actually in list views.

Changes:

  • Consolidated separate watch and fetch calls into a single watch with immediate: true option
  • Added null checks for tenantId before triggering fetch operations
  • Removed isTenantReady checks from template loading conditions

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
src/views/RoleListView.vue Refactored tenant watch to use immediate option and added tenantId null check; removed isTenantReady from loading condition
src/views/PermissionListView.vue Refactored tenant watch to use immediate option and added tenantId null check; removed isTenantReady from loading condition
src/views/AccountListView.vue Refactored tenant watch to use immediate option and added tenantId null check; removed isTenantReady from loading condition

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

<button @click="goToCreateRole">Create New Role</button>

<div v-if="!isTenantReady || loading">
<div v-if="loading">
Copy link

Copilot AI Feb 4, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The removal of the isTenantReady check can result in displaying "No roles found" when a system admin first loads the page before tenant selection completes. This is misleading. Consider importing tenantsLoading and isSystemAdmin from useTenant and updating the condition to: v-if="loading || (isSystemAdmin && tenantsLoading)" to show a loading state while tenants are being loaded for system administrators.

Copilot uses AI. Check for mistakes.
<button @click="goToCreatePermission">Create New Permission</button>

<div v-if="!isTenantReady || loading">
<div v-if="loading">
Copy link

Copilot AI Feb 4, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The removal of the isTenantReady check can result in displaying "No permissions found" when a system admin first loads the page before tenant selection completes. This is misleading. Consider importing tenantsLoading and isSystemAdmin from useTenant and updating the condition to: v-if="loading || (isSystemAdmin && tenantsLoading)" to show a loading state while tenants are being loaded for system administrators.

Copilot uses AI. Check for mistakes.
</div>

<div v-if="!isTenantReady || loading" class="tui-loading">Loading accounts</div>
<div v-if="loading" class="tui-loading">Loading accounts</div>
Copy link

Copilot AI Feb 4, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The removal of the isTenantReady check can result in displaying "No accounts found" when a system admin first loads the page before tenant selection completes. This is misleading. Consider importing tenantsLoading and isSystemAdmin from useTenant and updating the condition to: v-if="loading || (isSystemAdmin && tenantsLoading)" to show a loading state while tenants are being loaded for system administrators.

Copilot uses AI. Check for mistakes.
github-actions bot pushed a commit that referenced this pull request Feb 4, 2026
## [1.0.6](v1.0.5...v1.0.6) (2026-02-04)

### Bug Fixes

* fix detail view rendering in docker ([#7](#7)) ([02d5c95](02d5c95))
@github-actions
Copy link

github-actions bot commented Feb 4, 2026

🎉 This PR is included in version 1.0.6 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@ontehfritz ontehfritz deleted the fix-render-docker branch February 4, 2026 02:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants