feat(core): notification entry for mobile (#13214)

#### PR Dependency Tree


* **PR #13214** 👈

This tree was auto-generated by
[Charcoal](https://github.com/danerwilliams/charcoal)

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **New Features**
* Added a notification icon with a live badge displaying the
notification count in the mobile home header. The badge dynamically
adjusts and caps the count at "99+".
* Introduced a notification menu in the mobile header, allowing users to
view their notifications directly.

* **Style**
* Improved notification list responsiveness on mobile by making it full
width.
* Enhanced the appearance of the notification badge for better
visibility.
* Updated the app fallback UI to display skeleton placeholders for both
notification and settings icons.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
L-Sun
2025-07-15 15:45:37 +08:00
committed by GitHub
parent a597bdcdf6
commit 613597e642
5 changed files with 61 additions and 6 deletions
@@ -7,6 +7,12 @@ export const container = style({
width: '360px',
display: 'flex',
flexDirection: 'column',
selectors: {
'&[data-mobile]': {
width: '100%',
},
},
});
export const header = style({
@@ -90,7 +90,10 @@ export const NotificationList = () => {
}, [notificationListService]);
return (
<div className={styles.container}>
<div
className={styles.container}
data-mobile={BUILD_CONFIG.isMobileEdition ? '' : undefined}
>
<div className={styles.header}>
<span>{t['com.affine.rootAppSidebar.notifications']()}</span>
{notifications.length > 0 && (