Skip to content

[feature] Pictique code cleanup #265

@JulienAuvo

Description

@JulienAuvo

Description

File: platforms/pictique/src/routes/(protected)/+layout.svelte

  • [Line 40–58]
    Replace the if...else block with a lookup table for cleaner logic.

  • [Line 97]
    Extract conditional logic into the <script> block for clarity.


File: platforms/pictique/src/routes/(protected)/messages/[id]/+page.svelte

  • [Line 11]
    Replace any with a proper type (use unknown or a specific interface/type).

  • [Line 36–47]
    Use arrow functions instead of traditional function declarations.

  • [Line 42]
    Remove unnecessary console.log().


File: platforms/pictique/src/routes/(protected)/profile/+page.svelte

  • Add a redirect if the page content is empty or unused.

File: platforms/pictique/src/routes/(protected)/home/+page.svelte

  • [Line 148–160]
    Simplify prop passing: use comment={comment} and move all comment-specific logic into the Comment component.

General Notes

  • Search for any and replace with more appropriate types (e.g., unknown, or detailed interfaces).

  • Remove console.log() statements unless used for error handling.

  • Replace all occurrences of w/h-[100vh] with w/h-screen and w/h-[100%] with w/h-full.


Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions