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

feat(app-crm): project/sales kanban list view #4831

Merged
merged 34 commits into from
Aug 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
2e933db
feat(app-crm): project canban list view
alicanerdurmaz Aug 16, 2023
103e25f
feat(app-crm): add get color utils
alicanerdurmaz Aug 17, 2023
ae92a5a
chore(app-crm): export from index
alicanerdurmaz Aug 17, 2023
3ecc6f3
fix(app-crm): get-color typo
alicanerdurmaz Aug 17, 2023
5d340fe
chore(app-crm): remove affix on kanban column
alicanerdurmaz Aug 17, 2023
fc7df33
chore(app-crm): performance improvements
alicanerdurmaz Aug 17, 2023
0269a61
Merge remote-tracking branch 'origin/chore/app-crm-example' into ref-…
alicanerdurmaz Aug 17, 2023
08624f1
feat(app-crm): style improvements
alicanerdurmaz Aug 17, 2023
8287337
chore(app-crm): chore code structure
alicanerdurmaz Aug 17, 2023
e73c9bf
feat(app-crm): style improvements
alicanerdurmaz Aug 17, 2023
9a48317
feat(app-crm): style improvements
alicanerdurmaz Aug 18, 2023
ea4bdea
feat(app-crm): add sales kanban card
alicanerdurmaz Aug 18, 2023
72ae942
chore(app-crm): refactor file structure
alicanerdurmaz Aug 18, 2023
422be20
chore(app-crm): refactor file structure
alicanerdurmaz Aug 18, 2023
5fb3cdf
feat(app-crm): add won-lost drop area
alicanerdurmaz Aug 18, 2023
7d9e342
Merge remote-tracking branch 'origin/chore/app-crm-example' into ref-…
alicanerdurmaz Aug 18, 2023
64ca65f
feat(app-crm): create and delete deal stage
alicanerdurmaz Aug 18, 2023
4a0ca12
fix(app-crm): test
alicanerdurmaz Aug 18, 2023
605f54e
feat(app-crm): generate color from string for consistency
alicanerdurmaz Aug 18, 2023
b6ae9f8
feat(app-crm): hide won area if not dragging
alicanerdurmaz Aug 18, 2023
f8f79cc
feat(app-crm): dont send request if stageid is same
alicanerdurmaz Aug 18, 2023
76665b6
feat(app-crm): add get name initials
alicanerdurmaz Aug 18, 2023
992413f
chore(kanban): fix scroll containers
aliemir Aug 21, 2023
d4baab1
Revert "chore(kanban): fix scroll containers"
aliemir Aug 21, 2023
42848de
feat: create crm kanban modals (#4832)
salihozdemir Aug 21, 2023
ff449de
feat: add optimistic update to project kanban
alicanerdurmaz Aug 21, 2023
4a17d1c
fix: remove antd space use flex for properly vertical align
alicanerdurmaz Aug 21, 2023
aa22191
fix: invalidate issues
salihozdemir Aug 22, 2023
b0fcebe
feat: add optimistic update to sales kanban
alicanerdurmaz Aug 22, 2023
9ab2ba0
chore: update the types
salihozdemir Aug 22, 2023
f660e32
feat: add avatarUrl
alicanerdurmaz Aug 22, 2023
1979d25
fix: add deals sum aggregate
alicanerdurmaz Aug 22, 2023
58b0f2c
fix: avatars
salihozdemir Aug 22, 2023
4b5c45e
Merge branch 'ref-213-project-kanban-list-view' of https://github.com…
salihozdemir Aug 22, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions examples/app-crm/index.html
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<!doctype html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>refine crm app</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/png" href="/refine_favicon.png" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>refine crm app</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>
13 changes: 10 additions & 3 deletions examples/app-crm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,23 @@
"version": "0.0.1",
"private": true,
"dependencies": {
"@ant-design/icons": "5.0.1",
"@dnd-kit/core": "^6.0.8",
"@dnd-kit/modifiers": "^6.0.1",
"@dnd-kit/sortable": "^7.0.2",
"@refinedev/antd": "^5.34.0",
"@refinedev/core": "^4.34.0",
"@refinedev/cli": "^2.7.6",
"@refinedev/react-router-v6": "^4.5.0",
"@refinedev/core": "^4.34.0",
"@refinedev/nestjs-query-graphql": "^0.0.1",
"@refinedev/react-router-v6": "^4.5.0",
"@tanstack/react-query-devtools": "^4.32.6",
"antd": "^5.0.5",
"classnames": "^2.3.2",
"react": "^18.0.0",
"react-dom": "^18.0.0",
"react-router-dom": "^6.8.1",
"graphql-ws": "^5.9.1",
"@uiw/react-md-editor": "^3.19.5",
"recharts": "^2.7.3",
"dayjs": "^1.10.7"
},
Expand All @@ -35,9 +42,9 @@
"autoprefixer": "^10.4.1",
"cypress": "^12.11.0",
"eslint": "^8.24.0",
"prettier": "^2.7.1",
"postcss": "^8.1.4",
"postcss-nesting": "^12.0.1",
"prettier": "^2.7.1",
"typescript": "^4.7.4",
"vite": "^4.3.1",
"jest": "^29.3.1",
Expand Down
Binary file added examples/app-crm/public/refine_favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
46 changes: 38 additions & 8 deletions examples/app-crm/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import { Refine, Authenticated } from "@refinedev/core";
import { ReactQueryDevtools } from "@tanstack/react-query-devtools";
import { notificationProvider, ErrorComponent } from "@refinedev/antd";
import dayjs from "dayjs";
import utc from "dayjs/plugin/utc";
import relativeTime from "dayjs/plugin/relativeTime";

import routerProvider, {
NavigateToResource,
Expand All @@ -27,7 +25,13 @@ import { UpdatePasswordPage } from "./routes/update-password";
import { DashboardPage } from "./routes/dashboard/index";

import { CalendarPageWrapper } from "./routes/calendar/wrapper";
import { KanbanPage } from "./routes/scrumboard/kanban";
import {
KanbanPage,
KanbanCreatePage,
KanbanEditPage,
KanbanCreateStage,
KanbanEditStage,
} from "./routes/scrumboard/kanban";
import { SalesPage } from "./routes/scrumboard/sales";
import { CompaniesPage } from "./routes/companies";
import { CompanyShowPage } from "./routes/companies/show";
Expand All @@ -41,10 +45,10 @@ import { CalendarShowPage } from "./routes/calendar/show";
import { CalendarEditPage } from "./routes/calendar/edit";
import { CalendarCreatePage } from "./routes/calendar/create";

import "./styles/index.css";
import "./utilities/init-dayjs";

dayjs.extend(utc);
dayjs.extend(relativeTime);
import "./styles/antd.css";
import "./styles/index.css";

const App: React.FC = () => {
return (
Expand Down Expand Up @@ -99,9 +103,34 @@ const App: React.FC = () => {
/>
</Route>
<Route path="/scrumboard" element={<Outlet />}>
<Route path="kanban" element={<KanbanPage />} />
<Route
path="kanban"
element={
<KanbanPage>
<Outlet />
</KanbanPage>
}
>
<Route
path="create"
element={<KanbanCreatePage />}
/>
<Route
path="edit/:id"
element={<KanbanEditPage />}
/>
<Route
path="stages/create"
element={<KanbanCreateStage />}
/>
<Route
path="stages/edit/:id"
element={<KanbanEditStage />}
/>
</Route>
<Route path="sales" element={<SalesPage />} />
</Route>

<Route path="/companies">
<Route index element={<CompaniesPage />} />
<Route
Expand Down Expand Up @@ -150,6 +179,7 @@ const App: React.FC = () => {
</Routes>
<UnsavedChangesNotifier />
<DocumentTitleHandler />
<ReactQueryDevtools />
</Refine>
</ConfigProvider>
</BrowserRouter>
Expand Down
Loading
Loading