Skip to main content
Create a Feedback Admin panel in 15 Minutes with Refine and Strapi
7 min read

Create a Feedback Admin panel in 15 Minutes with Refine and Strapi


This post was created using version 3.x.x of refine. Although we plan to update it with the latest version of refine as soon as possible, you can still benefit from the post in the meantime.

You should know that refine version 4.x.x is backward compatible with version 3.x.x, so there is no need to worry. If you want to see the differences between the two versions, check out the migration guide.

In this article, we will create a panel where we can manage the feedback we receive from our web application.

We will quickly create an api with and then develop its frontend with refine. Thus, let's see how an admin panel can be created in a very short time with the perfect harmony of Strapi and refine.

Features that our panel will have:

  • Authentication with
  • A page to list feedbacks
  • Mutation on Feedbacks

Creating api with Strapi

Let's create our backend project with Strapi's quick start guide.

npx create-strapi-app strapi-feedback-api --quickstart

After the installation is complete, the tab will automatically open in the browser. Here, let's create a feedback collection with Content-Types Builder.

Quite simply, a feedback should have a description text field, A page text field that shows the page the feedback was sent from, and a type enumeration field indicating the type of feedback (issue, idea, other, archive).


Creating panel with refine

Let's create our frontend project with refine's setting up guide.

There are two alternative methods to set up a refine application. We will quickly create our application with superplate.

npm create refine-app@latest refine-feedback-client -- -b v3

Select the following options to complete the CLI wizard:

? Select your project type:
❯ refine-react

? What will be the name of your app:
> refine-strapi-web

? Package manager:
❯ Npm

? Do you want to use a UI Framework?:
❯ Ant Design

? Do you want a customized theme?:
❯ Default theme

? Router Provider:
❯ React Router v6

? Data Provider:
❯ Strapi v3

? Do you want a customized layout?
❯ Yes

? i18n - Internationalization:
❯ No

After the installation is completed, Strapi-specific data provider, auth provider, and also layout components that we can change the default view of Refine with the custom layout option will be included in our project.

Now, bootstrap the app with the following command:

npm run dev

Now let's list the changes we will make:

  • Change our Strapi API URL
  • Remove components that we will not use when changing the refinement look
  • Adding resources according to the collection name we created in Strapi
+ import { Refine } from "@pankod/refine";
import "@pankod/refine/dist/styles.min.css";
import { DataProvider } from "@refinedev/strapi";
import strapiAuthProvider from "authProvider";
import {
- Title,
- Sider,
- Footer,
} from "components";

function App() {
- const API_URL = "your-strapi-api-url";
+ const API_URL = "http://localhost:1337";

const { authProvider, axiosInstance } = strapiAuthProvider(API_URL);
const dataProvider = DataProvider(API_URL, axiosInstance);
return (
- Title={Title}
- Sider={Sider}
- Footer={Footer}
name: "feedbacks",

export default App;

After adding the resource, our auth provider was activated.


Now let's create a user on the Strapi to be able to login to the application.


We created a user and login to the application with this user.


Let's customize the layout component, remove the sider and add a header.

Custom Layout

import React from "react";
import { Layout as AntLayout } from "antd";

import { LayoutProps } from "@pankod/refine";

export const Layout: React.FC<LayoutProps> = ({ children, Header, OffLayoutArea }) => {
return (
<AntLayout style={{ minHeight: "100vh", flexDirection: "row" }}>
<Header />
<OffLayoutArea />

Let's customize the header component too

Custom Header

import React from "react";
import { Layout } from "antd";

export const Header: React.FC = () => {
return (
display: "flex",
justifyContent: "center",
alignItems: "center",
height: "64px",
backgroundColor: "#FFF",
borderBottom: "1px solid #f0f0f0",
<img src="./refeedback.png" alt="refeedback" style={{ width: "250px" }} />

In the new view, there are no siders anymore and the header we have customized is here.


Now we come to the part where we can list our feedback and make changes to it. Before that, let's create dummy feedback records on Strapi.


Create a FeedbackList.tsx file under the pages folder. Then, let's create our component as follows with the components and hooks that come with refine.

Create FeedbackList

import {
} from "@pankod/refine";

import { IFeedback, IFeedbackFilterVariables, FeedBackType } from "interfaces";

const { Paragraph } = Typography;

const addTagColor = (type: FeedBackType) => {
switch (type) {
case "issue":
return "error";
case "idea":
return "orange";
return "default";

export const FeedbackList: React.FC = () => {
const { listProps, searchFormProps } = useSimpleList<IFeedback, HttpError, IFeedbackFilterVariables>({
sorters: {
initial: [{ field: "created_at", order: "desc" }],
onSearch: (params) => {
const filters: CrudFilters = [];
const { type } = params;

field: "type",
operator: "eq",
value: type || undefined,

return filters;

const { mutate, isLoading } = useUpdate();

const renderItem = (item: IFeedback) => {
const { id, description, type, page, created_at } = item;
return (
<Card hoverable>
<div style={{ display: "flex", justifyContent: "space-between" }}>
<Tag color={addTagColor(type)} style={{ textTransform: "capitalize" }}>
<DateField format="LLL" value={created_at} />
<Paragraph strong>{description}</Paragraph>
<Descriptions labelStyle={{ color: "grey", fontWeight: 600 }}>
<Descriptions.Item label="Path">{page}</Descriptions.Item>
<div style={{ display: "flex", justifyContent: "end", gap: "4px" }}>
onClick={() =>
resource: "feedbacks",
values: {
type: "archive",

return (
<List title="" pageHeaderProps={{ style: { height: "100%" } }}>
<Row gutter={[64, 0]} justify="center">
<Col xs={24} sm={24} md={4} lg={4} xl={4}>
onValuesChange={() => searchFormProps.form?.submit()}
type: "",
<Form.Item label="FILTERS" name="type">
<Space direction="vertical">
<Radio.Button value="">All</Radio.Button>
<Radio.Button value="issue">Issue</Radio.Button>
<Radio.Button value="idea">Idea</Radio.Button>
<Radio.Button value="other">Other</Radio.Button>
<Radio.Button value="archive">Archive</Radio.Button>
<Col xs={24} sm={24} md={14} lg={14} xl={14}>
<AntdList {...listProps} split={false} renderItem={renderItem} itemLayout="vertical" />
export type FeedBackType = "idea" | "issue" | "other" | "archive";

export interface IFeedback {
id: string;
description: string;
page: string;
user: string;
type: FeedBackType;
created_at: Date;

export interface IFeedbackFilterVariables {
type: FeedBackType;

In this component

See detailed usage of useSimpleList for adding new filters, adding search entries, dynamic sorting operations and more here.



Let's develop feedback widget where we can get feedback to expand the application a little more. For this application, I will develop this component with refine, but you can create this component with Strapi APIs in any way you want.

You can look at the code of the component I developed here.

Now let's add this component to the OfflayouArea component and create feedback on the page and see how it comes to our feedback list.


You can find the source code of the project here:

Related Articles

Build internal tools using Low-Code with refine, React-based framework

Why you should be using low-code app Refine to build internal tools? Learn how to build low-code apps using Refine, React and Ant Design.

Building a React Admin Panel with PrimeReact and refine

We'll build a simple React admin Panel using refine and PrimeReact.

refine vs Blitz.js

We will take a closer look at how to set both up, what are their internal builds, how they handle the data sources, how to implement the CRUD functionality, add authentication, and how to deploy them to production.