Skip to content

Show nodes on right sidebar on app load#892

Merged
danditomaso merged 4 commits into
meshtastic:mainfrom
danditomaso:fix/show-nodes-after-connect
Oct 16, 2025
Merged

Show nodes on right sidebar on app load#892
danditomaso merged 4 commits into
meshtastic:mainfrom
danditomaso:fix/show-nodes-after-connect

Conversation

@danditomaso

Copy link
Copy Markdown
Collaborator

Description

This PR fixes a small issue where nodes weren't showing up after app load until the user navigated to another page, and back to the Messages page. This removes the memoization on the right navigation bar which was causing this issue not rerendering when the nodes load.

Related Issues

Changes Made

  • Removed useMemo on rightSidebar variable in Messages page.
  • Fixed enum on display validation.

Checklist

  • Code follows project style guidelines
  • Documentation has been updated or added
  • Tests have been added or updated
  • All i18n translation labels have been added (read
    CONTRIBUTING_I18N_DEVELOPER_GUIDE.md for more details)

Copilot AI review requested due to automatic review settings October 15, 2025 22:27
@vercel

vercel Bot commented Oct 15, 2025

Copy link
Copy Markdown

@danditomaso is attempting to deploy a commit to the Meshtastic Team on Vercel.

A member of the Team first needs to authorize it.

Copilot AI left a comment

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.

Pull Request Overview

This PR fixes a rendering issue where nodes weren't displayed on the right sidebar until after navigating away and back to the Messages page. The fix removes unnecessary memoization that prevented re-renders when nodes loaded.

  • Removed useMemo wrapper from the rightSidebar component to ensure it re-renders when nodes are loaded
  • Added CSS optimization using contentVisibility and containIntrinsicSize for better scrolling performance
  • Updated getMyNode return type to be non-nullable in the NodeDB interface

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
packages/web/src/pages/Messages.tsx Removed useMemo from rightSidebar to fix rendering issue and added CSS performance optimization
packages/web/src/core/stores/nodeDBStore/index.ts Changed getMyNode return type from potentially undefined to always returning a NodeInfo object

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread packages/web/src/core/stores/nodeDBStore/index.ts Outdated
danditomaso and others added 2 commits October 15, 2025 18:28
Bumps [happy-dom](https://github.com/capricorn86/happy-dom) from 19.0.2 to 20.0.0.
- [Release notes](https://github.com/capricorn86/happy-dom/releases)
- [Commits](capricorn86/happy-dom@v19.0.2...v20.0.0)

---
updated-dependencies:
- dependency-name: happy-dom
  dependency-version: 20.0.0
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
@vercel

vercel Bot commented Oct 16, 2025

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
web-test Ready Ready Preview Comment Oct 16, 2025 0:24am

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@danditomaso danditomaso merged commit 8f62fb7 into meshtastic:main Oct 16, 2025
2 of 3 checks passed
@danditomaso danditomaso deleted the fix/show-nodes-after-connect branch October 16, 2025 02:02
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.

2 participants