Skip to content

Conversation

@minseok128
Copy link
Member

주요 구현 사항

  • 사용자의 예외적인 동작에 대한 방어 로직을 구현했습니다.

리뷰어 참고 사항

  • 대방어입니다.
    image

minseok128 and others added 14 commits December 28, 2024 23:02
…ait for improved readability and error handling
…unnecessary delays. Cleaned up commented-out code for better readability.
… during asynchronous operations

- Introduced a new loading.js file that contains functions to create a loading element and add necessary styles.
- Updated showLoading function to utilize the new loading element and styles, enhancing the visual feedback during loading states.
- Removed redundant loading element creation code from showLoading for better maintainability.
…ng and code organization

- Consolidated WebSocket URL definition for better maintainability.
- Refactored online function to streamline token validation and WebSocket connection logic.
- Updated showLoading to utilize Promise.all for asynchronous operations, improving readability and performance.
- Removed redundant imports and cleaned up code for clarity.
…sary headers

- Removed redundant headers from the mail fetch request in the parsePath function.
- Streamlined the code for better readability and maintainability.
…outer.js to utilize them

- Added `getRequest` and `postRequest` functions in utils.js for streamlined API calls.
- Refactored `parsePath` function in router.js to replace direct fetch calls with the new utility functions, improving code readability and maintainability.
- Enhanced error handling for API responses in `parsePath` function.
…le logs and timeout

- Eliminated console log statements to reduce clutter and improve performance.
- Removed the setTimeout delay for removing the loading element, enhancing user experience by immediately hiding the loading indicator after operations complete.
- Streamlined the function for better readability and maintainability.
…n successful response => reduce one validate error

- Added a call to change the URL to the home page ("/") after successfully closing all sockets and reloading the page.
- This change improves user navigation by ensuring they are directed to the correct page following an operation.
- Updated the parsePath function to redirect to the "/error" page without using replaceState when an error occurs.
- Adjusted the redirection logic for unauthenticated users to maintain the use of replaceState when navigating from non-root paths.
- These changes enhance user experience by providing clearer navigation paths during error scenarios.
@minseok128 minseok128 added the bug Something isn't working label Dec 29, 2024
@minseok128 minseok128 self-assigned this Dec 29, 2024
Copy link
Contributor

@jaehejun jaehejun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

BIG BANG 魚~.~

@jaehejun jaehejun merged commit a2b4f1a into main Dec 29, 2024
2 checks passed
@seungwonme seungwonme deleted the fix/michang branch January 16, 2025 18:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants