Skip to content

Commit 9182a62

Browse files
Update Snaps user interface section (#1829)
* Update Snaps user interface section * Update snaps/features/notifications.md Co-authored-by: Byron Gravenorst <[email protected]> --------- Co-authored-by: Byron Gravenorst <[email protected]>
1 parent 0973848 commit 9182a62

File tree

4 files changed

+15
-11
lines changed

4 files changed

+15
-11
lines changed

docs/whats-new.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ of the [MetaMask developer page](https://metamask.io/developer/).
1212
## December 2024
1313

1414
- Documented [Swellchain](/services/reference/swellchain) support. ([#1776](https://github.com/MetaMask/metamask-docs/pull/1776))
15-
- Documented [Snap Notifications Expanded View](/snaps/features/notifications/#expanded-view).
15+
- Documented [Snaps notifications expanded view](/snaps/features/notifications/#expanded-view).
1616
([#1774](https://github.com/MetaMask/metamask-docs/pull/1774))
1717
- Documented [`snap_getInterfaceContext`](/snaps/reference/snaps-api/#snap_getinterfacecontext).
1818
([#1772](https://github.com/MetaMask/metamask-docs/pull/1772))

snaps/features/custom-ui/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ implementing the following features:
1616
- [Home pages](home-pages.md)
1717
- [Transaction insights](../transaction-insights.md)
1818
- [Signature insights](../signature-insights.md)
19-
- [Notifications (Expanded View)](../notifications.md#expanded-view)
19+
- [Notifications (expanded view)](../notifications.md#expanded-view)
2020

2121
:::note
2222
JSX is supported in the MetaMask extension and Flask version 12 and later.

snaps/features/notifications.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,11 @@ Each Snap can trigger up to:
6565

6666
## Expanded view
6767

68-
In-app notifications can include an optional expanded view that will be displayed when the user clicks on the notification. The expanded view includes a title, content, and an optional footer link.
68+
In-app notifications can include an optional expanded view that displays when selected.
69+
The expanded view includes a title, content, and an optional footer link.
6970

70-
The following example displays a notification in MetaMask, with the message "Hello, world!" When the user clicks on the notification, the expanded view displays a page with a title, a paragraph, and a link to the MetaMask Snaps directory:
71+
The following example displays a notification in MetaMask, with the message "Hello, world!"
72+
When the user selects the notification, the expanded view displays a page with a title, a paragraph, and a link to the MetaMask Snaps directory:
7173

7274
```javascript title="index.js"
7375
await snap.request({

snaps/learn/about-snaps/index.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,15 @@ For each Snap, the user can:
6969
A Snap can also display a [home page](../../features/custom-ui/home-pages.md) within MetaMask that
7070
the user can access using the Snaps menu.
7171

72-
Other than the settings page and home page, a Snap can
73-
[modify the MetaMask UI](../../features/custom-ui/index.md) only
74-
by displaying [dialogs](../../features/custom-ui/dialogs.md),
75-
[transaction insights](../../reference/entry-points.md#ontransaction), or
76-
[signature insights](../../features/signature-insights.md).
77-
78-
This means that many Snaps must use companion dapps and custom JSON-RPC API methods to
72+
Other than the settings page and home page, a Snap can modify the MetaMask UI by displaying
73+
[custom UI](../../features/custom-ui/index.md) in
74+
[dialogs](../../features/custom-ui/dialogs.md),
75+
[transaction insights](../../features/transaction-insights.md),
76+
[signature insights](../../features/signature-insights.md), and
77+
[notifications (expanded view)](../../features/notifications.md#expanded-view).
78+
An [account management Snap](../../features/custom-evm-accounts/index.md) can also modify the MetaMask UI by leveraging native account UX.
79+
80+
Many Snaps must use companion dapps and custom JSON-RPC API methods to
7981
present data to the user.
8082

8183
:::note

0 commit comments

Comments
 (0)