-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature: Add the capability of setting "allow list" content policy (#376
) * Add permission for contentSettings * Clear contentSettings.cookies when browser window is opened * Add custom hook for allowed list * Create state for and handle classes in body row * Update TableProps and details component * Add mock test data and test for bodyRow * Add test for BodyRow * Update useAllowedList hook to handle session storage * Add test data for cookie table body * Add method for adding domain to allow list * Add new clors to tailwind * Add condition before loopin through storage.allowList * Refactor cdoe * Refactor code * Refactor code * Add types * Refactor code * Refactor code * Refactor code * Use async/await instead of promise then * Refactor code to move onClick function to a utility * Update details section for allowed cookies * Show green for an item that is not blocked and allow listed * Show green border for allow listed items even if they are blocked * Fix state update * Capitalize R in blocked reason * Refactor: Add the capability of setting "allow list" content policy (#422) * Add new key in CookieTableData type * Pass row context menu as prop and remove useAllowList hook * Move useAllowedList logic into standalone functions * Move conext menu into CookieListing and introduce states and callback for modal * Remove selected row from table * Stop propagation on click * ref: Refactor the utils handling clicks, removal of domain, setting domain and parent domain * perf: clean up unrequired calls * chore: delete already moved files * ref: Refactor useEffects * fix: Update condition for getting domain in allow list * ref: move row context menu ui and logic to separate component * ref: move allowed list logic to a hook * test: add tests for rowContextMenu * fix: capitalize context menu options * test: add tests for utils * Add reloadCurrentTab to reload current tab * Reload page on adding domain to allowed list * Fix url pattern issue * Fix styling for border left * Update message * Update text for context menu * Allow cookies for domain with dot prefix * Refactor code * Fix tests * Remove condition for fixing remove allow list issue * Remove unused code for useHighlighting * Fix parent domain double click issue * Code improvements and refactoring * Fix test case * Add code improvements * Fix test * ref: use domains list as prop * test: fix test --------- Co-authored-by: Mayank Rana <58820001+mayan-000@users.noreply.github.com> Co-authored-by: Mayank Rana <mayankranax1@gmail.com>
- Loading branch information
1 parent
5af12dd
commit 85112cd
Showing
35 changed files
with
2,032 additions
and
133 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.