Skip to content

[Medium]: Refactor legacy commented code and reduce component complexity #6

@AnirudhSinghRajora

Description

@AnirudhSinghRajora

Problem Statement

Refactor legacy commented code and reduce component complexity

Proposed Approach

Remove obsolete large commented blocks.
Keep only active code paths.
Group active logic into cleaner sections.
Extract repeated helper logic where needed.
Keep behavior and UI unchanged.
Validate major user flows after cleanup.

Files and Scope

event-dappp/src/App.js
event-dappp/src/components/EventList.jsx
event-dappp/src/components/CreateEventPage.jsx
event-dappp/src/components/UserProfile.jsx

Acceptance Criteria

  • Large obsolete commented blocks are removed
  • Active code structure is easier to read
  • Repeated helper logic is extracted where useful
  • No user-facing behavior regression is introduced

Test Plan

Run frontend app and test event list, create event, and profile pages.
Run frontend tests and confirm no breakage.
Compare behavior before and after cleanup.

Risks and Edge Cases

Accidentally deleting still-needed logic.
Refactor may break prop flow if not verified carefully.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions