Skip to content

feat(app): add user context menu - #495

Merged
typeofweb merged 16 commits into
developfrom
476-user-context-menu
Jan 12, 2023
Merged

typeofweb merged 16 commits into
developfrom
476-user-context-menu

Conversation

@grzegorzpokorski

@grzegorzpokorski grzegorzpokorski commented Jan 8, 2023 •

Copy link
Copy Markdown
Member

Propozycja do #476 issue. Poniżej screeny, jak to wygląda:

1
2
3
4
5
6

@vercel

vercel Bot commented Jan 8, 2023 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
devfaq ✅ Ready (Inspect) Visit Preview Jan 12, 2023 at 1:22PM (UTC)

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Device URL
mobile https://devfaq-p7n98pj17-typeofweb.vercel.app

Not what you expected? Are your scores flaky? GitHub runners could be the cause.
Try running on Foo instead

@github-actions

github-actions Bot commented Jan 8, 2023 •

Copy link
Copy Markdown

📦 Next.js Bundle Analysis

This analysis was generated by the next.js bundle analysis action 🤖

🎉 Global Bundle Size Decreased

Page Size (compressed)
global 83.31 KB (-2 B)
Details

The global bundle is the javascript bundle that loads alongside every page. It is in its own category because its impact is much higher - an increase to its size means that every page on your website loads slower, and a decrease means every page loads faster.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

If you want further insight into what is behind the changes, give @next/bundle-analyzer a try!

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Device URL
mobile https://devfaq-kwfnwtvny-typeofweb.vercel.app

Not what you expected? Are your scores flaky? GitHub runners could be the cause.
Try running on Foo instead

Comment thread apps/app/src/components/Header/UserMenu.tsx

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Device URL
mobile https://devfaq-i69hv4j8j-typeofweb.vercel.app

Not what you expected? Are your scores flaky? GitHub runners could be the cause.
Try running on Foo instead

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Device URL
mobile https://devfaq-end654rav-typeofweb.vercel.app

Not what you expected? Are your scores flaky? GitHub runners could be the cause.
Try running on Foo instead

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Device URL
mobile https://devfaq-4yil0cccr-typeofweb.vercel.app

Not what you expected? Are your scores flaky? GitHub runners could be the cause.
Try running on Foo instead

Comment thread apps/app/src/components/Header/LoginNavigationLink.tsx Outdated
Comment thread apps/app/src/components/Header/UserAvatar.tsx Outdated
Comment thread apps/app/src/components/Header/UserMenu.tsx Outdated
Comment thread apps/app/src/components/Header/UserMenu.tsx Outdated
Comment thread apps/app/src/components/Header/UserMenu.tsx Outdated
Comment thread apps/app/src/hooks/useIsAboveBreakpoint.ts Outdated
Comment thread apps/app/src/hooks/useIsAboveBreakpoint.ts Outdated
aria-expanded={isDropdownVisible}
aria-controls="user-menu"
>
<div className="relative h-12 w-12 sm:h-6 sm:w-6">

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.

Trochę małe zdjęcie na desktopie

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Przy dobieraniu rozmiaru zdjęcia sugerowałem się tym, aby zachować symetrie w tym menu, ale zgadzam się, że nie wygląda to może do końca tak, jak powinno. Nie miałem innego pomysłu.

Group 1

Zastanawia mnie również to, czy to menu kontekstowe nie jest trochę niepotrzebne, bo kolejne opcje dodawane sią do "menu" w komponencie CtaHeader. Moim zdaniem można by to jakoś ujednolicić. Jeśli w CtaHeader znajdzie się więcej opcji to będzie trzeba pomyśleć o jego przebudowie szczególnie na smartfony. Możnaby ewentualnie część opcji związanych z użytkownikiem przerzucić do menu kontekstowego 🤔

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Device URL
mobile https://devfaq-a81i560v7-typeofweb.vercel.app

Not what you expected? Are your scores flaky? GitHub runners could be the cause.
Try running on Foo instead

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Device URL
mobile https://devfaq-8yquzliv6-typeofweb.vercel.app

Not what you expected? Are your scores flaky? GitHub runners could be the cause.
Try running on Foo instead

@sonarqubecloud

Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Device URL
mobile https://devfaq-dc63wjsie-typeofweb.vercel.app

Not what you expected? Are your scores flaky? GitHub runners could be the cause.
Try running on Foo instead

@typeofweb
typeofweb merged commit 9e453b6 into develop Jan 12, 2023
@typeofweb
typeofweb deleted the 476-user-context-menu branch January 12, 2023 17:46
typeofweb added a commit that referenced this pull request Sep 9, 2026
* feat(app): add user context menu

* feat(app): improvements related to UserMenu

* fix(app): add aria attributes to 'UserMenu' and remove unused imports

* fix(app): user avatar size adjustments

* refactor(app): refactor html structure in 'UserMenu'

* refactor(app) remove unused import from "UserAvatar"

* Update apps/app/src/hooks/useIsAboveBreakpoint.ts

Co-authored-by: Michał Miszczyszyn <michal@mmiszy.pl>

* Update apps/app/src/hooks/useIsAboveBreakpoint.ts

Co-authored-by: Michał Miszczyszyn <michal@mmiszy.pl>

* Update apps/app/src/components/Header/UserMenu.tsx

Co-authored-by: Michał Miszczyszyn <michal@mmiszy.pl>

* Update apps/app/src/components/Header/UserMenu.tsx

Co-authored-by: Michał Miszczyszyn <michal@mmiszy.pl>

* Update apps/app/src/components/Header/UserMenu.tsx

Co-authored-by: Michał Miszczyszyn <michal@mmiszy.pl>

* refactor(app): remove span tag from "LoginNavigationLink"

* refactor(app): remove span tag from button content in 'UserMenu'

Co-authored-by: Michał Miszczyszyn <michal@mmiszy.pl>

This branch was successfully deployed

1 active deployment
Preview — e2024afb Deployed Jan 12, 2023 by vercel[bot]
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.

2 participants