Skip to content

Conversation

@pqhung3007
Copy link
Contributor

@pqhung3007 pqhung3007 commented May 12, 2025

Description

This PR added the ability to select/deselect all work items when adding existing work item to a new cycle for faster bulk selection.

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • Feature (non-breaking change which adds functionality)
  • Improvement (change that would cause existing functionality to not work as expected)
  • Code refactoring
  • Performance improvements
  • Documentation update

Screenshots and Media (if applicable)

Screen.Recording.2025-05-12.at.15.38.58.mov

Test Scenarios

References

Summary by CodeRabbit

  • New Features

    • Added a "Select All"/"Deselect All" button to the existing issues list modal, allowing users to quickly select or deselect all items in the list.
    • The new button is disabled when there are no issues and its label updates based on the current selection state.
  • Localization

    • Added translations for "Select All" and "Deselect All" actions in all supported languages.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented May 12, 2025

"""

Walkthrough

Bulk selection functionality was introduced to the existing issues list modal. A new handler toggles between selecting and deselecting all filtered issues, and a button reflecting this state was added to the modal footer with left alignment. Additionally, translation files for multiple languages were updated to include localized strings for "Select All" and "Deselect All".

Changes

File(s) Change Summary
web/core/components/core/modals/existing-issues-list-modal.tsx Added handleSelectIssues() to toggle select/deselect all filtered issues; updated modal footer layout with a left-aligned toggle button and right-aligned Cancel/Add buttons.
packages/i18n/src/locales/*/translations.json Added "select_all" and "deselect_all" keys under "issue.select" for all supported languages.

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant Modal as ExistingIssuesListModal
    participant State as IssueSelectionState

    User->>Modal: Clicks "Select All"/"Deselect All" button
    Modal->>State: handleSelectIssues()
    alt All filtered issues selected
        State->>State: Clear selection of all filtered issues
        Modal->>User: Update button label to "Select All"
    else Not all filtered issues selected
        State->>State: Select all filtered issues
        Modal->>User: Update button label to "Deselect All"
    end
Loading

Suggested labels

🌐frontend, 🌟improvement

Suggested reviewers

  • anmolsinghbhatia

Poem

A button appears, so shiny and bright,
"Select all!" it cheers, or "Deselect!"—just right.
With languages many, the world can now say,
"Pick every issue, or clear them away!"
In the modal’s new dance, selection’s a breeze—
CodeRabbit hops on, with effortless ease! 🐇✨
"""

Tip

⚡️ Faster reviews with caching
  • CodeRabbit now supports caching for code and dependencies, helping speed up reviews. This means quicker feedback, reduced wait times, and a smoother review experience overall. Cached data is encrypted and stored securely. This feature will be automatically enabled for all accounts on May 16th. To opt out, configure Review - Disable Cache at either the organization or repository level. If you prefer to disable all data retention across your organization, simply turn off the Data Retention setting under your Organization Settings.

Enjoy the performance boost—your workflow just got faster.


📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 012a019 and b44eaea.

📒 Files selected for processing (1)
  • web/core/components/core/modals/existing-issues-list-modal.tsx (2 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • web/core/components/core/modals/existing-issues-list-modal.tsx
✨ Finishing Touches
  • 📝 Generate Docstrings

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ 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.
    • Explain this complex logic.
    • 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 explain this code block.
    • @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 explain its main purpose.
    • @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.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

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 generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this 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.

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: 1

🧹 Nitpick comments (1)
web/core/components/core/modals/existing-issues-list-modal.tsx (1)

325-329: Consider improving the select/deselect button's clarity.

When some (but not all) issues are manually selected, the button will still display "Select All", which might be confusing.

Consider enhancing the button label to show the number of selected items:

-{selectedIssues.length === issues.length
-  ? t("issue.select.deselect_all")
-  : t("issue.select.select_all")}
+{selectedIssues.length === filteredIssues.length
+  ? t("issue.select.deselect_all")
+  : `${t("issue.select.select_all")} (${selectedIssues.length}/${filteredIssues.length})`}
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 26c8cba and f5df5ea.

📒 Files selected for processing (20)
  • packages/i18n/src/locales/cs/translations.json (1 hunks)
  • packages/i18n/src/locales/de/translations.json (1 hunks)
  • packages/i18n/src/locales/en/translations.json (1 hunks)
  • packages/i18n/src/locales/es/translations.json (1 hunks)
  • packages/i18n/src/locales/fr/translations.json (1 hunks)
  • packages/i18n/src/locales/id/translations.json (1 hunks)
  • packages/i18n/src/locales/it/translations.json (1 hunks)
  • packages/i18n/src/locales/ja/translations.json (1 hunks)
  • packages/i18n/src/locales/ko/translations.json (1 hunks)
  • packages/i18n/src/locales/pl/translations.json (1 hunks)
  • packages/i18n/src/locales/pt-BR/translations.json (1 hunks)
  • packages/i18n/src/locales/ro/translations.json (1 hunks)
  • packages/i18n/src/locales/ru/translations.json (1 hunks)
  • packages/i18n/src/locales/sk/translations.json (1 hunks)
  • packages/i18n/src/locales/tr-TR/translations.json (1 hunks)
  • packages/i18n/src/locales/ua/translations.json (1 hunks)
  • packages/i18n/src/locales/vi-VN/translations.json (1 hunks)
  • packages/i18n/src/locales/zh-CN/translations.json (1 hunks)
  • packages/i18n/src/locales/zh-TW/translations.json (1 hunks)
  • web/core/components/core/modals/existing-issues-list-modal.tsx (2 hunks)
🧰 Additional context used
🧬 Code Graph Analysis (1)
web/core/components/core/modals/existing-issues-list-modal.tsx (1)
packages/i18n/src/store/index.ts (1)
  • t (233-254)
🔇 Additional comments (21)
packages/i18n/src/locales/es/translations.json (1)

1085-1087: Bulk selection keys correctly localized
The select_all and deselect_all keys have been added alongside add_selected under "issue.select". The Spanish translations "Seleccionar todo" and "Deseleccionar todo" accurately reflect the intended UI text and match the format used in other locale files.

packages/i18n/src/locales/zh-TW/translations.json (1)

1084-1086: Bulk selection keys correctly localized
The new keys select_all and deselect_all under "issue.select" are translated as "全選" and "取消全選", respectively, which are precise and consistent with the other locales.

packages/i18n/src/locales/ko/translations.json (1)

1084-1086: Added bulk selection keys for issue.select in Korean locale

The keys add_selected, select_all, and deselect_all have been correctly added under the issue.select section with accurate Korean translations. This aligns with the new UI feature for selecting and deselecting all work items.

packages/i18n/src/locales/pt-BR/translations.json (1)

1084-1086: Added bulk selection keys for issue.select in pt-BR locale

The new keys add_selected, select_all, and deselect_all are correctly inserted under the issue.select section with accurate Portuguese translations for the bulk selection UI feature.

packages/i18n/src/locales/de/translations.json (1)

1082-1084: Add bulk selection localization keys in German translation
The "add_selected", "select_all", and "deselect_all" entries under issue.select are correctly added with accurate German translations. JSON syntax and trailing commas are valid.

packages/i18n/src/locales/pl/translations.json (1)

1084-1087: Add bulk selection localization keys in Polish translation
The "add_selected", "select_all", and "deselect_all" entries under issue.select are correctly added with accurate Polish translations. JSON syntax and trailing commas are valid.

packages/i18n/src/locales/vi-VN/translations.json (1)

1083-1085: Add localized strings for bulk selection toggle
The new keys select_all and deselect_all under issue.select correctly provide the Vietnamese labels for the "Select All"/"Deselect All" feature. They align with the existing translation style and match the PR’s intent.

packages/i18n/src/locales/tr-TR/translations.json (1)

1085-1087: Add localized strings for bulk selection toggle
The entries for select_all and deselect_all under issue.select correctly supply the Turkish labels for the new bulk selection button. They follow the file’s conventions and support the feature.

packages/i18n/src/locales/cs/translations.json (1)

1082-1084: Approve Czech translation additions
The keys "add_selected", "select_all", and "deselect_all" under "issue.select" are correctly localized in Czech, and the JSON structure remains valid without introducing trailing commas.

packages/i18n/src/locales/ua/translations.json (1)

1084-1086: Approve Ukrainian translation additions
The new keys "add_selected", "select_all", and "deselect_all" are properly translated into Ukrainian and inserted with valid JSON syntax.

packages/i18n/src/locales/en/translations.json (2)

917-919: Approve new English translation keys
The keys add_selected, select_all, and deselect_all have been added correctly under the issue.select section and follow the existing naming and phrasing conventions.


917-919: Inconsistent AI-generated summary
The AI-generated summary mentions only select_all and deselect_all, but this diff also adds the add_selected key. Please update the summary to accurately reflect all added keys.

Likely an incorrect or invalid review comment.

packages/i18n/src/locales/fr/translations.json (1)

1083-1085: Approve French translation additions
The new keys add_selected, select_all, and deselect_all are translated accurately ("Ajouter les éléments de travail sélectionnés", "Sélectionner tout", and "Tout désélectionner") and match the existing style in this locale.

packages/i18n/src/locales/id/translations.json (1)

1082-1084: Correctly added Indonesian translations for bulk select/deselect
The new select_all and deselect_all keys under "issue.select" align with the added UI toggle functionality and follow the existing JSON structure. Ensure the component uses these keys for the Indonesian locale.

packages/i18n/src/locales/ja/translations.json (1)

1083-1085: Correctly added Japanese translations for bulk select/deselect
The new select_all and deselect_all entries under "issue.select" are properly inserted and consistent with the rest of the file. Verify that the modal footer button references these keys in the Japanese locale.

packages/i18n/src/locales/it/translations.json (1)

1081-1083: New translation entries for bulk selection
The keys select_all and deselect_all have been correctly added under the issue.select section with appropriate Italian values. JSON syntax remains valid, and there’s no stray trailing comma.

packages/i18n/src/locales/zh-CN/translations.json (1)

1083-1085: New translation entries for bulk selection
The keys select_all and deselect_all are properly inserted under issue.select with accurate Chinese translations. JSON formatting is correct (no extra comma).

packages/i18n/src/locales/ru/translations.json (1)

1084-1086: Approve translation additions for bulk selection
Added keys select_all ("Выбрать все") and deselect_all ("Снять выделение со всех") under issue.select. The translations are accurate, follow existing style, and maintain consistency with other locale files.

packages/i18n/src/locales/sk/translations.json (1)

1084-1086: Approve translation additions for bulk selection
Added keys select_all ("Vybrať všetko") and deselect_all ("Zrušiť výber všetkého") under issue.select. The translations are accurate, match naming conventions, and align with other locale implementations.

packages/i18n/src/locales/ro/translations.json (1)

1082-1084: Appropriate Romanian translations added for bulk selection actions.

The new translation keys for "Select All" and "Deselect All" are appropriately implemented in Romanian, maintaining consistency with other localization files.

web/core/components/core/modals/existing-issues-list-modal.tsx (1)

113-115: Selection toggle handler implementation looks good.

This handler correctly toggles between selecting all issues and deselecting all issues based on the current selection state.

@pqhung3007 pqhung3007 force-pushed the chore/select-deselect branch from f5df5ea to 229f719 Compare May 12, 2025 08:58
@pqhung3007
Copy link
Contributor Author

pqhung3007 commented May 28, 2025

@sriramveeraghanta Can you look at this PR once again to see if it's ready to be merged? Thank you.

@sriramveeraghanta
Copy link
Member

@pqhung3007 This PR looks good, and we will proceed with merging it. However, to maintain consistency, the same changes should also be applied to the Modules. Would you like to create another PR to incorporate these changes into the Modules?

@sriramveeraghanta sriramveeraghanta merged commit 64da29b into makeplane:preview Jun 2, 2025
2 of 3 checks passed
@pqhung3007
Copy link
Contributor Author

@sriramveeraghanta I see that this component ExistingIssuesListModal is also being used in modules, swimlanes' header,.. so my changes were already applied to them. :)

@coderabbitai coderabbitai bot mentioned this pull request Aug 16, 2025
6 tasks
lifeiscontent pushed a commit that referenced this pull request Aug 18, 2025
… work item (#7045)

* chore: add select all/deselect all functionality

* chore: update button display logic by CR
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants