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

v0.4.0 #331

Merged
merged 87 commits into from
Dec 26, 2023
Merged

v0.4.0 #331

merged 87 commits into from
Dec 26, 2023

Conversation

ayushnirwal
Copy link
Collaborator

@ayushnirwal ayushnirwal commented Dec 13, 2023

mayan-000 and others added 28 commits November 6, 2023 13:24
* Fix:MaxListenersExceededWarning with tech analysis

* fix: MaxListenerExceedWarning
Update tools input field inline to devtools's UI
* enhancement: add interface use CSV file in CLI

* refactor: refactor cli routine and spinner behaviour

* enhancement:add check for content in CSV file
* enhancement: add interface use CSV file in CLI

* refactor: refactor cli routine and spinner behaviour

* enhancement:add check for content in CSV file

* enhancement:add sitemap parsing

* fix:dashboard path
* Move data processing to utils

* Move cookie reshaping to utils

* Update icons

* Setup input textbox and use in cookie top bar

* Move extractCookies into separate file

* Update Input -> TextInput

* Add test cases

* Change function param name

* Remoce jest-dom

* Change TextInput -> SearchInput

* fix:attribute cookie of frame about:blank to unknown frames

* Update unknown frame with constant

* fix: frame cookies parsing loop

* Make frameurl string array for dashboard

* Fix test

* Update frameUrl to frameUrls

---------

Co-authored-by: ayushnirwal <coding.carrots@gmail.com>
* fix: cookie affected value in downloaded reports

* refactor:remove cookie affected column

* fix:invalid csv record output

* chore: move types to the types file
* Add method to delete cookie from application tab.

* Stabalise useContext selector.

* Add checkbox component for httponly samesite modification

* Modify all properties except expiry

* Modfiy checkbox look to match devtools.

* Move remove duplicate icons.

* Remove unnecessary code diff.

* Remove wrong merge files.

* Remove unnecessary code diff.

* Remove cookies landing.
Fix correct import.

* Resolve merge issues

* Remove empty line commits

* Fix bugs

* Add function to delete all cookies.

* Add delete all cookies method.

* Change title.

* Add UI/UX changes.

* Fix cookie deletion issue.

* Fix delete cookie data not being modified.

* Refactor useTable to accomodate cli-dashboard and extension

* Fix event keydown.

* Fix functionality of delete all cookies.

* Add exact behaviour as of application tab.

* Add hover color

* Fix broken UI.

* Add hover for clearing all cookies

* Fix broken UI and make hover unifrom

* Fix hoover white effect.

* Fix cookie hover effect.

* Handle enter key code.

* Cookie modification false value handling.

* Cookie modification false value handling.

* Add escape key functionality and color red on error.

* Fix cookie modification.

* Fix tsc error.

* Fix cookie modification functionality

* Prettify code and refactor some parts to make it look better.

* Remove console.log.

* Fix cookie modification values and add console log for error

* Fix cookie hover issue.

* Add the feature to add parity between application tab deletion.

* Fix error when toggling visiblity.

* Fix focus while modification of cookie.

* Make checkbox centered.

* Fix error of undefined on null on cookie deletion.

* Update badgeText on deleting cookie.

* Add colors for hover effect.

* By default select next row to be deleted

* Disable icon on selecting empty row.

* Don not open when console.

* Fix cookie deletion method.

* Fix dark mode UI.

* Disable cookie delete button once frame changes.

* Add cookie modification capability for expiry.

* Cancel editing once focus is removed.

* Disable cookie editing when value changes.

* Stop propogation in editable component

* Keeping highlighting logic inside Table container

* Remove unrequired declaration

* Add condition for expiryDate.

* Remove border from input field.

* Fix failing tests.

* Fix cookie filter for strict.

* Add proper color for cookie highlight.

* Fix session empty values.
Fix color of the row.

* Fix name not defined.

* Fix failing test.

* Revert empty name value fix.
trim out spaces in value.

* Fix minor UI issue.

* Fetch JS cookies first.

* Disable if cookie key changes.

* Add changes to code as suggested.

* Change changed key to keyToChange

* Prettify data.

* Change divRef to inputRef.

* Remove unnecessary comment.

* Only keep span instead of p tag.

* Rename function to be generic and reuse function.

* Update getCookieKey function.

