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
28 changes: 0 additions & 28 deletions fsd-baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,20 +49,10 @@
"fsd/no-public-api-sidestep | src/app/router.tsx | Forbidden sidestep of public API when importing from \"../shared/demo/model/ensureWorkspaceSession\".",
"fsd/no-public-api-sidestep | src/entities/app/model/demoAppState.ts | Forbidden sidestep of public API when importing from \"../../database/demo\".",
"fsd/no-public-api-sidestep | src/entities/app/model/demoAppState.ts | Forbidden sidestep of public API when importing from \"../../team/demo\".",
"fsd/no-public-api-sidestep | src/entities/database/model/demoDatabase.ts | Forbidden sidestep of public API when importing from \"../../quota/model/types\".",
"fsd/no-public-api-sidestep | src/entities/demo-workflows/model/demoData.ts | Forbidden sidestep of public API when importing from \"../../vm/model/demoVmStore\".",
"fsd/no-public-api-sidestep | src/entities/home/model/demoHome.ts | Forbidden sidestep of public API when importing from \"../../app/model/demoAppState\".",
"fsd/no-public-api-sidestep | src/entities/home/model/demoHome.ts | Forbidden sidestep of public API when importing from \"../../app/model/types\".",
"fsd/no-public-api-sidestep | src/entities/home/model/demoHome.ts | Forbidden sidestep of public API when importing from \"../../database/model/demoDatabase\".",
"fsd/no-public-api-sidestep | src/entities/home/model/demoHome.ts | Forbidden sidestep of public API when importing from \"../../quota/model/types\".",
"fsd/no-public-api-sidestep | src/entities/home/model/demoHome.ts | Forbidden sidestep of public API when importing from \"../../serverless/model/demoServerless\".",
"fsd/no-public-api-sidestep | src/entities/home/model/demoHome.ts | Forbidden sidestep of public API when importing from \"../../team/model/types\".",
"fsd/no-public-api-sidestep | src/entities/home/model/demoHome.ts | Forbidden sidestep of public API when importing from \"../../vm/model/demoVmStore\".",
"fsd/no-public-api-sidestep | src/entities/infra-node/demo.ts | Forbidden sidestep of public API when importing from \"../vm/model/demoVmStore\".",
"fsd/no-public-api-sidestep | src/entities/network/model/demoNetworkStore.ts | Forbidden sidestep of public API when importing from \"../../vm/model/demoVmStore\".",
"fsd/no-public-api-sidestep | src/entities/profile/model/demoProfile.ts | Forbidden sidestep of public API when importing from \"../../team/demo\".",
"fsd/no-public-api-sidestep | src/entities/vm/model/demoVmStore.ts | Forbidden sidestep of public API when importing from \"../../team/demo\".",
"fsd/no-public-api-sidestep | src/features/app/view-app/api/getApp.ts | Forbidden sidestep of public API when importing from \"../../../../entities/app/model/types\".",
"fsd/no-public-api-sidestep | src/features/global-resource-search/api/loadResourceSearch.ts | Forbidden sidestep of public API when importing from \"../../../entities/app/demo\".",
"fsd/no-public-api-sidestep | src/features/global-resource-search/api/loadResourceSearch.ts | Forbidden sidestep of public API when importing from \"../../../entities/database/demo\".",
"fsd/no-public-api-sidestep | src/features/global-resource-search/api/loadResourceSearch.ts | Forbidden sidestep of public API when importing from \"../../../entities/team/demo\".",
Expand All @@ -72,32 +62,15 @@
"fsd/no-public-api-sidestep | src/features/settings/demo-account/model/demoWithdrawal.ts | Forbidden sidestep of public API when importing from \"../../../../entities/app/demo\".",
"fsd/no-public-api-sidestep | src/features/settings/demo-account/model/demoWithdrawal.ts | Forbidden sidestep of public API when importing from \"../../../../entities/database/demo\".",
"fsd/no-public-api-sidestep | src/features/settings/demo-account/model/demoWithdrawal.ts | Forbidden sidestep of public API when importing from \"../../../../entities/team/demo\".",
"fsd/no-public-api-sidestep | src/features/settings/demo-account/ui/AccountDialog.tsx | Forbidden sidestep of public API when importing from \"../../../../shared/ui/feedback/ModalSurface\".",
"fsd/no-public-api-sidestep | src/features/settings/demo-account/ui/DemoAccountWithdrawal.tsx | Forbidden sidestep of public API when importing from \"../../../../shared/ui/feedback/ModalSurface\".",
"fsd/no-public-api-sidestep | src/features/settings/demo-account/ui/DemoTeamWithdrawalActions.tsx | Forbidden sidestep of public API when importing from \"../../../../entities/team/demo\".",
"fsd/no-public-api-sidestep | src/features/team/create-team/model/createDemoTeamRequest.ts | Forbidden sidestep of public API when importing from \"../../../../entities/team/demo\".",
"fsd/no-public-api-sidestep | src/features/team/request-quota/ui/TeamQuotaRequestDialog.tsx | Forbidden sidestep of public API when importing from \"../../../../shared/ui/feedback/ModalSurface\".",
"fsd/no-public-api-sidestep | src/features/vm-extension/ui/DemoVmExtensionDialog.tsx | Forbidden sidestep of public API when importing from \"../../../shared/ui/feedback/ModalSurface\".",
"fsd/no-public-api-sidestep | src/pages/demo-workflows/ui/WorkflowLayout.tsx | Forbidden sidestep of public API when importing from \"../../../entities/team/demo\".",
"fsd/no-public-api-sidestep | src/pages/demo-workflows/ui/WorkflowLayout.tsx | Forbidden sidestep of public API when importing from \"../../../shared/ui/controls/useResponsiveNavigation\".",
"fsd/no-public-api-sidestep | src/shared/demo/model/workspaceEmpty.test.ts | Forbidden sidestep of public API when importing from \"../../../entities/app/model/demoAppState\".",
"fsd/no-public-api-sidestep | src/shared/demo/model/workspaceEmpty.test.ts | Forbidden sidestep of public API when importing from \"../../../entities/database/model/demoDatabase\".",
"fsd/no-public-api-sidestep | src/shared/demo/model/workspaceEmpty.test.ts | Forbidden sidestep of public API when importing from \"../../../entities/demo-workflows/model/demoData\".",
"fsd/no-public-api-sidestep | src/shared/demo/model/workspaceEmpty.test.ts | Forbidden sidestep of public API when importing from \"../../../entities/home/model/demoHome\".",
"fsd/no-public-api-sidestep | src/shared/demo/model/workspaceEmpty.test.ts | Forbidden sidestep of public API when importing from \"../../../entities/infra-node/demo\".",
"fsd/no-public-api-sidestep | src/shared/demo/model/workspaceEmpty.test.ts | Forbidden sidestep of public API when importing from \"../../../entities/notification/api/notifications\".",
"fsd/no-public-api-sidestep | src/shared/demo/model/workspaceEmpty.test.ts | Forbidden sidestep of public API when importing from \"../../../entities/profile/model/demoProfile\".",
"fsd/no-public-api-sidestep | src/shared/demo/model/workspaceEmpty.test.ts | Forbidden sidestep of public API when importing from \"../../../entities/serverless/model/demoServerless\".",
"fsd/no-public-api-sidestep | src/shared/demo/model/workspaceEmpty.test.ts | Forbidden sidestep of public API when importing from \"../../../entities/team/demo\".",
"fsd/no-public-api-sidestep | src/shared/demo/model/workspaceEmpty.test.ts | Forbidden sidestep of public API when importing from \"../../../entities/vm/model/demoVmStore\".",
"fsd/no-public-api-sidestep | src/shared/demo/model/workspaceEmpty.test.ts | Forbidden sidestep of public API when importing from \"../../../features/auth/select-demo-role/model/selectDemoRole\".",
"fsd/no-public-api-sidestep | src/shared/demo/model/workspaceEmpty.test.ts | Forbidden sidestep of public API when importing from \"../../../features/team/create-team/model/createDemoTeamRequest\".",
"fsd/no-public-api-sidestep | src/widgets/serverless-shell/ui/ServerlessShell.tsx | Forbidden sidestep of public API when importing from \"../../../entities/team/demo\".",
"fsd/no-public-api-sidestep | src/widgets/student-shell/ui/StudentProfile.tsx | Forbidden sidestep of public API when importing from \"../../../entities/team/demo\".",
"fsd/no-public-api-sidestep | src/widgets/student-shell/ui/StudentProfile.tsx | Forbidden sidestep of public API when importing from \"../../../features/auth/logout/api/logout\".",
"fsd/no-public-api-sidestep | src/widgets/student-shell/ui/StudentShell.tsx | Forbidden sidestep of public API when importing from \"../../../shared/ui/controls/useResponsiveNavigation\".",
"fsd/no-public-api-sidestep | src/widgets/student-shell/ui/StudentSidebar.tsx | Forbidden sidestep of public API when importing from \"../../../shared/ui/controls/useResponsiveNavigation\".",
"fsd/no-public-api-sidestep | src/widgets/student-shell/ui/StudentTopbar.tsx | Forbidden sidestep of public API when importing from \"../../../shared/ui/controls/useResponsiveNavigation\".",
"fsd/no-reserved-folder-names | src/features/app/create-app/service/api | Having a folder with the name \"api\" inside a segment could be confusing because that name is commonly used for segments. Consider renaming it.",
"fsd/no-reserved-folder-names | src/features/app/create-app/service/model | Having a folder with the name \"model\" inside a segment could be confusing because that name is commonly used for segments. Consider renaming it.",
"fsd/no-reserved-folder-names | src/shared/demo/model | Having a folder with the name \"model\" inside a segment could be confusing because that name is commonly used for segments. Consider renaming it.",
Expand All @@ -121,7 +94,6 @@
"fsd/public-api | src/features/app/view-app | This slice is missing a public API.",
"fsd/public-api | src/features/auth/exchange-code | This slice is missing a public API.",
"fsd/public-api | src/features/auth/login-error | This slice is missing a public API.",
"fsd/public-api | src/features/auth/logout | This slice is missing a public API.",
"fsd/public-api | src/features/auth/start-login | This slice is missing a public API.",
"fsd/public-api | src/pages/demo-workflows | This slice is missing a public API.",
"fsd/repetitive-naming | src/features/app | Repetitive word \"app\" in slice names.",
Expand Down
2 changes: 1 addition & 1 deletion src/entities/database/model/demoDatabase.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { isDemoFixtureMode, readDemoState, writeDemoState } from '../../../shared/demo';
import type { DatabaseQuota } from '../../quota/model/types';
import type { DatabaseQuota } from '../../quota';
import type { DatabaseBackup, DatabaseCredentials, DatabaseDetail, DatabaseEngine, DatabaseSummary } from './types';
import { createId } from '../../../shared/lib';

Expand Down
2 changes: 1 addition & 1 deletion src/entities/demo-workflows/model/demoData.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { getDemoProfile } from '../../profile';
import { isDemoFixtureMode, isDemoMode, readDemoState, writeDemoState } from '../../../shared/demo';
import { getDemoVmState } from '../../vm/model/demoVmStore';
import { getDemoVmState } from '../../vm';
import { createId } from '../../../shared/lib';

export type WorkflowStatus = '대기 중' | '검토 중' | '답변 완료' | '승인 완료' | '거절';
Expand Down
10 changes: 5 additions & 5 deletions src/entities/home/model/demoHome.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import type { AppSummary } from '../../app/model/types';
import type { MyQuota } from '../../quota/model/types';
import type { TeamSummary } from '../../team/model/types';
import type { AppSummary } from '../../app';
import type { MyQuota } from '../../quota';
import type { TeamSummary } from '../../team';
import { isDemoFixtureMode, isDemoMode, readDemoState, writeDemoState } from '../../../shared/demo';
import { getDemoVmState } from '../../vm/model/demoVmStore';
import { getDemoServerlessFunctions } from '../../serverless/model/demoServerless';
import { getDemoVmState } from '../../vm';
import { getDemoServerlessFunctions } from '../../serverless';
import { getDemoDatabaseState } from '../../database/model/demoDatabase';
import { getDemoApps } from '../../app/model/demoAppState';

Expand Down
2 changes: 1 addition & 1 deletion src/entities/infra-node/demo.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { AdminResource, InfraNode, NodeVm } from './model/types';
import { isDemoFixtureMode, readDemoState, writeDemoState } from '../../shared/demo';
import { getDemoVmState, saveDemoVmState } from '../vm/model/demoVmStore';
import { getDemoVmState, saveDemoVmState } from '../vm';

export interface DemoInfraFailure {
name: string;
Expand Down
2 changes: 1 addition & 1 deletion src/entities/network/model/demoNetworkStore.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { canManageDemoVm, getDemoVmState } from '../../vm/model/demoVmStore';
import { canManageDemoVm, getDemoVmState } from '../../vm';
import { readDemoState, writeDemoState } from '../../../shared/demo';
import { isDemoFixtureMode } from '../../../shared/demo';
import type { DomainList, FirewallRule, FirewallRulePage, NetworkProtocol, PortForward, PortForwardList } from './types';
Expand Down
2 changes: 1 addition & 1 deletion src/features/app/view-app/api/getApp.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { requestJson } from '../../../../shared/api';
import type { AppSummary } from '../../../../entities/app/model/types';
import type { AppSummary } from '../../../../entities/app';

export interface AppEnvironment {
id: string;
Expand Down
1 change: 1 addition & 0 deletions src/features/auth/logout/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { logout } from './api/logout';
2 changes: 1 addition & 1 deletion src/features/settings/demo-account/ui/AccountDialog.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useId, type ReactNode } from 'react';
import styled from 'styled-components';
import { ModalSurface } from '../../../../shared/ui/feedback/ModalSurface';
import { ModalSurface } from '../../../../shared/ui/feedback';
import { Octicon, type OcticonName } from '../../../../shared/ui/icons';
import { font } from '../../../../shared/theme';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { useState } from 'react';
import { useNavigate } from 'react-router';
import { Button } from '../../../../shared/ui/controls';
import { DeleteConfirmDialog } from '../../../../shared/ui/feedback';
import { ModalSurface } from '../../../../shared/ui/feedback/ModalSurface';
import { ModalSurface } from '../../../../shared/ui/feedback';
import { getWithdrawalItems, getWithdrawalStep, withdrawDemoAccount, type WithdrawalStep } from '../model/demoWithdrawal';
import { AccountDialog, DialogCopy } from './AccountDialog';
import { Octicon } from '../../../../shared/ui/icons';
Expand Down
1 change: 1 addition & 0 deletions src/features/team/create-team/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
export { createTeam } from './api/createTeam';
export type { CreateTeamResponse } from './api/createTeam';
export { createDemoTeamRequest } from './model/createDemoTeamRequest';
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { useId, useState, type FormEvent } from 'react';
import styled from 'styled-components';
import { Button, SelectField, TextareaField } from '../../../../shared/ui/controls';
import { ModalSurface } from '../../../../shared/ui/feedback/ModalSurface';
import { ModalSurface } from '../../../../shared/ui/feedback';
import { Octicon } from '../../../../shared/ui/icons';
import { font } from '../../../../shared/theme';

Expand Down
2 changes: 1 addition & 1 deletion src/features/vm-extension/ui/DemoVmExtensionDialog.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { useId, useState } from 'react';
import styled from 'styled-components';
import { Button, TextareaField } from '../../../shared/ui/controls';
import { ModalSurface } from '../../../shared/ui/feedback/ModalSurface';
import { ModalSurface } from '../../../shared/ui/feedback';
import { Octicon } from '../../../shared/ui/icons';
import { font } from '../../../shared/theme';
import { Description } from '../../../shared/ui/typography';
Expand Down
2 changes: 1 addition & 1 deletion src/pages/admin/AdminHeader.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { Dispatch, SetStateAction } from 'react';
import { Button } from '../../shared/ui/controls';
import type { useResponsiveNavigation } from '../../shared/ui/controls/useResponsiveNavigation';
import type { useResponsiveNavigation } from '../../shared/ui/controls';
import { icon } from './infrastructureModel';
import { ConsoleLabel, Header, HeaderActions, HeaderContent, HeaderStart, Identity, MenuGlyph, MenuToggle, SearchAction, UnreadCount } from './infrastructureStyles';

Expand Down
2 changes: 1 addition & 1 deletion src/pages/admin/AdminInfrastructurePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { ApiRequestError } from '../../shared/api';
import { isDemoMode, simulateDemoRequest } from '../../shared/demo';
import { DemoPagePlaceholder } from '../demo-workflows/ui/DemoPageState';
import { Button } from '../../shared/ui/controls';
import { useResponsiveNavigation } from '../../shared/ui/controls/useResponsiveNavigation';
import { useResponsiveNavigation } from '../../shared/ui/controls';
import { Banner, ErrorCard, LoadingCard } from '../../shared/ui/feedback';
import { NotificationPanel } from '../../widgets/notification-panel';
import { Breadcrumb, Lead, PageTitle, TitleGroup } from '../../shared/ui/typography';
Expand Down
2 changes: 1 addition & 1 deletion src/pages/admin/AdminSidebar.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { matchPath, type Location, type NavigateFunction } from 'react-router';
import type { OcticonName } from '../../shared/ui/icons';
import type { useResponsiveNavigation } from '../../shared/ui/controls/useResponsiveNavigation';
import type { useResponsiveNavigation } from '../../shared/ui/controls';
import { icon } from './infrastructureModel';
import { Brand, BrandText, Divider, Logo, Navigation, NavigationItem, Sidebar, SidebarFooter, WorkspaceLabel } from './infrastructureStyles';

Expand Down
2 changes: 1 addition & 1 deletion src/pages/admin/infrastructureStyles.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import styled from 'styled-components';
import { Button } from '../../shared/ui/controls';
import { mobileNavigationMedia } from '../../shared/ui/controls/useResponsiveNavigation';
import { mobileNavigationMedia } from '../../shared/ui/controls';
import { font } from '../../shared/theme';

export const Layout = styled.div`
Expand Down
2 changes: 1 addition & 1 deletion src/pages/demo-workflows/ui/WorkflowLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import styled from 'styled-components';
import { isDemoMode } from '../../../shared/demo';
import type { StudentNavigationKey } from '../../../widgets/student-shell';
import { StudentShell } from '../../../widgets/student-shell';
import { mobileNavigationMedia, useResponsiveNavigation } from '../../../shared/ui/controls/useResponsiveNavigation';
import { mobileNavigationMedia, useResponsiveNavigation } from '../../../shared/ui/controls';
import { Octicon } from '../../../shared/ui/icons';
import { getSessionUser } from '../../../entities/session';
import { listDemoTeams } from '../../../entities/team/demo';
Expand Down
2 changes: 1 addition & 1 deletion src/pages/home/HomeDialogs.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Button } from '../../shared/ui/controls';
import { ModalSurface } from '../../shared/ui/feedback/ModalSurface';
import { ModalSurface } from '../../shared/ui/feedback';
import { Octicon } from '../../shared/ui/icons';
import { formatGraduationDate, type CancelDialogState, type GraduationNotice } from './homeModel';
import { GraduationCount, WorkDialog, WorkDialogActions, WorkDialogTitle } from './styles';
Expand Down
2 changes: 1 addition & 1 deletion src/pages/serverless/ServerlessLogsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import styled from 'styled-components';
import { Button } from '../../shared/ui/controls';
import { Pagination } from '../../shared/ui/data-display/Pagination';
import { Banner } from '../../shared/ui/feedback';
import { ModalSurface } from '../../shared/ui/feedback/ModalSurface';
import { ModalSurface } from '../../shared/ui/feedback';
import { Octicon } from '../../shared/ui/icons';
import { ServerlessStateCard, StateCopy } from './ServerlessStateCard';
import { font } from '../../shared/theme';
Expand Down
2 changes: 1 addition & 1 deletion src/pages/serverless/ServerlessTestPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { useMemo, useState } from 'react';
import styled from 'styled-components';
import { Button, NavigationItem } from '../../shared/ui/controls';
import { Banner } from '../../shared/ui/feedback';
import { ModalSurface } from '../../shared/ui/feedback/ModalSurface';
import { ModalSurface } from '../../shared/ui/feedback';
import { Octicon } from '../../shared/ui/icons';
import { isDemoFixtureMode } from '../../shared/demo';
import { ServerlessStateCard, StateCopy, StateField, StateFieldLabel, StateFieldValue } from './ServerlessStateCard';
Expand Down
2 changes: 1 addition & 1 deletion src/pages/serverless/ServerlessVersionsPage.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { useState } from 'react';
import styled from 'styled-components';
import { Button, NavigationItem } from '../../shared/ui/controls';
import { ModalSurface } from '../../shared/ui/feedback/ModalSurface';
import { ModalSurface } from '../../shared/ui/feedback';
import { Octicon } from '../../shared/ui/icons';
import { font } from '../../shared/theme';
import { PageContainer } from '../../shared/ui/layout';
Expand Down
2 changes: 1 addition & 1 deletion src/pages/settings/AccountSettingsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { useBlocker, useNavigate } from 'react-router';
import styled from 'styled-components';
import { clearSessionUser, getSessionUser } from '../../entities/session';
import { listMyTeams, type TeamRole, type TeamSummary } from '../../entities/team';
import { logout } from '../../features/auth/logout/api/logout';
import { logout } from '../../features/auth/logout';
import { NotificationSettingsPanel } from '../../features/settings/notification-settings';
import { Button } from '../../shared/ui/controls';
import { Banner, UnsavedChangesDialog } from '../../shared/ui/feedback';
Expand Down
Loading
Loading