Skip to content

RFC: Should plugin-better-auth-dashboard support plugins itself #25

Description

@Link2Twenty

Currently in strapi we can add menu links and settings links. Should we be able to add dashboard links if the dashboard plugin is installed?

Something like this?

app.betterAuth.addSettingsLink('global', {
  id: `${PLUGIN_ID}.plugin.name`,
  to: `/plugins/better-auth-dashboard/${PLUGIN_ID}`,
  intlLabel: { id: `${PLUGIN_ID}.plugin.name`, defaultMessage: 'Seat Management' },
  Component: async () => import('./pages/App'),
  permissions: [],
})

or

app.addAuthLink('global', {
  id: `${PLUGIN_ID}.plugin.name`,
  to: `/plugins/better-auth-dashboard/${PLUGIN_ID}`,
  intlLabel: { id: `${PLUGIN_ID}.plugin.name`, defaultMessage: 'Email Templates' },
  Component: async () => import('./pages/App'),
  permissions: [],
})

Use cases I can see being useful would be things like a seat management plugin or an inline email template editor. It also means that people can add to the auth without needing to roll things into the core plugin.

Thoughts? Is this something we should look in to?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels
    No fields configured for Feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions