-
Notifications
You must be signed in to change notification settings - Fork 5.2k
feat: add discover button to portfolio discover network page #30777
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
Conversation
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
I have read the CLA Document and I hereby sign the CLA |
- do not use the properties from network configuration, instead using a Hash Map `CHAIN_ID_PROFOLIO_LANDING_PAGE_URL_MAP` to indicate the portfolio discover Url for a network - add remote feature flag
Builds ready [4980350]
Page Load Metrics (1827 ± 75 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Builds ready [fa39f42]
Page Load Metrics (2208 ± 260 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Builds ready [4ce842f]
Page Load Metrics (7704 ± 4232 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
{onDiscoverClick ? ( | ||
<MenuItem | ||
iconName={IconName.Eye} | ||
onClick={(e) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can this be a useCallback
as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey David!
I can add it but in that case should we add useCallBack
for onEditClick
and onDeleteClick
as well ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think the onDiscoverClick
is already having useCallback
at getItemCallbacks
in network-list-menu.tsx
then the function pass to network-list-item
and finally landed in this component, which should have the same behaviour as other functions; e.g: onEditClick
, onDeleteClick
, no?
Builds ready [b4ad95d]
Page Load Metrics (2932 ± 1036 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Builds ready [751972f]
Page Load Metrics (4385 ± 2415 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
ui/components/multichain/network-list-item/network-list-item.tsx
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pulled, tested, LGTM.
Looks like CI is still broken. Seemingly CI related. I noticed a Slack thread regarding this incident. Feel free to message me directly on Slack to discuss.
Builds ready [ff4eeba]
Page Load Metrics (5173 ± 2914 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Description
There is a new network ecosystem page being added to portfolio. To add visibility for this page, a new
Discover
button needs to be added to the networks menu for users to be redirected to that page.Add a new button on top of the
Edit
button in the network's menu.A feature flag has been added to activate the feature when the Portfolio Hub page for Linea will be live.
Related issues
NA
Manual testing steps
Discover
Discover
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist