Commit Graph
14 Commits
Author SHA1 Message Date
dahyeon 0a718651b2 Updates page API interactions and regenerates Kiota client
Refactors page-related API interactions and client-side logic to align with an updated Kiota client and recent backend API changes.

*   Regenerates Kiota client with `--clear-cache` to ensure integration with the latest OpenAPI specification.
*   Adapts page data mapping to handle Kiota's improved type generation for `content`, `parentPageId`, `createdAt`, `updatedAt`, and `sortOrder`, which now correctly map to primitive types.
*   Updates page listing and detail fetching to consume responses wrapped in `PageListResponseDto` instead of direct arrays.
*   Removes explicit `userId` parameters from `createPage`, `updatePage`, and `deletePage` functions, as user context is now handled by server-side authentication.
*   Extends the `updatePage` functionality to allow modifications of `parentId` and `sortOrder`.
*   Standardizes API error responses across Kiota-generated endpoints to use a generic `ErrorResponseDto`.
*   Corrects Kiota-generated response types for several primitive endpoints from `ArrayBuffer` to `string`.
*   Enhances the UI to support space-aware page creation and navigation flows, including a new "Add Sub Page" option directly from the sidebar for hierarchical page management.
2025-11-11 17:13:58 +00:00
dahyeon 712dce8391 Kiota 이상한버그, Response Schema가 One of일 경우... 한 가지 schema 밖에 생성하지 않음 2025-11-10 17:21:48 +00:00
dahyeon e5d4ff5866 Introduces space entity for page organization
Adds comprehensive space management capabilities, enabling users to organize pages within distinct, self-contained spaces.

This change includes:
- Introduces a new 'Space' entity with dedicated API endpoints for CRUD operations.
- Develops new UI pages for listing all available spaces and for creating new spaces.
- Refactors existing page list, detail, and edit views to operate within the context of a specific space, accessed via a `spaceKey` in the URL.
- Updates application routing to establish a hierarchical structure, nesting page-related routes under `/spaces/:spaceKey`.
- Enhances navigation and breadcrumbs to reflect the current space context.
2025-11-11 01:34:44 +09:00
dahyeon 6325f8f109 Integrates page entity with backend API
Refactors all page entity operations (get, create, update, delete) to use the Kiota-generated API client instead of mock data. This involves:

*   Replacing in-memory data and simulated delays with actual API calls to the `/v1/page` endpoint.
*   Introducing `ApiClient` and `Guid` types from Kiota for API interactions.
*   Adding a mapping function (`mapPageResponseToPage`) to convert API DTOs to the application's local `Page` type.
*   Updating page-related UI components (`PageListPage`, `PageDetailPage`, `PageEditPage`) to pass the authenticated `ApiClient` and `userId` to the entity functions.
*   Regenerating the Kiota client to include new `image`, `page`, and `space` API endpoints and their associated DTOs.
*   Introducing `useApiClient` and `useUserId` hooks for streamlined API client access and user context.
2025-11-11 01:04:35 +09:00
dahyeon 947f3a1899 . 2025-11-08 15:28:49 +09:00
dahyeon 61566ecf5d . 2025-11-08 15:22:50 +09:00
dahyeon 403aa8eef0 chore: change dev server port to 3420 2025-11-08 15:21:32 +09:00
dahyeon 58bead0e80 feat: add OIDC login via Microsoft Entra ID 2025-11-08 15:18:57 +09:00
dahyeon 9b4e1f9193 chore: udpate @azure/msal-browser, @azure/msal-react 2025-11-08 12:11:55 +09:00
dahyeon 5316cbbc3e . 2025-11-07 19:35:31 +09:00
dahyeon fcfdf8ac67 Adds responsive sidebar and header
Implements a responsive design for the left sidebar, making it collapsible on smaller screens.

Adds a hamburger menu icon in the header to toggle the sidebar's visibility on mobile devices, improving the user experience on smaller screens.

The right sidebar is now hidden on smaller screens and only visible on extra large screens.
2025-11-07 15:56:24 +09:00
dahyeon f5520411db Updates code language handling for code blocks
Replaces the previous implementation of updating
the `data-language` attribute on code blocks with a more
robust solution using Lexical's MutationListener. This ensures
that the language attribute is correctly updated when CodeNode
changes occur. Also includes an initial setup to update all
existing code blocks.
2025-11-07 13:42:16 +09:00
dahyeon b0140fbafb . 2025-11-07 09:16:21 +09:00
dahyeon 120f150ee3 first commit 2025-11-07 02:50:20 +09:00