Skip to content

Display permission error instead of blank page in transcription interfaces#369

Merged
cubap merged 4 commits intomainfrom
copilot/fix-loading-projects-permissions
Dec 16, 2025
Merged

Display permission error instead of blank page in transcription interfaces#369
cubap merged 4 commits intomainfrom
copilot/fix-loading-projects-permissions

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Dec 16, 2025

Transcription interfaces (/transcribe and /transcribe-simple) render a blank white page when users lack permissions. Other interfaces display error messages.

Changes

  • Added utilities/renderPermissionError.js: Shared utility for rendering styled permission errors with navigation links
  • Updated interfaces/transcription/index.js: Replace this.remove() with renderPermissionError() call in authgate
  • Updated components/simple-transcription/index.js: Replace this.remove() with renderPermissionError() call in authgate

Before/After

// Before: Removes element, leaving blank page
async authgate() {
  if (!CheckPermissions.checkViewAccess("ANY", "CONTENT")) {
    this.remove()
    return
  }
  // ...
}

// After: Displays styled error message
async authgate() {
  if (!CheckPermissions.checkViewAccess("ANY", "CONTENT")) {
    this.renderPermissionError()
    return
  }
  // ...
}

Users now see "Permission Denied" heading with explanation and navigation options (Back to Project / Go to Home) instead of a blank page.

Original prompt

This section details on the original issue you should resolve

<issue_title>Loading Projects Without Correct Permissions in Transcribe</issue_title>
<issue_description>Other interfaces and components warn that the user does not have the appropriate permissions. The transcription interface just gives a blank white page.

Image</issue_description>

<agent_instructions>confirm correct behavior at /transcribe and/transcribe-simple</agent_instructions>

Comments on the Issue (you are @copilot in this section)


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 2 commits December 16, 2025 18:57
Co-authored-by: cubap <1119165+cubap@users.noreply.github.com>
Co-authored-by: cubap <1119165+cubap@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix loading projects without correct permissions in transcribe Display permission error instead of blank page in transcription interfaces Dec 16, 2025
Copilot AI requested a review from cubap December 16, 2025 19:02
@github-actions
Copy link
Copy Markdown
Contributor

@cubap cubap marked this pull request as ready for review December 16, 2025 19:22
@cubap cubap merged commit c75ee70 into main Dec 16, 2025
1 check passed
@cubap cubap deleted the copilot/fix-loading-projects-permissions branch December 16, 2025 19:22
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.

Loading Projects Without Correct Permissions in Transcribe

2 participants