Repository navigation
[KD3-88] 관리자 공지사항 관리 UI 구현 #9
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
Merged
Merged
Changes from 8 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
2f08e48
feat(admin): notices UI flow KD3-88
naseullee 7e5751d
feat(admin): notice edit page KD3-88
naseullee 2b09fba
feat(admin): notice section selector KD3-88
naseullee 0cea741
Merge branch 'main' of https://github.com/kgu-developers/aics-team-pr…
naseullee 5f3c3b8
feat(admin): add notice deletion confirmation KD3-88
naseullee 80f5230
Merge remote-tracking branch 'origin/main' into feature/KD3-88
naseullee 1b99e12
feat(admin): support multiple notice sections KD3-88
naseullee ee92533
chore(admin): format AdminShell files KD3-88
naseullee 7d026f5
fix(admin): keep notice navigation active KD3-88
naseullee 394deda
fix(admin): notice detail and dialog fixes KD3-88
naseullee eea3549
fix(admin): use buttons for notice navigation KD3-88
naseullee f4f4399
refactor(admin): move dashboard mock data KD3-88
naseullee 24e464a
fix(admin): use button for dashboard notice creation KD3-88
naseullee 34f1e73
docs(agent): add navigation accessibility guidance KD3-88
naseullee c0e901a
fix(admin): reset notice edit form on id change KD3-88
naseullee 152ae94
fix(admin): address navigation and accessibility feedback KD3-88
naseullee 0d3d961
fix(admin): use runtime notice timestamp KD3-88
naseullee File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,92 @@ | ||
| import { tokens } from '@aics/design-system'; | ||
| import { globalStyle, style } from '@vanilla-extract/css'; | ||
|
|
||
| export const shell = style({ | ||
| background: tokens.color.background.body, | ||
| display: 'grid', | ||
| gridTemplateColumns: '240px minmax(0, 1fr)', | ||
| minHeight: '100dvh', | ||
| '@media': { '(max-width: 900px)': { gridTemplateColumns: '1fr' } }, | ||
| }); | ||
| export const sidebar = style({ | ||
| background: tokens.color.text.primary, | ||
| color: tokens.color.background.surface, | ||
| display: 'flex', | ||
| flexDirection: 'column', | ||
| minHeight: '100%', | ||
| padding: '24px 16px 16px', | ||
| }); | ||
| export const brand = style({ | ||
| display: 'flex', | ||
| flexDirection: 'column', | ||
| gap: 2, | ||
| padding: '0 10px', | ||
| }); | ||
| export const nav = style({ | ||
| display: 'flex', | ||
| flexDirection: 'column', | ||
| gap: 4, | ||
| marginTop: 58, | ||
| }); | ||
| const navBase = { | ||
| alignItems: 'center', | ||
| background: 'transparent', | ||
| border: 0, | ||
| borderRadius: tokens.radius.container, | ||
| color: tokens.color.background.surface, | ||
| cursor: 'pointer', | ||
| display: 'flex', | ||
| font: 'inherit', | ||
| justifyContent: 'space-between', | ||
| minHeight: 42, | ||
| padding: '0 12px', | ||
| textAlign: 'left' as const, | ||
| textDecoration: 'none', | ||
| }; | ||
| export const navItem = style(navBase); | ||
| export const activeNav = style({ | ||
| ...navBase, | ||
| background: 'rgba(255, 255, 255, 0.06)', | ||
| }); | ||
| export const count = style({ | ||
| alignItems: 'center', | ||
| background: tokens.color.accent, | ||
| borderRadius: tokens.radius.full, | ||
| color: tokens.color.background.surface, | ||
| display: 'inline-flex', | ||
| fontSize: 11, | ||
| height: 20, | ||
| justifyContent: 'center', | ||
| width: 20, | ||
| }); | ||
| export const account = style({ | ||
| alignItems: 'center', | ||
| background: 'rgba(255, 255, 255, 0.08)', | ||
| borderRadius: tokens.radius.container, | ||
| display: 'flex', | ||
| gap: 10, | ||
| marginTop: 'auto', | ||
| padding: 12, | ||
| }); | ||
| export const avatar = style({ | ||
| background: tokens.color.icon.disabled, | ||
| borderRadius: '50%', | ||
| display: 'block', | ||
| height: 28, | ||
| width: 28, | ||
| }); | ||
| export const main = style({ minWidth: 0 }); | ||
| globalStyle(brand + ' span, ' + account + ' span', { | ||
| color: tokens.color.text.disabled, | ||
| fontSize: 12, | ||
| }); | ||
| globalStyle(brand + ' small', { | ||
| color: tokens.color.text.disabled, | ||
| fontSize: 11, | ||
| marginTop: 8, | ||
| }); | ||
| globalStyle(account + ' div', { | ||
| display: 'flex', | ||
| flexDirection: 'column', | ||
| gap: 2, | ||
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,57 @@ | ||
| import { Link, Outlet, useRouterState } from '@tanstack/react-router'; | ||
|
|
||
| import { ROUTES } from '~/app/constants/routes'; | ||
|
|
||
| import * as styles from './AdminShell.css'; | ||
|
|
||
| const menuItems = [ | ||
| { label: '홈', to: ROUTES.ADMIN }, | ||
| { label: '공지사항', to: ROUTES.ADMIN_NOTICES }, | ||
| ] as const; | ||
|
|
||
| export default function AdminShell() { | ||
| const pathname = useRouterState({ select: state => state.location.pathname }); | ||
|
|
||
| return ( | ||
| <div className={styles.shell}> | ||
| <aside className={styles.sidebar}> | ||
| <div className={styles.brand}> | ||
| <strong>AICS Team</strong> | ||
| <span>팀 프로젝트 운영 플랫폼</span> | ||
| <small>2026-2 · 객체지향프로그래밍</small> | ||
| </div> | ||
| <nav aria-label='관리자 메뉴' className={styles.nav}> | ||
| {menuItems.map(item => ( | ||
| <Link | ||
| className={ | ||
| pathname === item.to ? styles.activeNav : styles.navItem | ||
| } | ||
| key={item.label} | ||
| to={item.to} | ||
| > | ||
| {item.label} | ||
| </Link> | ||
| ))} | ||
| {['수강생/팀 관리', '분반별 제출물', '회의록'].map(item => ( | ||
| <button className={styles.navItem} key={item} type='button'> | ||
| {item} | ||
| </button> | ||
| ))} | ||
| <button className={styles.navItem} type='button'> | ||
| 쪽지함 <span className={styles.count}>12</span> | ||
| </button> | ||
|
coderabbitai[bot] marked this conversation as resolved.
|
||
| </nav> | ||
| <div className={styles.account}> | ||
| <span aria-hidden='true' className={styles.avatar} /> | ||
| <div> | ||
| <strong>어드민 계정</strong> | ||
| <span>로그아웃 / 권한 변경</span> | ||
| </div> | ||
| </div> | ||
| </aside> | ||
| <main className={styles.main}> | ||
| <Outlet /> | ||
| </main> | ||
| </div> | ||
| ); | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.