* Remove unneded changes.

* Add suggested feedbacks.

* Update variable name.

* Update variable name.

* Fix flash of old value.

* Move dependencies to correct place.

* Add early return for code readability.

* Add comment to indicate why bruteforce is being done.

---------

Co-authored-by: Mayank Rana <mayankranax1@gmail.com>
Co-authored-by: ayushnirwal <coding.carrots@gmail.com>
* refactor:report generation in cli-dashboard

* fix: unhandled case for falsy arguments

* enhancement: update keys in the report csv file

* fix: testing errors

* fix: testing errors

* code-quality: capitalize constants; use map size to get total cookies
* Move data processing to utils

* Move cookie reshaping to utils

* Add sidebar hook and component

* Add sidebar data

* Use sidebar component and component

* Update import

* Move sidebar folder

* Select first sidebar item by default

* Implement new sidebar in site report component

* Move sidebar child out and UI changes

* Put FrameUrls into useMemo

* Change max width for sidebars and css changes

* UI changes

* Update icons

* Change message box text

* Update unknown frame(s)

* Update icons

* Setup input textbox and use in cookie top bar

* Move sidebar to design-system

* Move extractCookies into separate file

* Update Input -> TextInput

* Add test cases

* Change function param name

* Remoce jest-dom

* Change TextInput -> SearchInput

* fix:attribute cookie of frame about:blank to unknown frames

* Update unknown frame with constant

* Export sidebar

* Remove style

* Pass data to hook

---------

Co-authored-by: ayushnirwal <coding.carrots@gmail.com>
Co-authored-by: Ayush Nirwal <53055971+ayushnirwal@users.noreply.github.com>
* Move data processing to utils

* Move cookie reshaping to utils

* Add sidebar hook and component

* Add sidebar data

* Use sidebar component and component

* Update import

* Move sidebar folder

* Select first sidebar item by default

* Implement new sidebar in site report component

* Move sidebar child out and UI changes

* Put FrameUrls into useMemo

* Change max width for sidebars and css changes

* UI changes

* Update icons

* Change message box text

* Update unknown frame(s)

* Update icons

* Setup input textbox and use in cookie top bar

* Move sidebar to design-system

* Change sidebar data to obj from arr

* Add keyboard navigation and move functions to utils

* Don't allow autofocus on intial render

* Move extractCookies into separate file

* Update Input -> TextInput

* Add test cases

* Change function param name

* Remoce jest-dom

* Change TextInput -> SearchInput

* fix:attribute cookie of frame about:blank to unknown frames

* Update unknown frame with constant

* Export sidebar

* Refactor util and callback

* fix:remove redundent useEffect

* fix:remove unintended style change

---------

Co-authored-by: ayushnirwal <coding.carrots@gmail.com>
* Move data processing to utils

* Move cookie reshaping to utils

* Add sidebar hook and component

* Add sidebar data

* Use sidebar component and component

* Update import

* Move sidebar folder

* Select first sidebar item by default

* Implement new sidebar in site report component

* Move sidebar child out and UI changes

* Put FrameUrls into useMemo

* Change max width for sidebars and css changes

* UI changes

* Update icons

* Change message box text

* Update unknown frame(s)

* Update icons

* Setup input textbox and use in cookie top bar

* Move sidebar to design-system

* Change sidebar data to obj from arr

* Add keyboard navigation and move functions to utils

* Don't allow autofocus on intial render

* Restructure table directory

* Add filtering and search hooks in table

* Add Chips and filter sidebar and modified props

* Add Top bar view

* Update folder names

* Update condition when no keys provided

* Move extractCookies into separate file

* Update Input -> TextInput

* Add test cases

* Change function param name

* Remoce jest-dom

* Change TextInput -> SearchInput

* fix:attribute cookie of frame about:blank to unknown frames

* Update unknown frame with constant

* Export sidebar

* Refactor util and callback

* fix:remove unintended style change

* fix:add types and other minor changes

---------

Co-authored-by: ayushnirwal <coding.carrots@gmail.com>
#290)

* Move data processing to utils

* Move cookie reshaping to utils

* Add sidebar hook and component

* Add sidebar data

* Use sidebar component and component

* Update import

* Move sidebar folder

* Select first sidebar item by default

* Implement new sidebar in site report component

