Skip to content

Comments

[WEB-2795]chore:removed header links for project bread crumb inside project detail and list#6116

Merged
pushya22 merged 2 commits intopreviewfrom
fix-project_breadcrub_headers
Nov 29, 2024
Merged

[WEB-2795]chore:removed header links for project bread crumb inside project detail and list#6116
pushya22 merged 2 commits intopreviewfrom
fix-project_breadcrub_headers

Conversation

@vamsikrishnamathala
Copy link
Member

@vamsikrishnamathala vamsikrishnamathala commented Nov 28, 2024

Summary

Removed the link for the project breadcrumb across all detail and list pages within a project.

Reference

WEB-2795

Summary by CodeRabbit

  • New Features

    • Enhanced breadcrumb navigation across various project components, improving user access to project-related pages.
    • Added dynamic links to project overview and issues pages in specific headers.
    • Introduced new dropdown options for managing filters and layouts in the CycleIssuesHeader and ModuleIssuesHeader.
  • Bug Fixes

    • Removed outdated or incorrect links in breadcrumbs, ensuring accurate navigation.
  • Improvements

    • Streamlined user interactions with new state management for filters and layouts in the CycleIssuesHeader and other components.
    • Improved the functionality of the ProjectDraftIssueHeader and PageDetailsHeader by refining logo update processes and breadcrumb structures.
    • Updated breadcrumb links to ensure they correctly reference the current project context.

@vamsikrishnamathala vamsikrishnamathala added this to the v0.24.0 milestone Nov 28, 2024
@vamsikrishnamathala vamsikrishnamathala self-assigned this Nov 28, 2024
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Nov 28, 2024

Walkthrough

This pull request introduces various modifications primarily focused on the header.tsx files across multiple components related to project management. Key changes include updates to the href properties in BreadcrumbLink components, affecting navigation links to project-related pages. Additionally, some components have seen enhancements in state management and user interaction handling, particularly concerning filter and layout updates. Overall, the changes streamline navigation while maintaining existing functionalities across the affected components.

Changes

File Path Change Summary
web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/archives/header.tsx Updated href property in BreadcrumbLink to remove leading space.
web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/archives/issues/(detail)/header.tsx Removed href property in BreadcrumbLink for the first breadcrumb item.
web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/cycles/(detail)/header.tsx Added state management for analytics modal, new callback functions for layout and filter updates, and updated breadcrumbs.
web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/cycles/(list)/header.tsx Removed href attribute from BreadcrumbLink pointing to issues page.
web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/draft-issues/header.tsx Added new breadcrumb item for "Draft Issues" and updated filter management functions.
web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/issues/(detail)/header.tsx Updated href property in BreadcrumbLink for the first breadcrumb item, removing the link.
web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/issues/(list)/header.tsx Removed dynamic URL construction for the projects link in BreadcrumbLink.
web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/modules/(detail)/header.tsx Added ModuleDropdownOption component and refined filter handling functions.
web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/modules/(list)/header.tsx Commented out href property for issues page link in BreadcrumbLink.
web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/pages/(detail)/header.tsx Added new breadcrumb item linking to the "Pages" section and updated logo handling logic.
web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/pages/(list)/header.tsx Commented out href property for issues page link in BreadcrumbLink.
web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/settings/header.tsx Removed href property for issues page link in BreadcrumbLink.
web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/views/(detail)/[viewId]/header.tsx Updated href property in BreadcrumbLink to correctly reference the current project's issues page.
web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/views/(list)/header.tsx Removed dynamic link to the project's issues page in BreadcrumbLink.
web/ce/components/projects/settings/intake/header.tsx Updated href property in BreadcrumbLink to include dynamic path with workspaceSlug.

Possibly related PRs

Suggested labels

🐛bug, 🧹chore

Suggested reviewers

  • sriramveeraghanta

🐇 In the header where links once thrived,
A space was trimmed, and clarity arrived.
Breadcrumbs now guide with paths so bright,
Navigating projects feels just right!
With filters and layouts, users can play,
Enhancing the journey, day by day! 🌼


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@vamsikrishnamathala vamsikrishnamathala changed the title [WEB-2795]chore:removed header links for project bread crumb inside project detail [WEB-2795]chore:removed header links for project bread crumb inside project detail and list Nov 28, 2024
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Outside diff range and nitpick comments (1)
web/core/local-db/storage.sqlite.ts (1)

254-254: LGTM! Consider standardizing the attribute naming across the codebase.

The change from count to total_results aligns with the new naming convention. However, there are other occurrences of similar attributes (e.g., total_count) in the codebase that could be standardized for consistency.

Consider updating other occurrences to maintain consistent naming:

    return {
      results: issueResults,
      next_cursor: `${pageSize}:${parseInt(page) + 1}:${Number(offset) + Number(pageSize)}`,
      prev_cursor: `${pageSize}:${parseInt(page) - 1}:${Number(offset) - Number(pageSize)}`,
      total_results: total_count,
-     total_count,
+     total_count: total_count, // Keep for backward compatibility
      next_page_results,
      total_pages,
    };
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

📥 Commits

Reviewing files that changed from the base of the PR and between 9b9d681 and cffcb3f.

📒 Files selected for processing (2)
  • packages/types/src/issues/issue.d.ts (1 hunks)
  • web/core/local-db/storage.sqlite.ts (1 hunks)
🔇 Additional comments (1)
packages/types/src/issues/issue.d.ts (1)

98-98: ⚠️ Potential issue

Resolve duplicate count properties in TIssuesResponse

The interface now has both total_count and total_results properties representing the same concept. This could lead to confusion and inconsistent usage.

Suggestions:

  1. Mark the old property as deprecated:
-  total_count: number;
+  /** @deprecated Use total_results instead */
+  total_count: number;
   count: number;
   total_pages: number;
   extra_stats: null;
   results: TIssueResponseResults;
   total_results: number;
  1. Let's verify the usage of both properties across the codebase:

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.

3 participants