Skip to content

refactor: network pages ts, hooks, and no redux#640

Merged
ckniffen merged 5 commits intostagingfrom
refactor/network
Mar 28, 2023
Merged

refactor: network pages ts, hooks, and no redux#640
ckniffen merged 5 commits intostagingfrom
refactor/network

Conversation

@ckniffen
Copy link
Copy Markdown
Collaborator

High Level Overview of Change

  • <Hexagons> remove redux and switch to hooks
  • <Map> remove redux and switch to hooks and ts
  • <Nodes> use isEarlierVersion instead of one off compare

Type of Change

  • Refactor (non-breaking change that only restructures code)

TypeScript/Hooks Update

  • Updated files to React Hooks
  • Updated files to TypeScript

Future Tasks

Remove countries.json from the javascript bundle and load it separately only on the nodes page. Will save 39kb gzipped.

- `<Hexagons>` remove redux and switch to hooks
- `<Map>` remove redux and switch to hooks and ts
- `<Nodes>` use `isEarlierVersion` instead of one off compare
Copy link
Copy Markdown
Collaborator

@pdp2121 pdp2121 left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Copy Markdown
Contributor

@khancode khancode left a comment

Choose a reason for hiding this comment

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

LGTM. Just left a nit comment if it makes sense to deconstruct a variable.

@ckniffen ckniffen merged commit 7ba641c into staging Mar 28, 2023
@ckniffen ckniffen deleted the refactor/network branch March 28, 2023 17:25
ckniffen added a commit that referenced this pull request Mar 28, 2023
Moves country data out of the js bundle and instead load it when the
user visits the node page. This reduces the bundle by 39kb (gzipped).

Merged #643 too early.  Needed #640.
@mvadari mvadari mentioned this pull request May 20, 2024
1 task
achowdhry-ripple added a commit that referenced this pull request Apr 8, 2025
## High Level Overview of Change

This PR removes the last of redux from the codebase. The only two pieces
left were Account and Token.

It also removes all mentions of gravatars.

This also reduces the size of the build by about 35kb.

There were some build issues that required regenerating the
package-lock, which is almost all of the diff.

### Context of Change

* #649
* #640
* #635
* #634
* #1100

### Type of Change

- [x] Refactor (non-breaking change that only restructures code)

### TypeScript/Hooks Update

N/A

## Test Plan

Tests were fixed to handle the refactor.

---------

Co-authored-by: Ashray Chowdhry <achowdhry@ripple.com>
heap-coder added a commit to heap-coder/explorer that referenced this pull request Sep 27, 2025
## High Level Overview of Change

This PR removes the last of redux from the codebase. The only two pieces
left were Account and Token.

It also removes all mentions of gravatars.

This also reduces the size of the build by about 35kb.

There were some build issues that required regenerating the
package-lock, which is almost all of the diff.

### Context of Change

* ripple/explorer#649
* ripple/explorer#640
* ripple/explorer#635
* ripple/explorer#634
* ripple/explorer#1100

### Type of Change

- [x] Refactor (non-breaking change that only restructures code)

### TypeScript/Hooks Update

N/A

## Test Plan

Tests were fixed to handle the refactor.

---------

Co-authored-by: Ashray Chowdhry <achowdhry@ripple.com>
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