Skip to content

remove backup env in stakers#2340

Merged
pablomendezroyo merged 4 commits intomateu/backup-node-v2from
mateu/fix-stakers-backup
Jan 14, 2026
Merged

remove backup env in stakers#2340
pablomendezroyo merged 4 commits intomateu/backup-node-v2from
mateu/fix-stakers-backup

Conversation

@mateumiralles
Copy link
Copy Markdown
Contributor

remove backup env in stakers

@mateumiralles mateumiralles requested a review from a team as a code owner January 13, 2026 12:40
@github-actions github-actions bot temporarily deployed to commit January 13, 2026 12:42 Inactive
@github-actions
Copy link
Copy Markdown

github-actions bot commented Jan 13, 2026

@github-actions github-actions bot temporarily deployed to commit January 13, 2026 14:28 Inactive
}
>;
};
if (!details.networks) return null;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

this could be simplified to

return details.networks?.[network]?.active === true
  ? `https://${hash}:@${network}.beacon.dappnode.io`
  : null;

while still being something readable


if (!detailsRes.ok) return null;

const details = (await detailsRes.json()) as {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

instead of type casting, it could be cleaner something like

type NetworkDetails = {
  activation_history?: Array<{
    activation_date: string;
    end_date: string;
  }>;
  available_activation_seconds?: number;
  time_to_be_available?: number;
  active?: boolean;
  validator_limit?: number;
};

type DetailsResponse = {
  id?: string;
  networks?: Record<string, NetworkDetails>;
};

const details: DetailsResponse = await detailsRes.json();

@github-actions github-actions bot temporarily deployed to commit January 14, 2026 09:18 Inactive
@mateumiralles mateumiralles force-pushed the mateu/fix-stakers-backup branch from 3b7ae50 to afaed41 Compare January 14, 2026 10:03
@github-actions github-actions bot temporarily deployed to commit January 14, 2026 10:05 Inactive
@pablomendezroyo pablomendezroyo merged commit a42b9d4 into mateu/backup-node-v2 Jan 14, 2026
4 checks passed
@pablomendezroyo pablomendezroyo deleted the mateu/fix-stakers-backup branch January 14, 2026 12:29
pablomendezroyo pushed a commit that referenced this pull request Jan 14, 2026
* basic layout

* sectionNav sm variant

* [WIP] layout updated

* consensus card

* validators card

* action cards

* info cards improved

* Responsiveness info cards

* WIP activation history table

* sortable table

* table improvements

* backup node UI adjustments

* [WIP] use backup real data

* backup UI improvements

* Disable backup activation

* [WIP] Backup node hooks v2

* formatted activation history

* Rename useBackupNode hook

* update beacon backup with backend changes

* backend changes

* fix mock-back

* Rename files

* ongoing label in history table

* Reorganize backup components

* backup action cards restyled

* backup action cards responsiveness

* fix non-premium backup node card

* clean imports

* backup status error card

* rm hardcoded test hashedLicense

* rm test urls

* BeaconBackupActivationParams new type

* fix backupNodeData hook types (#2342)

* fix backupNodeData hook types

* rename type

* remove backup env in stakers (#2340)

* remove backup env in stakers

* clear backup env of previous CC

* clean code

* fix backup - stakers types (#2343)

---------

Co-authored-by: Marketen <marcfont12@gmail.com>

---------

Co-authored-by: Marketen <marcfont12@gmail.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