Skip to content

feat(menu): notify icon and runtime props to menu items - #313

Draft
kabaniery wants to merge 1 commit into
friendly-social:devfrom
kabaniery:306_addNotifyIcon
Draft

feat(menu): notify icon and runtime props to menu items#313
kabaniery wants to merge 1 commit into
friendly-social:devfrom
kabaniery:306_addNotifyIcon

Conversation

@kabaniery

Copy link
Copy Markdown
Contributor

@kabaniery
kabaniery force-pushed the 306_addNotifyIcon branch from 2215b0b to 4063591 Compare July 1, 2026 14:17
Comment thread src/app/menu.tsx
const {pathname} = useLocation();

const backend = useBackend();
const feedQuery = useQuery({

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

if we do that request here, we should not repeat it on the tab page as well, I think.

Currently we invoke request 2 times, so user have to wait until feed is loaded even tho it was already loaded for notification.

You can create an issue on that and we will merge PR without fixing it instantly, we just need to remember that.

Comment thread src/app/menu.tsx
title: string;
icon: ReactNode;
releaseTag?: string;
hasNotify?: boolean;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

It's a bit overcomplicated way to do so.

It's could be better to have async callback instead of hasNotify Boolean.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

  1. 'Ui' folder is reserved for Shadcn components, you shouldn't put it there.

@kotleni
kotleni marked this pull request as draft July 6, 2026 07:45
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.

3 participants