Skip to content

feat: add admin dashboard for managing answers - #508

Open
grzegorzpokorski wants to merge 58 commits into
developfrom
478-admin-dashboard-for-managing-answers
Open

feat: add admin dashboard for managing answers#508
grzegorzpokorski wants to merge 58 commits into
developfrom
478-admin-dashboard-for-managing-answers

Conversation

@grzegorzpokorski

@grzegorzpokorski grzegorzpokorski commented Jan 29, 2023

Copy link
Copy Markdown
Member

Rozwiązuje: #478, #506

  • dodanie endpointu /answers do wyciągania odpowiedzi do pytań z bazy, z możliwością ich sortowania po: liczbie głosów, dacie dodania oraz dacie ostatniej edycji.
  • dodanie panelu do zarządzania wszystkimi odpowiedziami do pytań (edycja, usuwanie, przeglądanie) (komponent: AnswersDashboard),
  • dodanie możliwości sortowania pytań po dacie edycji,
  • dodanie możliwości sortowania odpowiedzi w panelu zarządzania odpowiedziami,
  • zmiana etykiet wyboru sposobu sortowania tak, aby były spójne oraz jednoznacznie wskazywały, co dana opcja powoduje,
  • przebudowa / wyodrębnienie przycisku do wybierania rodzaju sortowania do nowego komponentu (SortBySelect, SelectLabel),
  • dostosowanie funkcji parseSortByQuery z app/lib/order.ts tak, aby współpracowała z innym zestawem elementów przekazywanych do komponentu SortBySelect,
  • dodanie nowego linku do CtaHeader oraz dostosowanie styli,
  • dodanie możliwości przekazania własnej wiadomości do komponentu Error,
  • uniemożliwienie zapisu pustej odpowiedzi w trybie edycji odpowiedzi oraz dodania pustej odpowiedzi,
  • drobne poprawki.

typeofweb and others added 30 commits January 5, 2023 18:00
* 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>

@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-9lcnkhw06-typeofweb.vercel.app

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

@grzegorzpokorski
grzegorzpokorski marked this pull request as ready for review January 30, 2023 15:35

@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-5cryetsym-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-kpu9g5hye-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-dwcdjlywz-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-o92b4w4nk-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 1 Code Smell

No Coverage information No Coverage information
2.3% 2.3% 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-786s4ak7q-typeofweb.vercel.app

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

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.

4 participants