Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UX request: Merge savedOrder to collectionOrder #181

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

wulaiyin789
Copy link
Contributor

@wulaiyin789 wulaiyin789 commented May 13, 2024

Please let me know if I'm wrong. Thanks. LOL

Situation:

  • Merge saved order to collection order under the setting (常用路線 -> 收藏路線)

Current suggestion:

  • Only change the component state without changing the context state
  • Only change from UI without affecting the context state

Concerns:

  • Coding might be crumby
  • Need to add useEffect for each component to synchronize every rendering (Might slightly slow down the performance?)

Testing:

  • Need further test. From UIUX perspective, no bug was found atm

Summary by CodeRabbit

  • New Features

    • Enhanced collection management with improved index handling and default value appending.
    • Introduced new state management for collections, including conditional rendering and state updates.
  • Bug Fixes

    • Corrected index calculations and array manipulations to ensure accurate data handling.
  • Improvements

    • Reorganized imports and improved code clarity in multiple components.
    • Updated drag-and-drop functionality and conditional rendering based on new collection states.
  • Refactor

    • Adjusted logic in several components to handle new collection state variables and context usage.

Situation:
- Merge saved order to collection order under the setting (常用路線 -> 收藏路線)

Current suggestion:
- Only change the component state without changing the context state
- Only change from UI without affecting the context state

Concerns:
- Coding might be crumby
- Need to add useEffect for each component to synchronize every rendering (Might slightly slow down the performance?)

Testing:
- Need further test. From UIUX perspective, no bug found atm
@chunlaw
Copy link
Member

chunlaw commented May 20, 2024

Seems to be bugged. Clicking the first collection will prompt to "Saved", instead of the first collection

@wulaiyin789
Copy link
Contributor Author

Seems to be bugged. Clicking the first collection will prompt to "Saved", instead of the first collection

Can you screen-record the bug? Thanks

@chunlaw
Copy link
Member

chunlaw commented May 29, 2024

Seems to be bugged. Clicking the first collection will prompt to "Saved", instead of the first collection

Can you screen-record the bug? Thanks

Screen.Recording.2024-05-29.at.12.00.47.PM.mov

@chunlaw
Copy link
Member

chunlaw commented Jun 1, 2024

After reviewing the result, I am not quite get the amendment to the current one.

Might you pm me via Telegram?

- Changed some of the function in CollectionContext. It might affect other corresponded buttons, so still need further testing
- Added toggleCollectionDialog function for "常用" when user clicks the "常用" under CollectionDrawer (when route is bookmarked)
Copy link

coderabbitai bot commented Jun 5, 2024

Walkthrough

The recent updates encompass a variety of modifications across multiple files, focusing primarily on refining index calculations, array manipulations, and state management within different components. Key changes include the introduction of new imports, updates to function signatures, enhancements in rendering logic, and the addition of conditional rendering based on updated state variables. These adjustments aim to improve the overall functionality and maintainability of the CollectionContextProvider and associated components.

Changes

Files Changed Summary
src/CollectionContext.tsx Adjusted index calculations and array manipulations within CollectionContextProvider component.
src/components/home/lists/SavedRouteList.tsx Added imports and modified getRoutes function to reverse the sliced array after sorting.
src/components/layout/CollectionDrawer.tsx Reorganized imports, added useTranslation, and updated rendering logic for Collection component.
src/components/layout/collections/Collection.tsx Adjusted logic to handle toggling collection ETA based on collectionIdx value.
src/components/layout/collections/CollectionDialog.tsx Added useEffect and useState for updating newCollection and conditional rendering logic.
src/components/layout/collections/CollectionRoute.tsx Modified context usage, state management, and added useEffect for updating newCollection.
src/components/layout/collections/CollectionSchedule.tsx Added useEffect and useState for updating newCollection and adjusted rendering logic.
src/components/settings/CollectionOrderList.tsx Reordered imports, added savedEtas in state, updated handleDragEnd, and conditional rendering.
src/components/settings/UserContentManagement.tsx Commented out SavedEtaList component and updated initial state of tab and related rendering.

Sequence Diagram(s) (Beta)

sequenceDiagram
    participant User
    participant CollectionContextProvider
    participant CollectionDrawer
    participant Collection

    User->>CollectionDrawer: Open Collection Drawer
    CollectionDrawer->>CollectionContextProvider: Fetch Collections
    CollectionContextProvider-->>CollectionDrawer: Provide Collections
    CollectionDrawer->>Collection: Render Collections with collectionIdx
    Collection->>CollectionContextProvider: Toggle Collection ETA
    CollectionContextProvider-->>Collection: Updated Collection ETA

Poem

In the realm of code, changes bloom,
Arrays and indices find their room.
With states and schedules, all in line,
Collections now are quite divine.
A rabbit’s joy, in bytes and bits,
For every tweak, the system fits. 🐇✨


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 Configration 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

@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: 5

Outside diff range and nitpick comments (1)
src/components/settings/CollectionOrderList.tsx (1)

81-85: Consider removing commented-out code if it's no longer needed, or clarify its purpose with a comment if it might be used in the future.

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between d939eb8 and ec91650.

Files selected for processing (9)
  • src/CollectionContext.tsx (8 hunks)
  • src/components/home/lists/SavedRouteList.tsx (2 hunks)
  • src/components/layout/CollectionDrawer.tsx (4 hunks)
  • src/components/layout/collections/Collection.tsx (1 hunks)
  • src/components/layout/collections/CollectionDialog.tsx (3 hunks)
  • src/components/layout/collections/CollectionRoute.tsx (2 hunks)
  • src/components/layout/collections/CollectionSchedule.tsx (4 hunks)
  • src/components/settings/CollectionOrderList.tsx (5 hunks)
  • src/components/settings/UserContentManagement.tsx (3 hunks)
Files not reviewed due to errors (1)
  • src/CollectionContext.tsx (no review received)
Additional context used
Biome
src/components/settings/UserContentManagement.tsx

[error] 87-88: The computed expression can be simplified without the use of a string literal. (lint/complexity/useLiteralKeys)

Unsafe fix: Use a literal key instead.


[error] 94-95: The computed expression can be simplified without the use of a string literal. (lint/complexity/useLiteralKeys)

Unsafe fix: Use a literal key instead.

src/components/layout/collections/CollectionDialog.tsx

[error] 148-149: The computed expression can be simplified without the use of a string literal. (lint/complexity/useLiteralKeys)

Unsafe fix: Use a literal key instead.


[error] 155-155: The computed expression can be simplified without the use of a string literal. (lint/complexity/useLiteralKeys)

Unsafe fix: Use a literal key instead.

Additional comments not posted (9)
src/components/layout/CollectionDrawer.tsx (2)

55-63: The dynamic assignment of collectionIdx in the map function appears correct. Ensure that the index calculation aligns with the intended collection ordering.


45-45: Ensure that the hardcoded collectionIdx={0} aligns with the intended logic for saved routes.

src/components/layout/collections/Collection.tsx (1)

59-64: The conditional logic for toggling collection ETA based on collectionIdx is well-implemented. Ensure that the conditions handle all edge cases correctly.

src/components/layout/collections/CollectionRoute.tsx (2)

31-38: The initialization and updates to newCollection state are noted. Ensure that the state management logic correctly reflects the intended functionality and that there are no unintended side effects.

Also applies to: 64-74


55-59: The handling of drag-and-drop functionality appears robust. Verify that the changes correctly handle the reordering of items and that there are no issues with the drag-and-drop interaction.

Verification successful

The handleDragEnd function in CollectionRoute.tsx appears to handle the drag-and-drop functionality correctly by reordering items and updating the state accordingly. The function checks if the item was dropped outside the list, reorders the items, and updates the state based on the collectionIdx.

  • handleDragEnd reorders items using the reorder function.
  • It updates the state with setItems, setSavedEtas, or setCollectionEtas based on the collectionIdx.

This implementation seems robust and should handle the drag-and-drop interactions as expected.

Scripts executed

The following scripts were executed for the analysis:


Script:

#!/bin/bash
# Description: Verify that the drag-and-drop functionality is working correctly.

# Test: Search for any issues related to drag-and-drop interactions. Expect: No issues should be found.
rg --type typescript $'DragDropContext'

Length of output: 73



Script:

#!/bin/bash
# Description: Verify that the drag-and-drop functionality is working correctly.

# Test: Search for any issues related to drag-and-drop interactions. Expect: No issues should be found.
rg --type tsx 'DragDropContext'

Length of output: 59



Script:

#!/bin/bash
# Description: Verify that the drag-and-drop functionality is working correctly.

# Test: Search for any issues related to drag-and-drop interactions. Expect: No issues should be found.
rg 'DragDropContext'

Length of output: 1171



Script:

#!/bin/bash
# Description: Verify the implementation of the handleDragEnd function.

# Test: Search for the definition and usage of the handleDragEnd function.
rg 'function handleDragEnd' --files-with-matches | xargs rg 'handleDragEnd'

