MemberJunction / MJ

Main MemberJunction Repository
https://docs.memberjunction.org/
ISC License
4 stars 0 forks source link

Support Web Page Display within Workspaces/Dashboards #489

Open hiltongr opened 2 months ago

hiltongr commented 2 months ago

Need the ability to display web pages, as defined by a URL property, within MemberJunction Explorer dashboards and workspaces. Recommend adding iFrame component for rendering and displaying the HTML/page.

Use cases for consideration - displaying intranet pages, URL addressable reports (e.g. Tableau or Power BI), etc.

AN-BC commented 1 week ago

Let's implement this by:

  1. Creating a new Resource Type called Web Page
  2. Implement support for this new URL in the UI as an Angular component that simply wraps an IFRAME and uses the URL attribute of the Resource to pass to the IFRAME
  3. Change Dashboards to be able to display any Resource Type
  4. By making it a resource type it will be possible to display these in a worksapce, but we need some kind of way for an end user to add new tabs to their workspace for a web page, I think we can do this from the Home section of the app just for now add a button that allows a new tab to be created by first prompting the user with a dialog (use the mj-generic-dialog for this) and gets the user's input for the URL and then creates a new WorkspaceItem for the user's current workspace with this resource type