* Move sidebar child out and UI changes

* Put FrameUrls into useMemo

* Change max width for sidebars and css changes

* UI changes

* Update icons

* Change message box text

* Update unknown frame(s)

* Update icons

* Setup input textbox and use in cookie top bar

* Move sidebar to design-system

* Change sidebar data to obj from arr

* Add keyboard navigation and move functions to utils

* Don't allow autofocus on intial render

* Restructure table directory

* Add filtering and search hooks in table

* Add Chips and filter sidebar and modified props

* Add Top bar view

* Update folder names

* Update condition when no keys provided

* Move extractCookies into separate file

* Update Input -> TextInput

* Add test cases

* Add filters for dashboard, update filter logic flow and ui change

* Update filters comparator and static values

* Update key in filters data

* Update search keys for dashboard & minor logic + UI change

* Move columns, filerts, searchKeys to cookieListing from tableContainer

* Modify affected cookies table to be reusable

* Retrieve cookies from store

* Add filters and search to affected cookies table

* Add filters and search to technology table

* Change function param name

* Remoce jest-dom

* Change TextInput -> SearchInput

* Update filter value calculation logic

* fix:attribute cookie of frame about:blank to unknown frames

* Update unknown frame with constant

* Export sidebar

* Refactor util and callback

* ignore one key

---------

Co-authored-by: ayushnirwal <coding.carrots@gmail.com>
* Move data processing to utils

* Move cookie reshaping to utils

* Add sidebar hook and component

* Add sidebar data

* Use sidebar component and component

* Update import

* Move sidebar folder

* Select first sidebar item by default

* Implement new sidebar in site report component

* Move sidebar child out and UI changes

* Put FrameUrls into useMemo

* Change max width for sidebars and css changes

* UI changes

* Update icons

* Change message box text

* Update unknown frame(s)

* Update icons

* Setup input textbox and use in cookie top bar

* Move sidebar to design-system

* Change sidebar data to obj from arr

* Add keyboard navigation and move functions to utils

* Don't allow autofocus on intial render

* Restructure table directory

* Add filtering and search hooks in table

* Add Chips and filter sidebar and modified props

* Add Top bar view

* Update folder names

* Update condition when no keys provided

* Move extractCookies into separate file

* Update Input -> TextInput

* Add test cases

* Add filters for dashboard, update filter logic flow and ui change

* Update filters comparator and static values

* Update key in filters data

* Update search keys for dashboard & minor logic + UI change

* Move columns, filerts, searchKeys to cookieListing from tableContainer

* Modify affected cookies table to be reusable

* Retrieve cookies from store

* Add filters and search to affected cookies table

* Add filters and search to technology table

* Change function param name

* Remoce jest-dom

* Change TextInput -> SearchInput

* Update filter value calculation logic

* fix:attribute cookie of frame about:blank to unknown frames

* Update unknown frame with constant

* Add function to handle data extraction

* Add storage updation mechanism

* Handle persistence with custom hook

* Handle table settings persistence across all hooks

* Export sidebar

* Refactor util and callback

* Add props for table persistence and disabling filtering

* Update frameUrl prop and persistence key creation

* Handle size change inside Dispatch callback

* Update useTable's internal hooks to set empty values

* Update filters persistence logic

* Reset filter values on options change

* Handle persistence for visibility:

* Handle resizing persistence of columns

* Change saving visibility data's trigerr

* Update resizing logic based on visibility and table changes

* Handle sorting persistence

* Update filters persistence mechanism

* Handle search value on persistence

* Update storage utils for saving and extracting persitent settings of table

* Update useTable for persistence

* Update filter count calculation logic

* Handle sorting of filter values

* Update persistence keys and props for table

* Sort keys and access the object

* Use a commonKey for resizing, visbility, sorting

* Move to landing page on site change

* Use context selector for persistence

* Update saving of column sizing mechanism

* Flex technology table

* Show filter title even when no filter available

* Add logic to handle negative width diff

* Update selectedSite

---------

Co-authored-by: ayushnirwal <coding.carrots@gmail.com>
* Move data processing to utils

* Move cookie reshaping to utils

* Add sidebar hook and component

* Add sidebar data

* Use sidebar component and component

* Update import

* Move sidebar folder

* Select first sidebar item by default

* Implement new sidebar in site report component

* Move sidebar child out and UI changes

* Put FrameUrls into useMemo

* Change max width for sidebars and css changes

* UI changes

* Update icons

* Change message box text

* Update unknown frame(s)

* Update icons

* Setup input textbox and use in cookie top bar

* Move sidebar to design-system

* Change sidebar data to obj from arr

* Add keyboard navigation and move functions to utils

* Don't allow autofocus on intial render

* Restructure table directory

* Add filtering and search hooks in table

* Add Chips and filter sidebar and modified props

* Add Top bar view

* Update folder names

* Update condition when no keys provided

* Move extractCookies into separate file

* Update Input -> TextInput

* Add test cases

* Add filters for dashboard, update filter logic flow and ui change

* Update filters comparator and static values

* Update key in filters data

* Update search keys for dashboard & minor logic + UI change

* Move columns, filerts, searchKeys to cookieListing from tableContainer

* Modify affected cookies table to be reusable

* Retrieve cookies from store

* Add filters and search to affected cookies table

* Add filters and search to technology table

* Change function param name

* Remoce jest-dom

* Change TextInput -> SearchInput

* Update filter value calculation logic

* fix:attribute cookie of frame about:blank to unknown frames

* Update unknown frame with constant

* Add function to handle data extraction

* Add storage updation mechanism

* Handle persistence with custom hook

* Handle table settings persistence across all hooks

* Export sidebar

* Refactor util and callback

* Add props for table persistence and disabling filtering

* Update findItem uitl search logic

* Update findItem util working

* Create sidebarData and use custom sidebar hook & component

* Keep auto open and text change

* Handle frame selection

* Add title to node

* Add ux for focus change on clicks

* Handle null case for selected frame

* Add inspect button inside cookies sidebar item

* Handle selectedFrame change from frame overlay

* Hide inspect button when tab not analysed

* Handle selected sidebar item persistence

* Update frameUrl prop and persistence key creation

* Handle size change inside Dispatch callback

* Update useTable's internal hooks to set empty values

* Update filters persistence logic

* Reset filter values on options change

* Handle persistence for visibility:

* Handle resizing persistence of columns

* Change saving visibility data's trigerr

* Update resizing logic based on visibility and table changes

* Handle sorting persistence

* Update filters persistence mechanism

* Handle search value on persistence

* Update storage utils for saving and extracting persitent settings of table

* Update useTable for persistence

* Update filter count calculation logic

* Handle sorting of filter values

* Update persistence keys and props for table

* Sort keys and access the object

* Use a commonKey for resizing, visbility, sorting

* Move to landing page on site change

* Remove top padding

* Remove old sidebar, accordion and old test cases

* Use context selector for persistence

* Update saving of column sizing mechanism

* Add dark mode colors

* Flex technology table

* Show filter title even when no filter available

* Handle change of selectedFrame on redirection

* Add logic to handle negative width diff

* Handle sidebar item storage and retrieval

* Updare use tabID for data extraction

* Update left value for extra interface in sidebar title

* Decrease left value

* Update condition with optional chaining

* Make inspect button vertically align

* Handle unnecessary re-render

* minor refactoring

---------

Co-authored-by: ayushnirwal <coding.carrots@gmail.com>
* Fix tooltip positioning.

* Add tooltip to main frame.

* Fix unknown and hidden frame tooltip.

* Fix arrow overflowing from tooltip.

* Fix tooltip for hidden frames and unknown frames when scrolling.

* Fix scrollIntoView

* Fix angular bottom of tooltip

* Handle error messaging.

* code-quality:remove JSDoc types

* code-quality:add early return and change catch comment

* code-quality:replace bind with arrow functions

---------

Co-authored-by: ayushnirwal <coding.carrots@gmail.com>
Copy link

google-cla bot commented Dec 13, 2023

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

mayan-000 and others added 15 commits December 19, 2023 20:19
* Fix the frameoverlay icon loading issue.

* Fix: disable cookie when no row is selected.

* Fix the frameoverlay icon loading issue.

* Fix the flow of the debugger.

* Fix cookie type.

* Fix frame overlay button on initial page load.
* Update type isCookieSet -> isBlocked inside cli dashboard

* fix:type and cookie affected value

* fix:affected cookies highlighting in cli dashboard

* Use extra condition to hide filters sidebar

* Always show chips bar

* Update filter icon disabling condition

* Add condition to change icon on unfocus

* Updat test

* Add priority and size filters

* Add comments

* Update url colors

* Dont show scrollbar

* Dont show scrollbar

* Update tailwind config

* Update app.css for dashboard with tailwind

* Remove blocked reason heading in dashboard

* Update sidebar focused condition

* Add storage update listener to auto select cookie tab when current tab unanalysed

* fix: rename cookie accepted to cookie affected

---------

Co-authored-by: ayushnirwal <coding.carrots@gmail.com>
Fix: Regression testing for 0.4 release.
@ayushnirwal ayushnirwal marked this pull request as ready for review December 20, 2023 13:20
mayan-000 and others added 9 commits December 26, 2023 17:42
* ref: Create platform os enum

* ref: Update Chrome and OS info format
* chore:reorder table coloums in cli dashboard

* feat: add flag to omit prompts

* feat:add flag to skip technology assesment

* feat: Dont show tech table if no data available

* fix: Show frames horizontal count component

* Revert "feat: Dont show tech table if no data available"

This reverts commit 79b3ca7.

* feat: Move tech table to bottom and don't show if no data available

* feat: add argument to pass no of urls to be analyzed

* fix: url limit

* fix:ignore creating technologies csv file

---------

Co-authored-by: Mayank Rana <mayankranax1@gmail.com>
* Detach debugger from old tabs and only attach to tab being analysed

* Uncomment onBeforeNavigate callback

* Remove chrome:// protocol

* Move debugger attaching before addData function

* Fix blocked cookies count and remove promise queue clearing.

* Remove making auto entry on tab creation and attaching debugger before navigation

* fix:add filter

* Remove popup badge text

* Revert "Fix blocked cookies count and remove promise queue clearing."

This reverts commit 3db0c50.

* Don't add data on tab creation

* Remove onNavigate event

* Add flag for listening to cdp

* Detach old tab from debugger

* fix: CDP toggling routine

* fix: domain calculation with tldts library

* fix: popup badge text cleanup

* fix: Update event type

* Fix blocked cookie count in landing page.

* ref: Move blocked reasons and warnings above value

* ref: Make fenced frame part of legend

* fix: Add space between count and description

* Process multitab processing for CDP.
Add single tab CDP processing with default analyse of first tab.
Reload tabs on switching to unlimited tab processing.
Remove toggling of CDP state and remove toggle switch from popup.

* Add fenced frames definition.

* fix: test cases

* fix: Add Invalid domain desc

* Fix cookie count in popup.
Fix flickering effect in sidebar.

* Update details heading color

* fix: Update font bold class for description

* Make svg fill currentColor and add classes

* Fix: Add unknown frames in extension. (#361)

* Add unknown frames to the frame url list.

* Fix blocked cookies count in frae overlay.

* Fix prettier problem and address feedback.

* fix: Add conditional check for frameIdsMap assignment

* Make the getDomain a function.

* Update package-lock.json

* Refactor: Update Chrome and OS info format (#358)

* ref: Create platform os enum

* ref: Update Chrome and OS info format

* Enhancements: CLI interface updates and column reordering (#362)

* chore:reorder table coloums in cli dashboard

* feat: add flag to omit prompts

* feat:add flag to skip technology assesment

* feat: Dont show tech table if no data available

* fix: Show frames horizontal count component

* Revert "feat: Dont show tech table if no data available"

This reverts commit 79b3ca7.

* feat: Move tech table to bottom and don't show if no data available

* feat: add argument to pass no of urls to be analyzed

* fix: url limit

* fix:ignore creating technologies csv file

---------

Co-authored-by: Mayank Rana <mayankranax1@gmail.com>

* Add comment in file as well.

* Move Platform os enum to index

* Update enum var name

---------

Co-authored-by: Amoghavarsha Kudaligi <kgamoghavarsha@gmail.com>
Co-authored-by: ayushnirwal <coding.carrots@gmail.com>
Co-authored-by: Ayush Nirwal <53055971+ayushnirwal@users.noreply.github.com>
@ayushnirwal ayushnirwal merged commit ff2f187 into main Dec 26, 2023
4 checks passed
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

5 participants