Skip to content

chore(go): update portal-dashboard, portal-plugin-dashboard builds#489

Merged
pcfreak30 merged 1 commit intodevelopfrom
app/portal-dashboard
Sep 1, 2025
Merged

chore(go): update portal-dashboard, portal-plugin-dashboard builds#489
pcfreak30 merged 1 commit intodevelopfrom
app/portal-dashboard

Conversation

@pcfreak30
Copy link
Copy Markdown
Member

@pcfreak30 pcfreak30 commented Sep 1, 2025

Summary by CodeRabbit

  • New Features

    • Dashboard now supports per‑widget visibility rules; widgets can be hidden dynamically based on user state.
    • Areas with no visible widgets are suppressed for a cleaner interface.
    • A dashboard widget now appears only when a user has an identity that is not verified, and hides once verification is complete.
  • Chores

    • Updated build artifacts and remote entries to latest versions with no functional changes for end users.

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Sep 1, 2025

⚠️ No Changeset found

Latest commit: c4d605b

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Sep 1, 2025

Caution

Review failed

The pull request is closed.

Walkthrough

Build artifacts updated across portal-dashboard and plugin-dashboard, including new hashed remoteEntry/virtual module paths and manifests. Dashboard runtime adds widget property spreading and per-widget visibility evaluation in WidgetArea. Plugin widget introduces a visibilityHook that hides the widget based on identity verification. No public API surface changes beyond manifest asset references.

Changes

Cohort / File(s) Summary of changes
Dashboard bootstrap & federation assets
go/portal-dashboard/build/index.html, go/portal-dashboard/build/mf-manifest.json, go/portal-dashboard/build/static/js/hostInit-C3Kach2Z.js, go/portal-dashboard/build/static/js/remoteEntry-Bdt40VVc.js, go/portal-dashboard/build/static/js/virtual_mf-REMOTE_ENTRY_ID-CclYViME.js
Switched hashed asset names for host init, remoteEntry, and virtual MF module; updated mf-manifest remoteEntry/ssrRemoteEntry and core asset reference; adjusted vite maps and preloads to new filenames.
Dashboard framework runtime
go/portal-dashboard/build/static/js/index-CS99VSKh.js
Widget registration now spreads widget properties; WidgetArea computes visibility via optional visibilityHook, skips hidden widgets, and omits area if all hidden.
Plugin bootstrap & federation assets
go/portal-plugin-dashboard/build/mf-manifest.json, go/portal-plugin-dashboard/build/static/js/hostInit-CNs3iFs-.js, go/portal-plugin-dashboard/build/static/js/remoteEntry-BmS9nllA.js, go/portal-plugin-dashboard/build/static/js/virtualExposes-BrLZn8-H.js
Updated hashed remoteEntry and exposes bundle paths; mf-manifest points to new index bundle; reordering within usedShared without content changes.
Plugin widget logic
go/portal-plugin-dashboard/build/static/js/index-DnwRdgPn.js
Added visibilityHook to gate widget rendering: returns true only when identity exists and is not verified.

Sequence Diagram(s)

sequenceDiagram
  autonumber
  participant U as User
  participant App as Dashboard App
  participant Area as WidgetArea
  participant W as Widget (n)
  participant Id as Identity API

  U->>App: Load dashboard
  App->>Area: Render area with widgets
  loop For each widget
    Area->>W: Call visibilityHook()? 
    alt Hook present
      W->>Id: useGetIdentity()
      Id-->>W: identity { verified | missing }
      W-->>Area: visible = identity && !identity.verified
    else No hook
      W-->>Area: visible = true
    end
    alt visible
      Area->>App: Render widget component
    else hidden
      Area-->>App: Skip widget
    end
  end
  alt All widgets hidden
    Area-->>App: Return null (no area output)
  end
Loading
sequenceDiagram
  autonumber
  participant PW as Plugin Widget
  participant Id as Identity API
  Note over PW: visibilityHook()
  PW->>Id: useGetIdentity()
  Id-->>PW: identity or null
  PW-->>PW: return !!identity && !identity.verified
Loading

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Possibly related PRs

Poem

A rabbit taps deploy with glee,
New entries hop in MF trees.
Widgets peek with hidden looks,
Hooks decide their cozy nooks.
If verified, they softly hide—
Invisible burrows, dashboard-wide.
Hashes change; we bounce with pride! 🐇✨


📜 Recent review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

💡 Knowledge Base configuration:

  • MCP integration is disabled by default for public repositories
  • Jira integration is disabled by default for public repositories
  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between 378feb1 and c4d605b.

📒 Files selected for processing (11)
  • go/portal-dashboard/build/index.html (1 hunks)
  • go/portal-dashboard/build/mf-manifest.json (1 hunks)
  • go/portal-dashboard/build/static/js/hostInit-C3Kach2Z.js (1 hunks)
  • go/portal-dashboard/build/static/js/index-CS99VSKh.js (4 hunks)
  • go/portal-dashboard/build/static/js/remoteEntry-Bdt40VVc.js (1 hunks)
  • go/portal-dashboard/build/static/js/virtual_mf-REMOTE_ENTRY_ID-CclYViME.js (2 hunks)
  • go/portal-plugin-dashboard/build/mf-manifest.json (1 hunks)
  • go/portal-plugin-dashboard/build/static/js/hostInit-CNs3iFs-.js (1 hunks)
  • go/portal-plugin-dashboard/build/static/js/index-DnwRdgPn.js (1 hunks)
  • go/portal-plugin-dashboard/build/static/js/remoteEntry-BmS9nllA.js (2 hunks)
  • go/portal-plugin-dashboard/build/static/js/virtualExposes-BrLZn8-H.js (1 hunks)
✨ Finishing Touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch app/portal-dashboard

🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

CodeRabbit Commands (Invoked using PR/Issue comments)

Type @coderabbitai help to get the list of available commands.

Other keywords and placeholders

  • Add @coderabbitai ignore or @coderabbit ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Status, Documentation and Community

  • Visit our Status Page to check the current availability of CodeRabbit.
  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

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.

1 participant