Skip to content

[WEB-1920] fix: project intake disabled validation#5161

Merged
sriramveeraghanta merged 1 commit intopreviewfrom
fix/sidebar-disabled-feature
Jul 18, 2024
Merged

[WEB-1920] fix: project intake disabled validation#5161
sriramveeraghanta merged 1 commit intopreviewfrom
fix/sidebar-disabled-feature

Conversation

@anmolsinghbhatia
Copy link
Collaborator

@anmolsinghbhatia anmolsinghbhatia commented Jul 18, 2024

Changes:

This PR includes following changes:

  • Fixed the app sidebar project intake feature toggle. Previously, the intake feature was still visible in the app sidebar even when it was toggled off.

Issue link: [WEB-1920]

Summary by CodeRabbit

  • Enhancements
    • Renamed the sidebar item from "Inbox" to "Intake" for better alignment with project views.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jul 18, 2024

Walkthrough

The update changes the condition for rendering sidebar items based on project views in the workspace sidebar. Specifically, it renames the "Inbox" item to "Intake" and adjusts the associated condition checks to reflect this change. This modification ensures that the sidebar accurately displays the updated project view names.

Changes

File Change Summary
.../workspace/sidebar/projects-list-item.tsx Modified the condition for rendering sidebar items, changing "Inbox" to "Intake".

Poem

In the sidebar's quiet space,
"Inbox" now has a new place,
As "Intake" it shall be known,
A fresh name to call its own. 🎉
Projects streamlined, clear as day,
Helping us all find our way. 🐇✨


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>.
    • 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 generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @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 as 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.

Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

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.

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, codebase verification and nitpick comments (1)
web/core/components/workspace/sidebar/projects-list-item.tsx (1)

The name change from "Inbox" to "Intake" is not consistent across the codebase.

The term "Inbox" is still widely used in the following files:

  • web/core/store/inbox/inbox-issue.store.ts
  • web/core/store/root.store.ts
  • web/core/store/inbox/project-inbox.store.ts
  • web/core/services/inbox/inbox-issue.service.ts
  • web/helpers/inbox.helper.ts
  • web/core/constants/dashboard.ts
  • web/core/components/workspace-notifications/sidebar/filters/menu/root.tsx
  • web/core/components/ui/loader/layouts/project-inbox/inbox-layout-loader.tsx
  • web/core/components/ui/loader/layouts/project-inbox/inbox-sidebar-loader.tsx
  • web/core/components/workspace-notifications/sidebar/header/root.tsx
  • web/core/components/issues/issue-detail/label/root.tsx
  • web/core/components/issues/issue-detail/issue-activity/activity/activity-list.tsx
  • web/core/components/issues/issue-detail/issue-activity/activity/actions/inbox.tsx
  • web/core/components/core/activity.tsx
  • web/core/components/inbox/root.tsx
  • web/core/components/inbox/inbox-issue-status.tsx
  • web/core/components/inbox/sidebar/inbox-list.tsx
  • web/core/components/inbox/sidebar/inbox-list-item.tsx
  • web/core/components/inbox/sidebar/root.tsx
  • web/core/components/inbox/inbox-filter/sorting/order-by.tsx
  • web/core/components/inbox/modals/snooze-issue-modal.tsx
  • web/core/components/inbox/modals/select-duplicate.tsx
  • web/core/components/inbox/inbox-filter/root.tsx
  • web/core/components/inbox/inbox-filter/filters/date.tsx
  • web/core/components/inbox/inbox-filter/filters/status.tsx
  • web/core/components/inbox/inbox-filter/filters/labels.tsx
  • web/core/components/inbox/inbox-filter/filters/filter-selection.tsx
  • web/core/components/inbox/inbox-filter/filters/members.tsx
  • web/core/components/inbox/inbox-filter/applied-filters/label.tsx
  • web/core/components/inbox/modals/create-edit-modal/edit-root.tsx
  • web/core/components/inbox/inbox-filter/filters/state.tsx
  • web/core/components/inbox/inbox-filter/applied-filters/status.tsx
  • web/core/components/inbox/inbox-filter/filters/priority.tsx
  • web/core/components/inbox/inbox-filter/applied-filters/priority.tsx
  • web/core/components/inbox/modals/create-edit-modal/create-root.tsx
  • web/core/components/inbox/content/issue-root.tsx
  • web/core/components/inbox/content/issue-properties.tsx
  • web/core/components/inbox/content/inbox-issue-mobile-header.tsx
  • web/core/components/inbox/content/inbox-issue-header.tsx
  • web/core/components/inbox/content/root.tsx
  • web/core/components/inbox/modals/create-edit-modal/issue-title.tsx
  • web/core/components/inbox/inbox-filter/applied-filters/member.tsx
  • web/core/constants/inbox.tsx
  • web/core/hooks/store/use-issue-detail.ts
  • web/core/hooks/store/use-project-inbox.ts
  • web/core/hooks/store/use-inbox-issues.ts
  • web/core/layouts/auth-layout/project-wrapper.tsx
  • web/app/[workspaceSlug]/(projects)/notifications/layout.tsx
  • web/app/[workspaceSlug]/(projects)/notifications/page.tsx
  • packages/types/src/inbox.d.ts
  • packages/ui/src/emoji/icons.ts
  • web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/inbox/header.tsx
  • web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/inbox/page.tsx
  • web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/inbox/layout.tsx
  • apiserver/plane/api/urls/inbox.py
  • apiserver/plane/api/views/inbox.py
  • apiserver/plane/api/serializers/__init__.py
  • apiserver/plane/api/views/__init__.py
  • apiserver/plane/api/views/project.py
  • apiserver/plane/app/views/project/base.py
  • apiserver/plane/app/views/inbox/base.py
  • apiserver/plane/app/serializers/__init__.py
  • apiserver/plane/app/serializers/inbox.py
  • apiserver/plane/space/serializer/inbox.py
  • apiserver/plane/space/views/inbox.py
  • apiserver/plane/space/urls/inbox.py
  • apiserver/plane/db/migrations/0033_auto_20230618_2125.py
  • apiserver/plane/db/models/project.py
  • apiserver/plane/db/models/inbox.py
  • apiserver/plane/db/models/deploy_board.py
  • apiserver/plane/db/models/__init__.py
  • apiserver/plane/bgtasks/dummy_data_task.py
  • apiserver/plane/bgtasks/webhook_task.py

Please ensure that the name "Intake" is used consistently throughout the codebase.

Analysis chain

Line range hint 55-55:
Verify the consistency of the name change.

Ensure that the name "Intake" is used consistently throughout the codebase instead of "Inbox".

Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify that "Intake" is used consistently instead of "Inbox".

# Test: Search for occurrences of "Inbox". Expect: No occurrences.
rg --type js,jsx,ts,tsx 'Inbox'

Length of output: 69


Script:

#!/bin/bash
# Description: Verify that "Intake" is used consistently instead of "Inbox".

# Test: Search for occurrences of "Inbox". Expect: No occurrences.
rg --type-add 'web:*.{js,jsx,ts,tsx}' 'Inbox'

# Test: Search for occurrences of "Intake". Expect: Occurrences in relevant places.
rg --type-add 'web:*.{js,jsx,ts,tsx}' 'Intake'

Length of output: 72713

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 4ce255a and b03e518.

Files selected for processing (1)
  • web/core/components/workspace/sidebar/projects-list-item.tsx (1 hunks)
Additional comments not posted (1)
web/core/components/workspace/sidebar/projects-list-item.tsx (1)

473-473: Verify the correctness of the condition check.

Ensure that project.inbox_view is correctly set and used throughout the codebase.

Verification successful

Verified the correctness of the condition check.

The project.inbox_view is correctly set and used throughout the codebase.

  • projects.d.ts: inbox_view is defined as a boolean.
  • header.tsx, page.tsx, projects-list-item.tsx, features.tsx: inbox_view is used appropriately.
Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify that `project.inbox_view` is correctly set and used.

# Test: Search for occurrences of `inbox_view`. Expect: Correct usage.
rg --type js,jsx,ts,tsx 'inbox_view'

Length of output: 74


Script:

#!/bin/bash
# Description: Verify that `project.inbox_view` is correctly set and used.

# Test: Search for occurrences of `inbox_view`. Expect: Correct usage.
rg -t js -t jsx -t ts -t tsx 'inbox_view'

Length of output: 69


Script:

#!/bin/bash
# Description: Verify that `project.inbox_view` is correctly set and used.

# Test: Search for occurrences of `inbox_view`. Expect: Correct usage.
rg -t js -t ts -t tsx 'inbox_view'

Length of output: 62


Script:

#!/bin/bash
# Description: Verify that `project.inbox_view` is correctly set and used.

# Test: Search for occurrences of `inbox_view`. Expect: Correct usage.
rg -t js -t ts 'inbox_view'

Length of output: 739

@sriramveeraghanta sriramveeraghanta merged commit aade07b into preview Jul 18, 2024
@sriramveeraghanta sriramveeraghanta deleted the fix/sidebar-disabled-feature branch July 18, 2024 12:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants