A Front sidebar plugin that allows teammates to view and manage customer subscriptions directly from conversation views.
Learn more about this project on our Developer Portal and access the AI prompt file that created it.
- 📊 View all customer subscriptions in one place
- 💳 Display subscription status, pricing, and billing dates
- 🔄 Update subscription plans with an intuitive modal interface
- ❌ Cancel subscriptions with confirmation
- ✅ Reactivate cancelled subscriptions
- 🌓 Dark/Light mode support
- 🐛 Debug panel for development (accessible with
?debug=true
)
- Node.js 16+ installed
- npm or yarn package manager
- Access to Front developer settings
- Clone this repository:
git clone <repository-url>
cd subscription-manager
- Install dependencies:
npm install
- Start the development server:
npm run dev
-
Note the localhost URL where the plugin is running (typically
http://localhost:3000
) -
To run in debug mode, append
?debug=true
to the plugin URL
- Build the plugin:
npm run build
- Preview the production build:
npm run preview
-
Create a Front Developer App:
- Go to your Front company settings
- Click on "Developers"
- Click "Create app"
- Fill in the app details:
- Name: "Subscription Manager"
- Description: "Manage customer subscriptions"
-
Add Plugin Feature:
- In your app settings, click "Add feature"
- Select "Plugin" as the feature type
- Configure the plugin:
- Type: Sidebar
- Name: "Subscription Manager"
- URL:
http://localhost:3000
(for development) - For debug mode:
http://localhost:3000?debug=true
-
Install the App:
- Save your app configuration
- Install the app in your Front workspace
- The plugin will appear in the sidebar when viewing conversations
- Open a conversation in Front
- The plugin will automatically load subscriptions for the conversation recipient
- View subscription details including plan, status, and billing information
- Change Plan: Click "Change Plan" to open the plan selector modal
- Cancel Subscription: Click "Cancel Subscription" (requires confirmation)
- Reactivate: For cancelled subscriptions, click "Reactivate Subscription"
Access debug mode by appending ?debug=true
to the plugin URL:
- View teammate information
- Inspect conversation details
- See message attachments
- Access live context JSON
- Review technical documentation
src/
├── components/
│ ├── SubscriptionManager.tsx # Main subscription UI
│ ├── DebugPanel.tsx # Debug information panel
├── providers/
│ └── FrontContext.tsx # Front SDK context provider
├── services/
│ └── subscriptionService.ts # Subscription data service
├── App.tsx # Main application component
└── main.tsx # Application entry point
- React 18 with TypeScript
- Vite for build tooling
- Front Plugin SDK
- Lucide React for icons
The plugin uses simulated subscription data for demonstration. In production, replace the subscriptionService.ts
with actual API calls to your subscription management system.
- Ensure the development server is running
- Check that the plugin URL in Front matches your localhost address
- Verify CSP headers are configured correctly in
vite.config.ts
- Ensure you have selected a conversation in Front
- Check the browser console for SDK loading errors
- Verify the Front Plugin SDK is installed correctly
- Make sure
?debug=true
is appended to the plugin URL in Front settings - Refresh the plugin after adding the query parameter
For issues or questions, please contact your Front administrator or refer to the Front Plugin SDK documentation.