feat: add admin dashboard for managing answers - #508
Conversation
* fix(app): change logout trigger * fix(app): add accessible name to logout button * Update apps/app/src/components/Header/UserAvatar.tsx Co-authored-by: Michał Miszczyszyn <michal@mmiszy.pl> * fix typo Co-authored-by: Michał Miszczyszyn <michal@mmiszy.pl>
fix(app): fix oklch colors
* feat(app): add answer editor to question answer * refactor(app): change mutation name
… fixes to lockScroll (#489) * feat(app): add 'useIsAboveBreakpoint' hook * refactor(app): refactor 'pageScroll' utility file * feat(app): add focus lock in HeaderNavigation * fix(app): changes in BaseModal to reflect changes in pageScroll * feat(app): add focus trap in 'QuestionsSidebar' * fix(app): fix hamburger button position * fix scrollbar gutter * Update apps/app/src/utils/pageScroll.ts Co-authored-by: Michał Miszczyszyn <michal@mmiszy.pl> * Update apps/app/src/utils/pageScroll.ts Co-authored-by: Michał Miszczyszyn <michal@mmiszy.pl> * refactor(app): change types declarations in 'pageScroll' * refactor(app): refactor styles related to scrollbar on page * Update apps/app/src/components/Header/HeaderNavigation.tsx Co-authored-by: Michał Miszczyszyn <michal@mmiszy.pl> * refactor(app): refactor 'HeaderNavigation' * fix(app): fix typo Co-authored-by: Michał Miszczyszyn <michal@mmiszy.pl>
* feat: add editing own questions * refactor(app): refactor useGetAllQuestions * fix(app): fix typo * fix(app): remove unnecessary renderings
* 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>
* fix(app): fix styles in "AdminPanel" * fix(app): fix styles in "UserQuestions"
…#498) * feat(app): close modal on press Escape key * feat(app): add "useOnPressKey" hook * refactor(app): implement "useOnPressKey" hook in "BaseModal" * Update apps/app/src/components/BaseModal/BaseModal.tsx Co-authored-by: Michał Miszczyszyn <michal@mmiszy.pl> * refactor(app): rename hook "useOnPressKey" => "useOnKeydown" * refactor(app): refactor "UserMenu" component Co-authored-by: Michał Miszczyszyn <michal@mmiszy.pl>
* fix: fix a11y name in "CloseButton" * chore: add path of the prettier config file to the vsc workspace settings
Co-authored-by: Michał Miszczyszyn <michal@mmiszy.pl>
There was a problem hiding this comment.
| Device | URL |
|---|---|
| mobile | https://devfaq-9lcnkhw06-typeofweb.vercel.app |
Not what you expected? Are your scores flaky? GitHub runners could be the cause.
Try running on Foo instead
There was a problem hiding this comment.
| Device | URL |
|---|---|
| mobile | https://devfaq-5cryetsym-typeofweb.vercel.app |
Not what you expected? Are your scores flaky? GitHub runners could be the cause.
Try running on Foo instead
There was a problem hiding this comment.
| Device | URL |
|---|---|
| mobile | https://devfaq-kpu9g5hye-typeofweb.vercel.app |
Not what you expected? Are your scores flaky? GitHub runners could be the cause.
Try running on Foo instead
There was a problem hiding this comment.
| Device | URL |
|---|---|
| mobile | https://devfaq-dwcdjlywz-typeofweb.vercel.app |
Not what you expected? Are your scores flaky? GitHub runners could be the cause.
Try running on Foo instead
There was a problem hiding this comment.
| Device | URL |
|---|---|
| mobile | https://devfaq-o92b4w4nk-typeofweb.vercel.app |
Not what you expected? Are your scores flaky? GitHub runners could be the cause.
Try running on Foo instead
|
Kudos, SonarCloud Quality Gate passed!
|
There was a problem hiding this comment.
| Device | URL |
|---|---|
| mobile | https://devfaq-786s4ak7q-typeofweb.vercel.app |
Not what you expected? Are your scores flaky? GitHub runners could be the cause.
Try running on Foo instead








Rozwiązuje: #478, #506
/answersdo wyciągania odpowiedzi do pytań z bazy, z możliwością ich sortowania po: liczbie głosów, dacie dodania oraz dacie ostatniej edycji.AnswersDashboard),SortBySelect,SelectLabel),parseSortByQueryzapp/lib/order.tstak, aby współpracowała z innym zestawem elementów przekazywanych do komponentuSortBySelect,CtaHeaderoraz dostosowanie styli,Error,