Length of output: 785



Script:

#!/bin/bash
# Description: Extract the implementation of the handleDragEnd function from CollectionRoute.tsx.

# Test: Extract the implementation of the handleDragEnd function.
rg --multiline --multiline-dotall 'const handleDragEnd = useCallback\(\$.*?\}\)\;' src/components/layout/collections/CollectionRoute.tsx

Length of output: 295



Script:

#!/bin/bash
# Description: Extract the implementation of the handleDragEnd function from CollectionRoute.tsx.

# Test: Extract the implementation of the handleDragEnd function.
rg --multiline --multiline-dotall 'const handleDragEnd = useCallback\((.*?)\}\)\;' src/components/layout/collections/CollectionRoute.tsx

Length of output: 295



Script:

#!/bin/bash
# Description: Extract the implementation of the handleDragEnd function from CollectionRoute.tsx.

# Test: Extract the implementation of the handleDragEnd function.
rg --multiline --multiline-dotall 'const handleDragEnd = useCallback\((.|\n)*?\}\)\;' src/components/layout/collections/CollectionRoute.tsx

Length of output: 304



Script:

#!/bin/bash
# Description: Extract the implementation of the handleDragEnd function from CollectionRoute.tsx.

# Test: Search for the handleDragEnd function and extract the surrounding lines.
rg 'handleDragEnd' -A 20 src/components/layout/collections/CollectionRoute.tsx

Length of output: 1351

src/components/layout/collections/CollectionDialog.tsx (1)

36-43: The changes related to state management and conditional rendering in CollectionDialog.tsx are significant. Ensure that the new logic correctly handles the dialog state and that the conditional rendering is consistent with the intended user interactions.

Also applies to: 47-57, 59-111

Verification successful

The search results indicate that the newCollection state is used in multiple files, including CollectionDialog.tsx, CollectionRoute.tsx, and CollectionSchedule.tsx. The state management and conditional rendering logic appear to be consistent across these files.

  • CollectionDialog.tsx uses newCollection for rendering based on collectionIdx.
  • CollectionRoute.tsx and CollectionSchedule.tsx also manage and utilize newCollection similarly.

Given the consistency in usage and no apparent issues found in the search results, the changes seem to be correctly implemented.

Scripts executed

The following scripts were executed for the analysis:


Script:

#!/bin/bash
# Description: Verify that the conditional rendering and state management in `CollectionDialog.tsx` are functioning as intended.

# Test: Search for any inconsistencies or issues related to the new logic. Expect: No issues should be found.
rg --type typescript $'newCollection'

Length of output: 71



Script:

#!/bin/bash
# Description: Verify that the conditional rendering and state management in `CollectionDialog.tsx` are functioning as intended.

# Test: Search for any inconsistencies or issues related to the new logic. Expect: No issues should be found.
rg --type ts 'newCollection'

Length of output: 3378

src/components/home/lists/SavedRouteList.tsx (1)

148-149: The changes to the handling and display of saved routes in SavedRouteList.tsx are noted. Ensure that the logic for filtering and displaying routes is optimized and correctly handles all edge cases.

src/components/layout/collections/CollectionSchedule.tsx (1)

32-32: Ensure savedEtas is properly initialized and updated in CollectionContext to prevent potential undefined behavior.

Verification successful

Ensure savedEtas is properly initialized and updated in CollectionContext to prevent potential undefined behavior.

  • savedEtas is initialized as an empty array if the local storage item is not an array of strings.
  • setSavedEtas is defined to update savedEtas and store it in local storage.
Scripts executed

The following scripts were executed for the analysis:


Script:

#!/bin/bash
# Description: Verify the initialization and update mechanisms for `savedEtas` in CollectionContext.

# Test: Search for `savedEtas` initialization and update logic.
rg --type typescript $'savedEtas' src/CollectionContext.tsx

Length of output: 93



Script:

#!/bin/bash
# Description: Verify the initialization and update mechanisms for `savedEtas` in CollectionContext.

# Test: Search for `savedEtas` initialization and update logic.
rg --type ts 'savedEtas' src/CollectionContext.tsx

Length of output: 631

src/components/settings/CollectionOrderList.tsx (1)

145-145: Ensure that the conditional rendering logic aligns with the intended functionality, especially the conditions under which DragHandleIcon and EditOutlinedIcon are shown.

Verification successful

The conditional rendering logic for DragHandleIcon and EditOutlinedIcon in CollectionOrderList.tsx appears to be correctly implemented based on the context and usage of mode and name. The conditions ensure that DragHandleIcon is shown only when mode is "order" and name is not "常用", and EditOutlinedIcon is shown when mode is "delete".

  • mode is used to determine the current mode of the component, with specific conditions for "order" and "delete".
  • name is used to check against the value "常用" to conditionally render the icons.

The logic aligns with the intended functionality.

Scripts executed

The following scripts were executed for the analysis:


Script:

#!/bin/bash
# Description: Verify the conditional rendering logic in `DraggableListItem`.

# Test: Search for conditional rendering patterns and ensure they match the intended functionality.
rg --type typescript $'mode ===' src/components/settings/CollectionOrderList.tsx

Length of output: 116



Script:

#!/bin/bash
# Description: Verify the conditional rendering logic in `DraggableListItem`.

# Test: Search for conditional rendering patterns and ensure they match the intended functionality.
rg 'mode ===' src/components/settings/CollectionOrderList.tsx

Length of output: 165



Script:

#!/bin/bash
# Description: Verify the context and usage of `mode` and `name` in `CollectionOrderList.tsx`.

# Search for the definitions and usages of `mode`.
rg 'mode' src/components/settings/CollectionOrderList.tsx

# Search for the definitions and usages of `name`.
rg 'name' src/components/settings/CollectionOrderList.tsx

Length of output: 785

Comment on lines +45 to +55
useEffect(() => {
setNewCollection([
// cannot use Array.reverse() as it is in-place reverse
{
name: t("常用"),
list: savedEtas,
schedules: [],
},
...collections,
]);
}, [collections, savedEtas, t]);
Copy link

Choose a reason for hiding this comment

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

The useEffect hook correctly updates newCollection based on dependencies. However, consider optimizing by checking if the dependencies have actually changed to avoid unnecessary updates.

- useEffect(() => {
-   setNewCollection([...]);
- }, [collections, savedEtas, t]);
+ useEffect(() => {
+   if (prevCollections !== collections || prevSavedEtas !== savedEtas) {
+     setNewCollection([...]);
+   }
+ }, [collections, savedEtas, t]);

Committable suggestion was skipped due to low confidence.

if (collectionIdx === null) {
return null;
}

return (
<LocalizationProvider dateAdapter={AdapterDayjs}>
<Box sx={rootSx}>
{collections[collectionIdx].schedules.map((daySchedule, idx) => (
{newCollection[collectionIdx].schedules.map((daySchedule, idx) => (
Copy link

Choose a reason for hiding this comment

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

Tip

Codebase Verification

Add a bounds check for collectionIdx to ensure it is within the valid range of newCollection.

  • In src/components/layout/collections/CollectionSchedule.tsx, add a check to ensure collectionIdx is within the bounds of newCollection before accessing it.
Analysis chain

The rendering logic correctly uses newCollection for displaying schedules. Ensure that collectionIdx is always within the bounds of newCollection.

Scripts executed

The following scripts were executed for the analysis:


Script:

#!/bin/bash
# Description: Verify that `collectionIdx` is always within the bounds of `newCollection`.

# Test: Search for `collectionIdx` usage and ensure it's checked against `newCollection` length.
rg --type typescript $'collectionIdx' src/components/layout/collections/CollectionSchedule.tsx

Length of output: 128



Script:

#!/bin/bash
# Description: Verify that `collectionIdx` is always within the bounds of `newCollection`.

# Test: Search for `collectionIdx` usage and ensure it's checked against `newCollection` length.
rg 'collectionIdx' src/components/layout/collections/CollectionSchedule.tsx

Length of output: 202



Script:

#!/bin/bash
# Description: Extract and display the relevant code segments around the instances of `collectionIdx`.

# Extract 5 lines before and after each instance of `collectionIdx`.
rg 'collectionIdx' -A 5 -B 5 src/components/layout/collections/CollectionSchedule.tsx

Length of output: 813

Comment on lines +46 to +47
// Remove the savedEtas (first object in the items array)
newItems.shift();
Copy link

Choose a reason for hiding this comment

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

Tip

Codebase Verification

The savedEtas variable is used in multiple places within the CollectionOrderList.tsx file. Removing it from newItems might lead to unintended side effects if it is required elsewhere in the code.

  • const { collections, setCollections, toggleCollectionDialog, savedEtas } = ...
  • list: savedEtas,
  • [collections, savedEtas, t]

These usages indicate that savedEtas is indeed used in various parts of the component, and its removal from newItems should be carefully reviewed to ensure it does not cause issues.

  • Verify the logic and ensure that removing savedEtas from newItems does not lead to unintended side effects.
Analysis chain

The removal of savedEtas from newItems might lead to unintended side effects if savedEtas is required elsewhere. Verify this logic.

Scripts executed

The following scripts were executed for the analysis:


Script:

#!/bin/bash
# Description: Verify the usage of `savedEtas` after its removal from `newItems`.

# Test: Search for `savedEtas` usage after its removal.
rg --type typescript $'savedEtas' src/components/settings/CollectionOrderList.tsx

Length of output: 115



Script:

#!/bin/bash
# Description: Verify the usage of `savedEtas` after its removal from `newItems`.

# Test: Search for `savedEtas` usage after its removal.
rg 'savedEtas' src/components/settings/CollectionOrderList.tsx

Length of output: 286

@@ -36,7 +40,7 @@ const UserContentManagement = () => {
variant="scrollable"
scrollButtons
>
<Tab value="savedOrder" label={t("常用路線")} />
{/* <Tab value="savedOrder" label={t("常用路線")} /> */}
Copy link

Choose a reason for hiding this comment

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

Tip

Codebase Verification

The search results indicate that there are still references to savedOrder in the UserContentManagement.tsx file. These references should be reviewed and potentially removed to ensure consistency with the removal of the savedOrder tab.

  • src/components/settings/UserContentManagement.tsx: type TAB = "savedOrder" | "collectionOrder" | "stopOrder";
  • src/components/settings/UserContentManagement.tsx: {/* <Tab value="savedOrder" label={t("常用路線")} /> */}
  • src/components/settings/UserContentManagement.tsx: {/* {tab === "savedOrder" && <SavedEtaList mode={mode} />} */}
Analysis chain

The simplification of the tab logic by removing the savedOrder tab is noted. Verify that this change is consistent with the intended user experience enhancements.

Scripts executed

The following scripts were executed for the analysis:


Script:

#!/bin/bash
# Description: Verify that the removal of the `savedOrder` tab is consistent with user experience enhancements.

# Test: Search for any inconsistent usage of the `savedOrder` tab. Expect: No inconsistent usage should exist.
rg --type typescript $'savedOrder'

Length of output: 68



Script:

#!/bin/bash
# Description: Verify that the removal of the `savedOrder` tab is consistent with user experience enhancements.

# Test: Search for any inconsistent usage of the `savedOrder` tab. Expect: No inconsistent usage should exist.
rg --type ts 'savedOrder'

Length of output: 366

import CollectionOrderList from "./CollectionOrderList";
import StopOrderList from "./StopOrderList";
// import SavedEtaList from "./SavedEtaList";
Copy link

Choose a reason for hiding this comment

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

Tip

Codebase Verification

The removal of SavedEtaList is incomplete as there are still references to it in the codebase.

  • src/components/settings/UserContentManagement.tsx:
    • Line: // import SavedEtaList from "./SavedEtaList";
    • Line: {/* {tab === "savedOrder" && <SavedEtaList mode={mode} />} */}
  • src/components/settings/SavedEtaList.tsx:
    • Line: const SavedEtaList = ({ mode }: { mode: ManageMode }) => {
    • Line: export default SavedEtaList;

Please ensure all references to SavedEtaList are removed to avoid potential issues.

Analysis chain

The removal of SavedEtaList and its related tab is noted. Ensure that this change aligns with the new feature requirements and does not affect other functionalities.

Also applies to: 63-63

Scripts executed

The following scripts were executed for the analysis:


Script:

#!/bin/bash
# Description: Verify that the removal of `SavedEtaList` does not affect other functionalities.

# Test: Search for any remaining references to `SavedEtaList`. Expect: No references should exist.
rg --type typescript $'SavedEtaList'

Length of output: 70



Script:

#!/bin/bash
# Description: Verify that the removal of `SavedEtaList` does not affect other functionalities.

# Test: Search for any remaining references to `SavedEtaList`. Expect: No references should exist.
rg --type ts,tsx 'SavedEtaList'

Length of output: 62



Script:

#!/bin/bash
# Description: Verify that the removal of `SavedEtaList` does not affect other functionalities.

# Test: Search for any remaining references to `SavedEtaList`. Expect: No references should exist.
rg --type ts --type tsx 'SavedEtaList'

Length of output: 66



Script:

#!/bin/bash
# Description: Verify that the removal of `SavedEtaList` does not affect other functionalities.

# Test: Search for any remaining references to `SavedEtaList`. Expect: No references should exist.
rg --glob '*.ts' --glob '*.tsx' 'SavedEtaList'

Length of output: 431

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.

None yet

2 participants