Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Info Panel is not visible on the dashboard #2611

Open
4 tasks done
chadpav opened this issue Oct 14, 2024 · 5 comments
Open
4 tasks done

Info Panel is not visible on the dashboard #2611

chadpav opened this issue Oct 14, 2024 · 5 comments
Labels
bounty:$10 Bounty applies for fixing this issue (Parse Bounty Program) type:bug Impaired feature or lacking behavior that is likely assumed

Comments

@chadpav
Copy link

chadpav commented Oct 14, 2024

New Issue Checklist

Issue Description

I want to expirement with the new Info Panel feature in the Dashboard. I've configured the feature accorinding to the README but I never see the 'Show/Hid Info Panel' button in the upper-right corner of the Data Browser.

Steps to reproduce

  1. Configure an example Parse Dashboard as express middleware as documented here
  2. Provide the infoPanel json structure
  3. Provide a generic implementation of a cloud function for the info panel to call.
  4. Open the Dashboard and navigate to the data class.
apps: [
{
infoPanel: [
        {
          title: 'User Details',
          classes: ['_User'],
          cloudCodeFunction: 'fetchUserDetailsPanel',
        },
      ],
...
}
]
Parse.Cloud.define(
  'fetchUserDetailsPanel',
  async (request: Parse.Cloud.FunctionRequest) => {
    configureSentryScope(request);
    const user = request.params.object as User;
    logger.info('Fetching details panel for user ' + user.id);

    const userDetailsPanel = {
      panel: {
        segments: [
          {
            title: 'Segment 1',
            description: 'Segment 1 description',
            items: [
              {
                title: 'Item 1',
                description: 'Item 1 description',
              },
            ],
          },
          {
            title: 'Segment 2',
            description: 'Segment 2 description',
            items: [
              {
                title: 'Item 2',
                description: 'Item 2 description',
              },
            ],
          },
        ],
      },
    };

    return userDetailsPanel;
  }
);

Actual Outcome

  • The cloud function is never called (so the response doesn't matter)
  • The 'Show/Hide Panel' button is never displayed.

Expected Outcome

  • I should see a 'Show/Hide' button and the info panel

Environment

  • node 20.12.3
  • "parse-dashboard": "~6.0.0",
  • "parse-server": "~7.3.0",

Dashboard

  • Parse Dashboard version: 6.0.0
  • Browser (Safari, Chrome, Firefox, Edge, etc.): Brave or Safari
  • Browser version: Brave 1.70

Server

  • Parse Server version: 7.3.0
  • Operating system: Mac OS
  • Local or remote host (AWS, Azure, Google Cloud, Heroku, Digital Ocean, etc): local

Database

  • System (MongoDB or Postgres): Mongo DB
  • Database version: 7.0
  • Local or remote host (MongoDB Atlas, mLab, AWS, Azure, Google Cloud, etc): MongoDB Atlas

Logs

nothing is printed to the logs

Copy link

parse-github-assistant bot commented Oct 14, 2024

Thanks for opening this issue!

  • 🚀 You can help us to fix this issue faster by opening a pull request with a failing test. See our Contribution Guide for how to make a pull request, or read our New Contributor's Guide if this is your first time contributing.

@chadpav
Copy link
Author

chadpav commented Oct 14, 2024

Moving conversation thread from the Pull Request to this issue for support:
#2584 (comment)

It looks like maybe this is because I run the dashboard as express middleware?

@mtrezza mtrezza added type:bug Impaired feature or lacking behavior that is likely assumed bounty:$10 Bounty applies for fixing this issue (Parse Bounty Program) labels Oct 14, 2024
@mtrezza
Copy link
Member

mtrezza commented Oct 30, 2024

@chadpav Maybe because of this bug? #2623

@chadpav
Copy link
Author

chadpav commented Oct 30, 2024

@chadpav Maybe because of this bug? #2623

I only have 1 app configured. I run the dashboard as middleware passing in config through the constructor and don't use the json file for configuration. @404-html made it sound like this method might not be supported?

@mtrezza
Copy link
Member

mtrezza commented Oct 30, 2024

That's possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bounty:$10 Bounty applies for fixing this issue (Parse Bounty Program) type:bug Impaired feature or lacking behavior that is likely assumed
Projects
None yet
Development

No branches or pull requests

2 participants