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

feat(Node): rework page #1917

Merged
merged 5 commits into from
Feb 10, 2025
Merged

feat(Node): rework page #1917

merged 5 commits into from
Feb 10, 2025

Conversation

artemmufazalov
Copy link
Member

@artemmufazalov artemmufazalov commented Feb 6, 2025

Closes #1339

Make node page look similar to other pages

Stand: https://nda.ya.ru/t/h85Fpl3x7BmekR

Before:
Screenshot 2025-02-07 at 13 51 54

After:
Screenshot 2025-02-07 at 13 52 08

CI Results

Test Status: βœ… PASSED

πŸ“Š Full Report

Total Passed Failed Flaky Skipped
262 262 0 0 0

😟 No changes in tests. πŸ˜•

Bundle Size: πŸ”½

Current: 80.21 MB | Main: 80.26 MB
Diff: 0.05 MB (-0.07%)

βœ… Bundle size decreased.

ℹ️ CI Information
  • Test recordings for failed tests are available in the full report.
  • Bundle size is measured for the entire 'dist' directory.
  • πŸ“Š indicates links to detailed reports.
  • πŸ”Ί indicates increase, πŸ”½ decrease, and βœ… no change in bundle size.

@artemmufazalov artemmufazalov force-pushed the 1339-rework-node-page branch 2 times, most recently from 452a4f1 to acaa30a Compare February 7, 2025 08:52
import {useAdditionalNodeProps} from '../useClusterData';

export function ExtendedNode({component: NodeComponent}: {component: typeof Node}) {
const {balancer} = useClusterBaseInfo();
Copy link
Member Author

Choose a reason for hiding this comment

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

This was moved to useNodeDeveloperUIHref, there is no need for this wrapper anymore

@@ -25,7 +25,6 @@ const routes = {
vDisk: `/${VDISK}`,
storageGroup: `/${STORAGE_GROUP}`,
tablet: `/${TABLET}/:id`,
tabletsFilters: `/tabletsFilters`,
Copy link
Member Author

Choose a reason for hiding this comment

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

Old path, there is no page for this path now

@artemmufazalov artemmufazalov marked this pull request as ready for review February 7, 2025 12:02
useRouteMatch<{id: string; activeTab: string}>(routes.node) ?? Object.create(null);
const match = useRouteMatch<{id: string; activeTab: string}>(routes.node);

// NodeId is always defined here because the page is wrapped with specific route Router
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's better add a straightforward check, so no changes in Router api could affect our code.

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed


return {activeTabVerified: actualActiveTab, nodeTabs: actualNodeTabs};
}, [activeTab, node, isDiskPagesAvailable]);
const renderHelmet = () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed

@artemmufazalov artemmufazalov added this pull request to the merge queue Feb 10, 2025
Merged via the queue into main with commit 187032b Feb 10, 2025
5 checks passed
@artemmufazalov artemmufazalov deleted the 1339-rework-node-page branch February 10, 2025 11: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.

rework node page to better match other pages
2 participants