Skip to content

feat 215: Comments section#19

Merged
Vasia1101 merged 9 commits into
devfrom
feat/215/comments-section
Jun 15, 2026
Merged

feat 215: Comments section#19
Vasia1101 merged 9 commits into
devfrom
feat/215/comments-section

Conversation

@andrxpie

Copy link
Copy Markdown
Contributor

Overview

This PR implements the initial routing configuration and the sidebar (Drawer) shell for the commenting system on the Streetcode page. This foundation ensures that comments can be accessed via a specific sub-route (/comments) while keeping the main content visible in the background.

Changes Made

  • Routing Configuration: Added a new route structure in React Router to intercept URL navigation and trigger the comment sidebar.
  • Drawer Shell: Created the CommentsDrawerContainer component using Ant Design's Drawer.
  • Navigation Behavior: Implemented logic to ensure:
    • The drawer opens automatically when the URL contains /comments.
    • Navigating back closes the drawer and redirects the user to the base Streetcode URL.
    • Page refreshes on the comments sub-path maintain the correct background state.

Technical Notes

  • The drawer is positioned exclusively on the right side of the screen.
  • Used relative: 'path' configuration in React Router to prevent unintended redirects to the root page.

Checklist

  • My code follows the style guidelines of this project.
  • I have performed a self-review of my code.
  • The routing logic handles page refreshes correctly.

@andrxpie andrxpie self-assigned this Jun 10, 2026
@andrxpie andrxpie added enhancement New feature or request frontend labels Jun 10, 2026
@andrxpie andrxpie mentioned this pull request Jun 10, 2026
3 tasks
Comment thread .github/workflows/azure-static-web-apps-agreeable-ground-01c3b230f.yml Outdated
@andrxpie andrxpie requested a review from Vasia1101 June 15, 2026 14:00
@Vasia1101

Copy link
Copy Markdown
Collaborator

Please resolve conflicts

@sonarqubecloud

Copy link
Copy Markdown

@github-actions

Copy link
Copy Markdown

Azure Static Web Apps: Your stage site is ready! Visit it here: https://happy-island-094fe5703-19.westeurope.7.azurestaticapps.net

@andrxpie andrxpie requested a review from PenultimateBoss June 15, 2026 15:51
@Vasia1101 Vasia1101 merged commit dcad50e into dev Jun 15, 2026
4 checks passed
@andrxpie andrxpie deleted the feat/215/comments-section branch June 17, 2026 12:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request frontend

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[User/Commenting] Setup Intercepting Routes and Comments Drawer Shell

3 participants