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

Feature/1069 chatroom復元 #44

Merged
merged 66 commits into from
Dec 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
66 commits
Select commit Hold shift + click to select a range
3c48d73
tag受信→表示の処理作成
usamaru33 Dec 7, 2024
95c5114
tagの表示はできるようにした。送信部分がまだ
Dec 7, 2024
45f4389
tagのrecommend機能のGPTなし版
Dec 9, 2024
e718b78
Merge branch 'develop' into feature/1044
usamaru33 Dec 10, 2024
349b915
homeのコンポーネントをfeature/home/user or communityにした
bearl27 Dec 10, 2024
883b7d7
Biome
bearl27 Dec 10, 2024
1b9f179
Merge pull request #54 from ShibeaRlz/feature/1051-user_home_not_tag
bearl27 Dec 10, 2024
4b6956c
Merge pull request #55 from ShibeaRlz/feature/1047-pass_eye
bearl27 Dec 10, 2024
a94b920
スカウト一覧の機能作成
maooz4426 Dec 10, 2024
c687c4c
修正
JavaLangRuntimeException Dec 11, 2024
252eab7
Merge remote-tracking branch 'origin/feature/2041' into feature/3001
JavaLangRuntimeException Dec 11, 2024
f825826
Merge branch 'develop' into feature/1044
usamaru33 Dec 11, 2024
3a0b9a0
toastの表示タイミング調整
maooz4426 Dec 11, 2024
0305433
Merge branch 'develop' into feature/1048-invite
maooz4426 Dec 11, 2024
348696d
タグのレコメンドを実装
JavaLangRuntimeException Dec 11, 2024
0c967e4
signupと同時にthreadを作成
JavaLangRuntimeException Dec 11, 2024
9fc8ef1
色もつけた
JavaLangRuntimeException Dec 11, 2024
687898e
やっちまった
JavaLangRuntimeException Dec 11, 2024
a1d378d
Merge pull request #57 from ShibeaRlz/feature/3001
JavaLangRuntimeException Dec 11, 2024
7871a10
やっちまった
JavaLangRuntimeException Dec 11, 2024
ed10a17
送信エラーを直せば終わり
usamaru33 Dec 11, 2024
2f0736d
page上では完成
bearl27 Dec 11, 2024
1b346d7
タグ設定画面完成
usamaru33 Dec 11, 2024
2fab53b
home画面のデザイン
bearl27 Dec 11, 2024
eeab8a5
Merge pull request #56 from ShibeaRlz/feature/1048-invite
bearl27 Dec 11, 2024
af6b624
Merge branch 'develop' into feature/1044
usamaru33 Dec 11, 2024
94316f2
Merge pull request #58 from ShibeaRlz/feature/1044
usamaru33 Dec 11, 2024
df44a84
biome
bearl27 Dec 11, 2024
292cdec
Userdetailも追加
JavaLangRuntimeException Dec 11, 2024
3450acf
user/homeにいけないバグと背景色を前面にするように修正 (#60)
maooz4426 Dec 12, 2024
292dda6
完成
bearl27 Dec 12, 2024
bf130fc
完成
bearl27 Dec 12, 2024
c94fc72
Merge branch 'develop' into feature/1049-scout_mail
bearl27 Dec 12, 2024
125f792
sessionできるように (#61)
maooz4426 Dec 12, 2024
6d1da43
結合できていました
bearl27 Dec 12, 2024
8069601
biome
bearl27 Dec 12, 2024
cf11e6e
biome
bearl27 Dec 12, 2024
6a6f914
Merge pull request #59 from ShibeaRlz/feature/1049-scout_mail
bearl27 Dec 12, 2024
6e2a215
チャットのエンドポイントの更新とチャット送信までの動作確認完了
Dec 12, 2024
fe4ec43
Merge pull request #64 from ShibeaRlz/feature/1056
zono0013 Dec 12, 2024
bc0276e
AI挙動完成
usamaru33 Dec 12, 2024
dfdb64e
デザイン調整途中
usamaru33 Dec 13, 2024
fe01510
Feature/1052 signup画面とsignin画面をリファクタ (#62)
maooz4426 Dec 13, 2024
2b74ae1
tagを全てかえす (#63)
JavaLangRuntimeException Dec 13, 2024
36356d2
feature/2057 tagのGetAllの修正 (#65)
JavaLangRuntimeException Dec 13, 2024
43410f5
完成 (#66)
bearl27 Dec 13, 2024
7ede230
usercardからuser詳細にいくように (#67)
maooz4426 Dec 13, 2024
9551bc0
Fix/logo (#69)
maooz4426 Dec 13, 2024
d322719
ドロップダウンメニューにtag (#70)
maooz4426 Dec 13, 2024
844b011
Feature/1058 community detail (#68)
maooz4426 Dec 13, 2024
c3f08d4
tagデザイン完成
usamaru33 Dec 13, 2024
7196870
lint fix
maooz4426 Dec 13, 2024
206092b
Merge remote-tracking branch 'origin/develop' into feature/1058
maooz4426 Dec 13, 2024
4a651d1
fix
maooz4426 Dec 13, 2024
b027f61
fix
maooz4426 Dec 13, 2024
8353eb3
fix
maooz4426 Dec 13, 2024
58a0019
fix
maooz4426 Dec 13, 2024
43d3a2c
console.log削除,バリデーション,パスカルに変換
bearl27 Dec 13, 2024
3a7c341
Merge pull request #72 from ShibeaRlz/feature/1063-signup-validate
bearl27 Dec 13, 2024
178c3b9
Merge branch 'develop' into feature/1058
bearl27 Dec 13, 2024
e114bad
Merge pull request #71 from ShibeaRlz/feature/1058
bearl27 Dec 13, 2024
e5da410
build成功
bearl27 Dec 13, 2024
829f695
Merge pull request #73 from ShibeaRlz/fix/to_release_01
bearl27 Dec 13, 2024
4ac2112
Tagのfix
usamaru33 Dec 13, 2024
ced9a5a
tagcolor追加
usamaru33 Dec 14, 2024
a8d1922
fix
usamaru33 Dec 14, 2024
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
4 changes: 3 additions & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,12 @@ jobs:
workdir: client
github_token: ${{ secrets.GITHUB_TOKEN }}
reporter: github-pr-review
filter_mode: 'file'
filter_mode: 'added'
- name: stylelint
uses: reviewdog/action-stylelint@v1
with:
workdir: client
fail_on_error: 'true'
filter_mode: 'added'
reporter: github-pr-review # Change reporter.
stylelint_input: '**/*.scss'
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
docker/swagger/bundle:
docker run -v $(PWD):/spec --rm redocly/cli:latest bundle docs/swagger/root.swagger.yml --output=docs/swagger/generated.gen.swagger.yml

docker/swagger/validate:
docker run -v ${PWD}:/tmp --rm openapitools/openapi-generator-cli validate -i /tmp/docs/swagger/generated.gen.swagger.yml

run-local:
cd server && make run-local /&
cd client && yarn dev
3 changes: 3 additions & 0 deletions client/biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@
"useExhaustiveDependencies": "off",
"noUnusedVariables": "error",
"noUnusedImports": "error"
},
"suspicious": {
"noArrayIndexKey": "off"
}
}
},
Expand Down
4 changes: 2 additions & 2 deletions client/src/app/community/chat/page.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"use client";

import ChatRooms from "@/features/chat/components/chat-rooms";
import ChatWindow from "@/features/chat/components/chat-window";
import ChatRooms from "@/features/chat/components/ChatRooms";
import ChatWindow from "@/features/chat/components/ChatWindow";
import { Room } from "@/features/chat/types/types";
import { useState } from "react";
import "./Page.scss";
Expand Down
6 changes: 0 additions & 6 deletions client/src/app/community/event/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import { Skeleton } from "@/components/ui/skeleton";
import { EventCard } from "@/features/event";
import { getEvents } from "@/features/event/hooks/get-events";
import { EventType } from "@/features/event/types/event";
import { Menubar } from "@/features/menubar/components/Menubar";
import { Popup } from "@/features/popup";
import { TagType } from "@/features/tags/types/tag";
import { useEffect, useState } from "react";
Expand Down Expand Up @@ -61,14 +60,12 @@ const EventPage = () => {
}, [invitedEvents]);

const handleEventClose = () => {
console.log("Event closed");
};

return (
<>
{/*<AuthProvider>*/}
{!loading && events.length > 0 && showPopup && <Popup cards={events} />}
<Menubar />
<div className={styles.inviteCheck}>
<InviteCheck size={500} />
</div>
Expand Down Expand Up @@ -103,9 +100,6 @@ const EventPage = () => {
publisher={event.community_info.name}
publisherIcon={event.community_info.img}
datetime={event.date}
tags={event.tag.map(tag => ({
name: tag.toString(),
}))}
imageUrl={event.img}
liked={false}
handleEventClose={handleEventClose}
Expand Down
2 changes: 1 addition & 1 deletion client/src/app/community/event/setting/style.module.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@use "../../../styles/theme";
@use "@/styles/theme";

.background {
background-color: theme.$black;
Expand Down
110 changes: 5 additions & 105 deletions client/src/app/community/home/page.tsx
Original file line number Diff line number Diff line change
@@ -1,107 +1,7 @@
"use client";
import { CommunityHome } from "@/features/home/community";

import { Badge } from "@/components/ui/badge";
import { Button } from "@/components/ui/button";
import { Input } from "@/components/ui/input";
import { ScrollArea } from "@/components/ui/scroll-area";
import { User } from "@/features/account/types/user";
import { UserCard } from "@/features/community-home/components/user-card";
import { GetUsers } from "@/features/community-home/hooks/gets-users";
import { Search } from "lucide-react";
import { useEffect, useState } from "react";
import styles from "./style.module.scss";
const CommunityHomePage = () => {
return <CommunityHome />;
};

export default function Home() {
const [users, setUsers] = useState<User[]>([]);
const [searchQuery, setSearchQuery] = useState("");
const [selectedUser, setSelectedUser] = useState<User[]>([]);
const [textAreaValue, setTextAreaValue] = useState("");

useEffect(() => {
GetUsers().then(users => {
setUsers(users);
});
}, []);

const filteredUsers = users.filter(user =>
user.name.toLowerCase().includes(searchQuery.toLowerCase()),
);

const handleCardClick = (user: User) => {
if (!selectedUser.includes(user)) {
setSelectedUser([...selectedUser, user]);
} else {
setSelectedUser(selectedUser.filter(selected => selected !== user));
}
};

const handleSubmit = () => {
//selectedUserのuuidをconsole.logで出力
selectedUser.map(user => console.log(user.uuid));
console.log(textAreaValue);
setTextAreaValue("");
};

return (
<>
<h1 className="text-2xl font-bold text-white mt-4 ml-10">ホーム</h1>
<div className="container mx-auto p-4">
<div className="flex justify-center mb-6">
<div className="w-full max-w-md relative">
<Input
type="text"
placeholder="ユーザー名で検索..."
value={searchQuery}
onChange={e => setSearchQuery(e.target.value)}
className="w-full pr-10"
/>
<div className="absolute right-3 top-1/2 transform -translate-y-1/2 text-gray-500">
<Search size={20} />
</div>
</div>
</div>

<ScrollArea className="h-96 w-full rounded-md border">
<div className="grid grid-cols-2 gap-2 p-4">
{filteredUsers.map(user => {
return (
<UserCard
key={user.name}
uuid={user.uuid}
username={user.name}
icon={user.img}
tags={user.tags}
detail={user.self}
university={user.mem1}
onClick={() => {
handleCardClick(user);
}}
/>
);
})}
</div>
</ScrollArea>
<div className="mt-4">
<div className="w-full h-full pointer-events-none">
<div className="p-2">
{selectedUser.map(user => (
<span key={user.uuid} className={`${styles.userName} ${styles.fadeIn}`}>
<Badge className="bg-white text-black border-blue-500">{user.name}</Badge>
</span>
))}
</div>
</div>
<textarea
className="w-full h-60 p-2 border rounded-md"
value={textAreaValue}
onChange={e => setTextAreaValue(e.target.value)}
placeholder="スカウトメッセージを入力してください..."
/>
<div className="flex justify-end mt-2">
<Button onClick={handleSubmit}>招待を送る</Button>
</div>
</div>
</div>
</>
);
}
export default CommunityHomePage;
2 changes: 1 addition & 1 deletion client/src/app/community/home/setting/style.module.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@use "../../../styles/theme";
@use "@/styles/theme";

.background {
background-color: theme.$black;
Expand Down
36 changes: 0 additions & 36 deletions client/src/app/community/home/style.module.scss

This file was deleted.

4 changes: 2 additions & 2 deletions client/src/app/community/profile/setting/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import { ProfileSetting } from "@/features/profile/components/ProfileSetting";

const ProfileSettingPage = () => {
return (
<>
<div>
<ProfileSetting type="community" />
</>
</div>
);
};

Expand Down
2 changes: 1 addition & 1 deletion client/src/app/community/signup/page.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { SignUpDialog } from "@/features/signup/components/signup";
import { SignUpDialog } from "@/features/signup/components/Signup";
// import style from "./style.module.scss";

const SignupPage = () => {
Expand Down
2 changes: 1 addition & 1 deletion client/src/app/community/signup/style.module.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@use "../../../styles/theme";
@use "@/styles/theme";

.body {
background-color: theme.$gray;
Expand Down
43 changes: 43 additions & 0 deletions client/src/app/community/signup/tags/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
import { TagCard } from "@/features/tags/components/TagCard";
import style from "./style.module.scss";

const RegisterTags = () => {
const mockData = {
message: "sign in successful",
tags: [
{
ID: 2,
color: "red",
Name: "st",
},
{
ID: 3,
color: "blue",
Name: "a",
},
{
ID: 5,
color: "green",
Name: "r",
},
{
ID: 1,
color: "gray",
Name: "hogehoge",
},
{
ID: 4,
color: "purple",
Name: "d",
},
],
};

return (
<div className={style.card}>
<TagCard type={"community"} />
</div>
);
};

export default RegisterTags;
Empty file.
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
"use client";

import { ProfileDetailCard } from "@/features/profile/components/Profile";
import { ChevronRight } from "lucide-react";
import Link from "next/link";
import { useSearchParams } from "next/navigation";
import { Suspense } from "react";
import style from "./style.module.scss";

const ProfileDetailPage = () => {
return (
<>
<p className={style.profile_overview}>ユーザー詳細</p>
<div className={style.profile_detail_card}>
<ProfileDetailCard />
<Suspense fallback={<div>Loading...</div>}>
<ProfileDetailContent />
</Suspense>
</div>
<Link href={"/community/home"} className={style.link_home}>
<ChevronRight size={36} strokeWidth={3} />
Expand All @@ -20,4 +23,11 @@ const ProfileDetailPage = () => {
);
};

export default ProfileDetailPage;
const ProfileDetailContent = () => {
const searchParams = useSearchParams();
const uuid = searchParams.get("uuid");

return <ProfileDetailCard uuid={uuid || ""} />;
};

export default ProfileDetailPage;
14 changes: 8 additions & 6 deletions client/src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,14 @@ export default function RootLayout({
}>) {
return (
<html lang="ja">
<body className="min-h-screen">
<BackGroundColor>
<Menubar />
<main className="flex-grow">{children}</main>
<Toaster />
</BackGroundColor>
<body className="min-h-screen overflow-hidden">
<div className="overflow-auto h-screen">
<BackGroundColor>
<Menubar />
<main className="flex-grow">{children}</main>
<Toaster richColors />
</BackGroundColor>
</div>
</body>
</html>
);
Expand Down
9 changes: 8 additions & 1 deletion client/src/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
"use client";
import { useRouter } from "next/navigation";
import React from "react";

const Home = () => {
// return <HomeComponent />;
const router = useRouter();
React.useEffect(() => {
router.push("user/signin");
}, []);
return <></>;
};

Expand Down
4 changes: 2 additions & 2 deletions client/src/app/user/chat/page.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"use client";

import ChatRooms from "@/features/chat/components/chat-rooms";
import ChatWindow from "@/features/chat/components/chat-window";
import ChatRooms from "@/features/chat/components/ChatRooms";
import ChatWindow from "@/features/chat/components/ChatWindow";
import { Room } from "@/features/chat/types/types";
import { useState } from "react";
import "./Page.scss";
Expand Down
Loading
Loading