Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion apps/mobile/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@layer/mobile",
"main": "expo-router/entry",
"types": "./bridge/native.ts",
"version": "2.0.13",
"version": "2.1.0",
"scripts": {
"start": "expo start",
"reset-project": "node ./scripts/reset-project.js",
Expand Down
2 changes: 0 additions & 2 deletions apps/web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,6 @@

<body>
<div id="root"></div>
<ins class="kakao_ad_area" style="display: none" data-ad-unit="DAN-Fju0KXRw9VNE9YF4" data-ad-width="320" data-ad-height="50"></ins>
<script type="text/javascript" src="//t1.kakaocdn.net/kas/static/ba.min.js" async></script>
<div id="loading-modal-root"></div>
<div id="modal-root"></div>
<div id="toast-root"></div>
Expand Down
2 changes: 1 addition & 1 deletion apps/web/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@layer/web",
"private": true,
"version": "2.0.13",
"version": "2.1.0",
"type": "module",
"scripts": {
"dev": "vite",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export function QuestionsOverview({ isAnswerFilled, hasChanges, onSaveTemporary,
{/* -------- 질문 리스트 UI------- */}
<ul
css={css`
padding: 0 0.8rem 0.8rem;
padding: 0.8rem;
flex: 1;
overflow-y: auto;
min-height: 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,12 @@ export default function RetroSpectSpacePage() {
display: none;
gap: 2.4rem;
flex: 1;
overflow-y: auto;
overflow-x: auto;
overflow-y: hidden;

::-webkit-scrollbar {
display: block;
}

@media (max-width: 979px) {
display: flex;
Expand All @@ -113,6 +118,8 @@ export default function RetroSpectSpacePage() {
display: flex;
flex-direction: column;
gap: 4rem;
min-width: 64.6rem;
min-height: 0;
`}
>
<InProgressRetrospects />
Expand Down
39 changes: 26 additions & 13 deletions apps/web/src/app/desktop/retrospectWrite/RetrospectWritePage.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import AnalysisOverview from "../component/analysis/AnalysisOverview";
import { KakaoAdFit } from "@/component/common/KakaoAdFit";
import { css } from "@emotion/react";
import RetrospectWrite from "../component/retrospectWrite";
import { useSearchParams } from "react-router-dom";
Expand All @@ -19,25 +20,37 @@ function RetroSpectWritePage() {
<div
css={css`
display: flex;
overflow-x: hidden;
flex-direction: column;
height: 100vh;
overflow: hidden;
`}
>
<section
<div
css={css`
width: ${isOverviewVisible ? "34.4rem" : "0"};
height: 100%;
opacity: ${isOverviewVisible ? 1 : 0};
transition:
width 0.3s ease-in-out,
opacity 0.3s ease-in-out;
overflow-y: auto;
will-change: width, opacity;
display: flex;
flex: 1;
min-height: 0;
overflow-x: hidden;
`}
>
<AnalysisOverview spaceId={spaceId} />
</section>
<RetrospectWrite key={retrospectId} isOverviewVisible={isOverviewVisible} handleToggleOverview={handleToggleOverview} />
<section
css={css`
width: ${isOverviewVisible ? "34.4rem" : "0"};
height: 100%;
opacity: ${isOverviewVisible ? 1 : 0};
transition:
width 0.3s ease-in-out,
opacity 0.3s ease-in-out;
overflow-y: auto;
will-change: width, opacity;
`}
>
<AnalysisOverview spaceId={spaceId} />
</section>
<RetrospectWrite key={retrospectId} isOverviewVisible={isOverviewVisible} handleToggleOverview={handleToggleOverview} />
</div>
{/* TODO: 데스크톱 회고 작성 화면의 광고 배치를 디자인에 맞춰 조정한다. */}
<KakaoAdFit />
</div>
);
}
Expand Down
46 changes: 46 additions & 0 deletions apps/web/src/component/common/KakaoAdFit.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
import { css } from "@emotion/react";
import { useEffect, useRef } from "react";

const AD_UNIT_ID = "DAN-Fju0KXRw9VNE9YF4";
const AD_SCRIPT_URL = "https://t1.kakaocdn.net/kas/static/ba.min.js";

export function KakaoAdFit() {
const containerRef = useRef<HTMLDivElement>(null);

useEffect(() => {
const container = containerRef.current;

if (!container) return;

const ad = document.createElement("ins");
ad.className = "kakao_ad_area";
ad.style.display = "none";
ad.dataset.adUnit = AD_UNIT_ID;
ad.dataset.adWidth = "320";
ad.dataset.adHeight = "50";

const script = document.createElement("script");
script.async = true;
script.type = "text/javascript";
script.src = AD_SCRIPT_URL;

container.replaceChildren(ad, script);

return () => {
container.replaceChildren();
};
}, []);

return (
<div
ref={containerRef}
aria-label="광고"
css={css`
display: flex;
justify-content: center;
min-height: 5rem;
flex-shrink: 0;
`}
/>
);
}
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,10 @@ export default function CompletedRetrospects() {
overflow-y: auto;
overflow-x: hidden;
padding-bottom: 2rem;

::-webkit-scrollbar {
display: block;
}
`}
>
{completedRetrospects.map((retrospect) => (
Expand Down
30 changes: 19 additions & 11 deletions apps/web/src/component/retrospect/space/InProgressRetrospects.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import { RetrospectCreate } from "@/app/desktop/component/retrospectCreate";
import { useApiOptionsGetSpaceInfo } from "@/hooks/api/space/useApiOptionsGetSpaceInfo";
import { GA_EVENTS } from "@/lib/google-analytics/events";
import { trackEvent } from "@/lib/google-analytics";
import { isSpaceLeader } from "@/utils/userUtil";

export default function InProgressRetrospects() {
const { spaceId: rawSpaceId } = useParams();
Expand All @@ -27,6 +28,7 @@ export default function InProgressRetrospects() {

// * 스페이스 정보 조회
const { data: spaceInfo } = useQuery(useApiOptionsGetSpaceInfo(spaceId));
const isLeader = isSpaceLeader(spaceInfo?.leader.id);

const { openFunnelModal } = useFunnelModal();

Expand Down Expand Up @@ -106,17 +108,19 @@ export default function InProgressRetrospects() {
>
{"진행 중인 회고가 비어있어요\n회고를 작성해 보세요!"}
</Typography>
<button
css={css`
padding: 0.8rem 1.2rem;
border-radius: 0.8rem;
border: 1px solid ${DESIGN_TOKEN_COLOR.gray400};
color: ${DESIGN_TOKEN_COLOR.gray700};
`}
onClick={handleRetrospectCreate}
>
회고 추가하기
</button>
{isLeader && (
<button
css={css`
padding: 0.8rem 1.2rem;
border-radius: 0.8rem;
border: 1px solid ${DESIGN_TOKEN_COLOR.gray400};
color: ${DESIGN_TOKEN_COLOR.gray700};
`}
onClick={handleRetrospectCreate}
>
회고 추가하기
</button>
)}
</div>
) : (
<div
Expand All @@ -129,6 +133,10 @@ export default function InProgressRetrospects() {
overflow-y: auto;
overflow-x: hidden;
padding-bottom: 2rem;

::-webkit-scrollbar {
display: block;
}
`}
>
{proceedingRetrospects.map((retrospect) => (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,10 +170,6 @@ export default function ActionItemCard({ spaceId, retrospectId, title, deadline,
variant="body12SemiBold"
color="gray800"
css={css`
display: block;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
display: flex;
flex-direction: column;
gap: 0.8rem;
Expand Down Expand Up @@ -217,7 +213,7 @@ export default function ActionItemCard({ spaceId, retrospectId, title, deadline,
key={todo.actionItemId}
css={css`
display: flex;
align-items: center;
align-items: flex-start;
gap: 0.6rem;
`}
>
Expand All @@ -228,9 +224,16 @@ export default function ActionItemCard({ spaceId, retrospectId, title, deadline,
border-radius: 50%;
background-color: ${DESIGN_TOKEN_COLOR.gray400};
flex-shrink: 0;
margin-top: 0.8rem;
`}
/>
<Typography variant="body14Medium" color="gray900">
<Typography
variant="body14Medium"
color="gray900"
css={css`
overflow-wrap: anywhere;
`}
>
{todo.content}
</Typography>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,10 @@ export default function ActionItems() {
flex-direction: column;
overflow-y: auto;
overflow-x: hidden;

::-webkit-scrollbar {
display: block;
}
`}
>
<ActionItemsList currentTab={currentTab} />
Expand Down
3 changes: 3 additions & 0 deletions apps/web/src/component/write/phase/Write.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { AdvanceQuestionsNum, PhaseContext } from "@/app/mobile/write/Retrospect
import { Button, ButtonProvider } from "@/component/common/button";
import { HeaderProvider } from "@/component/common/header";
import { Icon } from "@/component/common/Icon";
import { KakaoAdFit } from "@/component/common/KakaoAdFit";
import { LoadingModal } from "@/component/common/Modal/LoadingModal.tsx";
import { Portal } from "@/component/common/Portal";
import { ItemsButton } from "@/component/write/ItemsButton";
Expand Down Expand Up @@ -445,6 +446,8 @@ export function Write() {
)}
</div>

<KakaoAdFit />

<ButtonProvider sort={"horizontal"}>
{isComplete ? (
<Button
Expand Down
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
"packages/*",
"apps/*"
],
"version": "2.0.13"
"version": "2.1.0"
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "layer",
"version": "2.0.13",
"version": "2.1.0",
"private": true,
"scripts": {
"web": "pnpm -F @layer/web",
Expand Down
2 changes: 1 addition & 1 deletion packages/shared/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@layer/shared",
"version": "2.0.13",
"version": "2.1.0",
"description": "",
"main": "index.ts",
"types": "./index.ts",
Expand Down
Loading