Skip to content

fix: restore getCredentials import and remove demo-only changes#18

Merged
nicomiguelino merged 1 commit into
developmentfrom
fix/revert-get-credentials-changes
May 19, 2026
Merged

fix: restore getCredentials import and remove demo-only changes#18
nicomiguelino merged 1 commit into
developmentfrom
fix/revert-get-credentials-changes

Conversation

@nicomiguelino

Copy link
Copy Markdown
Contributor

Summary

  • Restores getCredentials import from @screenly/edge-apps, removing the local override added for the demo
  • Fixes the broken instanceUrl assignment (was reading instance_url from wrong response shape)
  • Removes leftover debug console.log('Renat!!!')
  • Removes dashboard_id fallback; content_id is the only setting key

@nicomiguelino nicomiguelino self-assigned this May 19, 2026
@nicomiguelino nicomiguelino marked this pull request as ready for review May 19, 2026 18:31
@nicomiguelino nicomiguelino force-pushed the fix/revert-get-credentials-changes branch from 91b4350 to 7ee3d09 Compare May 19, 2026 18:34
- Re-import getCredentials from @screenly/edge-apps
- Remove local getCredentials override added for demo
- Remove debug console.log
- Remove dashboard_id fallback, use content_id only

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Reverts demo-specific local changes in src/main.ts, restoring use of the library-provided getCredentials from @screenly/edge-apps and aligning the credential response shape ({ token, metadata: { instance_url } }). Also removes a stray debug log and a no-longer-supported dashboard_id setting fallback.

Changes:

  • Re-import getCredentials from @screenly/edge-apps and remove the local override
  • Use metadata.instance_url from the new response shape (fixing the previously broken instanceUrl assignment) and drop the console.log('Renat!!!') debug statement
  • Drop the dashboard_id setting fallback, leaving content_id as the sole setting key

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

@nicomiguelino nicomiguelino merged commit 96184db into development May 19, 2026
5 checks passed
@nicomiguelino nicomiguelino deleted the fix/revert-get-credentials-changes branch May 19, 2026 18:38
nicomiguelino added a commit that referenced this pull request May 20, 2026
…#19)

- Re-import getCredentials from @screenly/edge-apps
- Remove local getCredentials override added for demo
- Remove debug console.log
- Remove dashboard_id fallback, use content_id only
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.

2 participants