Skip to content
Open

Fe/v2 #1196

Show file tree
Hide file tree
Changes from 163 commits
Commits
Show all changes
223 commits
Select commit Hold shift + click to select a range
da9eafd
fix: fab buttons misplaced
eduardoliron May 11, 2026
4f1ccd8
Merge branch 'main' of github.com:aula-app/aula-frontend
eduardoliron May 11, 2026
737537c
create a starting v2 editing workflow, and update login page
eduardoliron May 12, 2026
f288c17
duplicate login page layout
eduardoliron May 12, 2026
9ed256c
docs: add v2 login form validation design spec
eduardoliron May 12, 2026
e0e4e9f
wire backend calls to new layout and handle errors
eduardoliron May 12, 2026
ba732ce
add acessible recovery view
eduardoliron May 12, 2026
b60949d
fix type errors
eduardoliron May 12, 2026
667f75b
add review basis for v2
eduardoliron May 13, 2026
a0217d0
organize test suite for v2
eduardoliron May 13, 2026
8a555e0
restore theme
eduardoliron May 13, 2026
326da64
Merge branch 'a11y/review' into a11y/login
eduardoliron May 13, 2026
a816568
fix conflicts
eduardoliron May 13, 2026
e09e706
fix conflicts
eduardoliron May 13, 2026
d315ccd
remove layout folder
eduardoliron May 13, 2026
29f38c1
update code setup page
eduardoliron May 13, 2026
f2fc678
end code migration
eduardoliron May 13, 2026
71e8a86
update tests
eduardoliron May 13, 2026
3bd1552
update changelog
eduardoliron May 13, 2026
193ff1b
fix: recover popup alerts
eduardoliron May 13, 2026
e4506ea
approve login tests
eduardoliron May 13, 2026
cebbe9a
fix tests
eduardoliron May 13, 2026
d4020a2
update textinput to receive better helper text
eduardoliron May 18, 2026
8d3a9e5
update tailwind merging
eduardoliron May 18, 2026
6a7941d
add reset password page
eduardoliron May 18, 2026
6460b38
translation changes
eduardoliron May 18, 2026
844c9ef
add resetpassword component
eduardoliron May 18, 2026
02e40cb
feat(tooltip): add showDelay, hideDelay props and EXIT_DURATION constant
eduardoliron May 18, 2026
b8546b0
feat(tooltip): implement mounted/shown state model with show/hide del…
eduardoliron May 18, 2026
e693408
fix(tooltip): fix rAF race condition, stale hideDelay closure, and do…
eduardoliron May 18, 2026
12f2826
fix(tooltip): move showTimerRef cancel before doHide early-return guard
eduardoliron May 18, 2026
3b45c77
feat(tooltip): add Escape key dismissal for WCAG 1.4.13 compliance
eduardoliron May 18, 2026
c167469
fix(tooltip): use doHideRef to avoid stale closure in scroll and Esca…
eduardoliron May 18, 2026
4cac00c
feat(tooltip): add touch support β€” tap to open, tap outside to dismiss
eduardoliron May 18, 2026
3dc005e
fix(tooltip): wire onTouchEnd handler into JSX
eduardoliron May 18, 2026
c527170
fix dark mode
eduardoliron May 19, 2026
9504404
fix colors
eduardoliron May 19, 2026
72428f1
fix colors in darkmode
eduardoliron May 19, 2026
c472dd6
fix setpassword and tooltip
eduardoliron May 19, 2026
628f674
add new font
eduardoliron May 19, 2026
22ff170
make main logo responsible to dark mode
eduardoliron May 19, 2026
4311ee9
fix form sizes on public
eduardoliron May 19, 2026
844acb4
add offline view
eduardoliron May 19, 2026
4d76f19
set animation disabling flag
eduardoliron May 19, 2026
5ae6aaa
review accesibility on hide password button
eduardoliron May 19, 2026
368dd5c
remove unecessary fieldset on login
eduardoliron May 19, 2026
7eb9fac
minor wcag fixes
eduardoliron May 19, 2026
4e03619
fix tailwind merginf algoruthm
eduardoliron May 19, 2026
b89c827
add aria to button component
eduardoliron May 19, 2026
745cc0b
review recover password a11y
eduardoliron May 19, 2026
d070411
add useMemo to form validation
eduardoliron May 19, 2026
04a3f22
add skip to main component
eduardoliron May 19, 2026
577902d
add temporary refactoring of locale
eduardoliron May 19, 2026
3c5c3d3
add all components on v2
eduardoliron May 19, 2026
de8885a
improve buttons and add tooltip
eduardoliron May 19, 2026
eac1e6c
fix minor bugs
eduardoliron May 19, 2026
5a1acfb
add missing files
eduardoliron May 19, 2026
80f8b4d
fix prop requirements to enforce best practices
eduardoliron May 19, 2026
4aad7a4
fix minor issues and typeerrors
eduardoliron May 19, 2026
b02463b
add about page to Public
eduardoliron May 19, 2026
babae93
add translateble about page
eduardoliron May 19, 2026
c71f85e
fix tooltip behaviour on mobile
eduardoliron May 19, 2026
abb0892
tapToShow
eduardoliron May 19, 2026
8b13c7a
fix chrome overflow error
eduardoliron May 20, 2026
284dfb2
improve theme colors
eduardoliron May 20, 2026
f7aa792
remove unused comments
eduardoliron May 20, 2026
6853da2
fix broken outline on darkmode buttons
eduardoliron May 20, 2026
8d6977f
fix overflow problems
eduardoliron May 20, 2026
09ab3dd
fix typo on offline view
eduardoliron May 21, 2026
c6d4ce2
minor color fixes
eduardoliron May 21, 2026
0d236c6
remove oversized font
eduardoliron May 26, 2026
9f30ca6
remove unused fonts and fix chip sizing acording to text size
eduardoliron May 26, 2026
6b77e61
remove unused fonts
eduardoliron May 26, 2026
1798986
fix chip sizing acording to text size
eduardoliron May 26, 2026
3d8cd57
Merge branch 'a11y/public' into a11y/private
eduardoliron May 26, 2026
82dca2c
Merge branch 'main' of github.com:aula-app/aula-frontend
eduardoliron May 26, 2026
8356b11
Merge branch 'main' into a11y/public
eduardoliron May 26, 2026
804dc1c
Merge branch 'a11y/public' into a11y/private
eduardoliron May 26, 2026
0b440b2
try trigger workflow
bikubi May 26, 2026
26ed939
update code component
eduardoliron May 26, 2026
c167c72
wip: add necessary icons
eduardoliron May 27, 2026
76dc9cd
add logout button component
eduardoliron May 27, 2026
10ea925
add global hooks folder on v2
eduardoliron May 27, 2026
e65cd90
add sidebar item check hook
eduardoliron May 27, 2026
34096e8
add sidebar and update layout
eduardoliron May 27, 2026
d37ec94
fix sidebar appearance
eduardoliron May 27, 2026
5f49f59
update button to accept to and turn to <a> tag
eduardoliron May 27, 2026
7cecf8c
update button locale
eduardoliron May 27, 2026
5043208
fix topbar a11y
eduardoliron May 27, 2026
4950045
add focused navigation
eduardoliron May 27, 2026
7778840
fix topbar and drawer fixes
eduardoliron May 27, 2026
c016fa9
review a11y for navigation
eduardoliron May 27, 2026
fa8b412
fix minor issue on menu chip
eduardoliron May 27, 2026
8aafa83
fix type error
eduardoliron May 27, 2026
24a5094
fix type error
eduardoliron May 27, 2026
7942905
Merge branch 'main' of github.com:aula-app/aula-frontend
eduardoliron May 27, 2026
bd3e22e
Merge branch 'main' into a11y/public
eduardoliron May 27, 2026
f8f8ae0
hide llm files
eduardoliron May 27, 2026
bcbc0a7
Merge branch 'a11y/public' of github.com:aula-app/aula-frontend into …
eduardoliron May 27, 2026
12a40a6
conform tests and grant execution
eduardoliron May 28, 2026
83952b8
add test for other pages
eduardoliron May 28, 2026
8c38184
add test for other pages
eduardoliron May 28, 2026
c6f12a0
minor test improvement
eduardoliron May 28, 2026
da5b680
add tooltip tests
eduardoliron May 28, 2026
1ba7522
fix broken toolti tests
eduardoliron May 28, 2026
421b8d1
Merge branch 'main' of github.com:aula-app/aula-frontend
eduardoliron May 28, 2026
16581f8
Merge branch 'main' into a11y/public
eduardoliron May 28, 2026
f3b08ea
fix tests for new selectors
eduardoliron May 28, 2026
2b03a21
add new tests
eduardoliron May 28, 2026
23f9bb0
fix csv-import
eduardoliron May 28, 2026
8b95a41
Merge branch 'a11y/public' into a11y/private
eduardoliron May 28, 2026
8c95ceb
fix nav overflow x
eduardoliron May 28, 2026
e96cc97
minor color fixes
eduardoliron May 28, 2026
c01e305
add profile
eduardoliron May 28, 2026
790a781
add new tests
eduardoliron May 29, 2026
d0872ae
recire breadcrumbs a11y
eduardoliron May 29, 2026
c6a5980
review breadcrumbs
eduardoliron May 29, 2026
22cb542
remove unused component
eduardoliron May 29, 2026
7cf6787
fic rounting logic and prevent tech admins from navigating
eduardoliron May 29, 2026
c8670be
add new toast setup
eduardoliron May 29, 2026
eff5ea9
fix toast appearance
eduardoliron May 29, 2026
89d08a8
add toast animations
eduardoliron May 29, 2026
1a5284e
add toast tests
eduardoliron May 29, 2026
df46e8f
fix tests
eduardoliron May 29, 2026
70e24c3
update tests expecting popup to the new toast component (remove notis…
eduardoliron May 29, 2026
ffd19d6
update modal component for v2
eduardoliron May 29, 2026
74a8b51
fix offline view
eduardoliron May 29, 2026
aec70b4
add necessary repo for tests
eduardoliron May 29, 2026
3c22c18
offline tests as dependency
eduardoliron May 29, 2026
7171f53
Merge branch 'a11y/public' into a11y/private
eduardoliron May 29, 2026
fa1b989
fix model bug on tests
eduardoliron May 29, 2026
1926a81
make the modal a global component
eduardoliron May 29, 2026
10a0f07
update chagelog
eduardoliron May 29, 2026
e1c7c8d
add dropown component
eduardoliron Jun 1, 2026
46ce90f
add private about page
eduardoliron Jun 1, 2026
4a9380f
change about route
eduardoliron Jun 1, 2026
d19cb57
update changelog
eduardoliron Jun 1, 2026
2e7a6a5
update language test
eduardoliron Jun 1, 2026
5ebed43
deserialize workesr setup
eduardoliron Jun 1, 2026
a014ff0
update gitignore
eduardoliron Jun 1, 2026
fb2aebc
fix csv import tests failing on ui mode
eduardoliron Jun 1, 2026
81b732f
fix duplicated navigation calls and review the code to prevent timeou…
eduardoliron Jun 1, 2026
5c69126
Merge branch 'refactor/language-switch' into FE/v2
eduardoliron Jun 1, 2026
e3875ee
Merge branch 'fix/test-setup' into FE/v2
eduardoliron Jun 1, 2026
6d33b62
remove test dependency
eduardoliron Jun 1, 2026
171420b
fix test errors and improve modal logic
eduardoliron Jun 1, 2026
fc6ab03
Private/about (#1186)
eduardoliron Jun 2, 2026
fbdcd5a
fix about page
eduardoliron Jun 2, 2026
60ddb73
fix test errors
eduardoliron Jun 2, 2026
4ef945f
fix layout bugs
eduardoliron Jun 3, 2026
d4d490a
fix layout bugs
eduardoliron Jun 3, 2026
6bd627f
remove cancel button from forms
eduardoliron Jun 8, 2026
68afc86
change input color for better contrast
eduardoliron Jun 8, 2026
21525da
add each language on its own language in language switch component
eduardoliron Jun 8, 2026
84f828f
remove tooltip from offline/not found views
eduardoliron Jun 8, 2026
28d0d8e
remove unused imports
eduardoliron Jun 8, 2026
8eea9ea
Merge branch 'main' of github.com:aula-app/aula-frontend
eduardoliron Jun 8, 2026
2b187a9
Merge branch 'main' into FE/v2
eduardoliron Jun 8, 2026
88bd46d
add data-test-id
eduardoliron Jun 8, 2026
9843864
fix data test ids and tooltip tests
eduardoliron Jun 8, 2026
f8647b9
Merge branch 'main' into FE/v2
eduardoliron Jun 9, 2026
f2f5a4a
fix chaange pass test
eduardoliron Jun 9, 2026
05f1cbf
fix login button text
eduardoliron Jun 9, 2026
60c3142
Public/add sso to new layout (#1199)
eduardoliron Jun 15, 2026
4f91e82
add cursos pointer tu Button component
eduardoliron Jun 15, 2026
84bdf22
Merge branch 'FE/v2' of github.com:aula-app/aula-frontend into FE/v2
eduardoliron Jun 15, 2026
0accb1f
prevent IOS auto zoom
eduardoliron Jun 15, 2026
5ec8683
isolate main so layout wont cover sidebar
eduardoliron Jun 15, 2026
24fa12c
manage phone safeareas
eduardoliron Jun 15, 2026
e458e53
add arrow navigation to combobox and sidebar
eduardoliron Jun 15, 2026
4d0c364
improve colors
eduardoliron Jun 15, 2026
5c5fed8
separate sidebar logic
eduardoliron Jun 15, 2026
0ccd472
fix color scheme on buttons
eduardoliron Jun 15, 2026
e9fa314
fix button colors
eduardoliron Jun 15, 2026
68f0654
remove headings padding
eduardoliron Jun 18, 2026
8fd090c
fix color regression
eduardoliron Jun 18, 2026
b996610
fix sidebar buttons outline
eduardoliron Jun 18, 2026
4ee4195
fix layout: Back to sign in / Instance code, vertically misaligned
eduardoliron Jun 18, 2026
fd3213b
fix blinking outline
eduardoliron Jun 18, 2026
e20dc13
simplify code adding a default and centalized css rule for focus-visi…
eduardoliron Jun 18, 2026
21b825a
normalize locale
eduardoliron Jun 18, 2026
e3bbfda
fix breadcrumb navigation
eduardoliron Jun 18, 2026
8ac1182
fix unwanted overflow on load
eduardoliron Jun 18, 2026
6d18c0b
remove crypto.randomUUID() to grant it will work on non secure contexts
eduardoliron Jun 18, 2026
069e530
Merge branch 'main' of github.com:aula-app/aula-frontend
eduardoliron Jun 23, 2026
e611c30
remove disabled button while sign in
eduardoliron Jun 23, 2026
268b50f
Merge branch 'main' of github.com:aula-app/aula-frontend
eduardoliron Jun 23, 2026
ad5e66a
fix hero banner on not found pages
eduardoliron Jun 23, 2026
f164ee2
remove IS_OAUTH_ENABLED
eduardoliron Jun 23, 2026
3dcb793
Fix/sidebar scroll (#1208)
eduardoliron Jun 23, 2026
3284446
Merge branch 'FE/v2' of github.com:aula-app/aula-frontend into FE/v2
eduardoliron Jun 23, 2026
85fc153
fix-sidebar
eduardoliron Jun 23, 2026
da8477a
fix-sidebar colors
eduardoliron Jun 23, 2026
8e3360f
make sidebar full h
eduardoliron Jun 23, 2026
f61e810
add back button to error
eduardoliron Jun 23, 2026
61d97cb
optimizeDeps
eduardoliron Jun 24, 2026
1ff2cdf
Public/remove code chip (#1200)
eduardoliron Jun 24, 2026
dc47107
Private/Announcement component (#1189)
eduardoliron Jun 24, 2026
bc5a9e8
Private/room layout (#1201)
eduardoliron Jun 24, 2026
8bea585
Merge branch 'main' into FE/v2
eduardoliron Jun 25, 2026
eece4b5
Merge branch 'main' of github.com:aula-app/aula-frontend
eduardoliron Jul 7, 2026
2cf7125
reorder navigation
eduardoliron Jul 7, 2026
802ca23
fix: sidebar preventing click on mobile bug
eduardoliron Jul 7, 2026
2b92b1f
fix: sidebar preventing click on mobile bug
eduardoliron Jul 7, 2026
58793db
fix: sidebar preventing click on mobile bug
eduardoliron Jul 7, 2026
92075c9
improve readability on sidebar
eduardoliron Jul 7, 2026
4c2daaf
Merge branch 'main' of github.com:aula-app/aula-frontend
eduardoliron Jul 14, 2026
96f216b
Private/ideas (#1226)
eduardoliron Jul 28, 2026
1fd8de2
Merge branch 'main' into FE/v2
nikola-maric-aula Aug 3, 2026
7d1bcce
fix: adapt FE to new docker networks (#1236)
nikola-maric-aula Aug 4, 2026
90fc3f1
Private/boxes (#1235)
eduardoliron Aug 13, 2026
b5f51f4
Merge branch 'main' of github.com:aula-app/aula-frontend
eduardoliron Aug 13, 2026
9aad193
Add Phase duration countdown to box cards (#1243)
eduardoliron Aug 13, 2026
1d0348f
Merge branch 'main' of github.com:aula-app/aula-frontend
eduardoliron Aug 25, 2026
adfd6b9
Merge branch 'main' of github.com:aula-app/aula-frontend
eduardoliron Aug 25, 2026
3f0521a
Merge branch 'main' of github.com:aula-app/aula-frontend
eduardoliron Aug 26, 2026
1f4aed6
fix v2 breadcrumb navigation (#1244)
eduardoliron Aug 31, 2026
1785596
Merge branch 'main' of github.com:aula-app/aula-frontend
eduardoliron Sep 1, 2026
5ccabab
Merge branch 'main' of github.com:aula-app/aula-frontend
eduardoliron Sep 2, 2026
a2ed364
Merge branch 'main' of github.com:aula-app/aula-frontend
eduardoliron Sep 3, 2026
4c48164
Merge branch 'main' of github.com:aula-app/aula-frontend
eduardoliron Sep 4, 2026
41b4b91
Merge branch 'main' into FE/v2
eduardoliron Sep 4, 2026
ab9b4d7
fix type errors
eduardoliron Sep 4, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ package-lock.json
# production
/build

#llm
.claude/

# misc
.DS_Store
/*.development
Expand All @@ -54,3 +57,7 @@ node_modules/
/playwright-report/
/blob-report/
/playwright/.cache/

# Claude Code
.claude/settings.local.json
.claude/hooks/node_modules/
2 changes: 1 addition & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
node_modules
build
public
/public
out
styles
20 changes: 20 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
## 2.0.0

- **New features**
- New toast notification system with animations, replacing the previous snackbar library
- Modal is now a global component, available across all private views
- Profile view added to the v2 private layout
- Bilingual about page

- **Accessibility improvements**
- Breadcrumbs reviewed and updated for screen reader compatibility in private routes

- **Bug fixes**
- Fixed routing logic to prevent Tech Admins from accessing unauthorized routes
- Fixed offline view layout and behavior
- Fixed navigation horizontal overflow

- **Internal**
- Completed v2 component migration for public routes (Login, Recovery, Code, NotFound)
- v2 private layout components (PrivateLayout, TopBar, SideBar) now fully migrated

## 1.9.3

- **Technical improvements**
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,4 @@ See `LICENSE.txt`. Licensed under the EUPL-1.2 or later. You may obtain a copy o
## Contributing

Please read our [Contributing Guidelines](docs/INDEX.md) for details on our code of conduct and the process for submitting pull requests.

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@
"dayjs": "^1.11.13",
"eslint": "^10.0.3",
"i18next": "^23.11.5",
"notistack": "^3.0.1",
"react": "^18.3.1",
"react-dom": "^18.0.0",
"react-hook-form": "^7.45.0",
Expand All @@ -70,11 +69,13 @@
"react-router-dom": "^6.14.2",
"rehype-raw": "^7.0.0",
"semver": "^7.7.4",
"tailwind-merge": "^3.6.0",
"tailwindcss": "^4.1.18",
"yup": "^1.3.3"
},
"devDependencies": {
"@capacitor/cli": "^8.2.0",
"@eslint/js": "^10.0.1",
"@playwright/test": "^1.55.1",
"@types/jest": "^29.5.3",
"@types/node": "^22.7.5",
Expand All @@ -87,6 +88,7 @@
"eslint-plugin-react": "^7.37.5",
"eslint-plugin-react-hooks": "^5.2.0",
"knip": "^5.33.2",
"mariadb": "^3.5.2",
"prettier": "^3.0.0",
"typescript": "^5.6.3",
"vite": "^5.4.20",
Expand Down
1 change: 1 addition & 0 deletions playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export default defineConfig({
screenshot: 'only-on-failure',
video: 'on-first-retry',

reducedMotion: 'reduce',
actionTimeout: 15_000,
navigationTimeout: 15_000,

Expand Down
Binary file not shown.
Binary file not shown.
15 changes: 15 additions & 0 deletions public/font/nunito/nunito-sans.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
@font-face {
font-family: 'Nunito Sans';
src: url('/font/nunito/NunitoSans-VariableFont_YTLC,opsz,wdth,wght.ttf') format('truetype');
font-weight: 200 1000;
font-style: normal;
font-display: swap;
}

@font-face {
font-family: 'Nunito Sans';
src: url('/font/nunito/NunitoSans-Italic-VariableFont_YTLC,opsz,wdth,wght.ttf') format('truetype');
font-weight: 200 1000;
font-style: italic;
font-display: swap;
}
5 changes: 0 additions & 5 deletions public/font/tahoma/tahoma.css

This file was deleted.

Binary file removed public/font/tahoma/tahoma.woff
Binary file not shown.
95 changes: 0 additions & 95 deletions public/font/vision/vision.css

This file was deleted.

Binary file removed public/font/vision/woff/vision-black-webfont.woff
Binary file not shown.
Binary file not shown.
Binary file removed public/font/vision/woff/vision-bold-webfont.woff
Binary file not shown.
Binary file not shown.
Binary file removed public/font/vision/woff/vision-heavy-webfont.woff
Binary file not shown.
Binary file not shown.
Binary file removed public/font/vision/woff/vision-light-webfont.woff
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed public/font/vision/woff/vision-thin-webfont.woff
Binary file not shown.
Binary file not shown.
Binary file removed public/font/vision/woff/vision-webfont.woff
Binary file not shown.
Binary file removed public/font/vision/woff2/vision-black-webfont.woff2
Binary file not shown.
Binary file not shown.
Binary file removed public/font/vision/woff2/vision-bold-webfont.woff2
Binary file not shown.
Binary file not shown.
Binary file removed public/font/vision/woff2/vision-heavy-webfont.woff2
Binary file not shown.
Binary file not shown.
Binary file removed public/font/vision/woff2/vision-light-webfont.woff2
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed public/font/vision/woff2/vision-thin-webfont.woff2
Binary file not shown.
Binary file not shown.
Binary file removed public/font/vision/woff2/vision-webfont.woff2
Binary file not shown.
9 changes: 2 additions & 7 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@ import { BrowserRouter } from 'react-router-dom';
import { ErrorBoundary } from './components';
import { getRuntimeConfig } from './config';
import { useAndroidBackButton } from './hooks';
import Layout from './layout';
import Routes from './routes';
import { AppStore } from './store';
import { AppThemeProvider } from './theme';
import { AppThemeProvider } from '@/theme';

/**
* Inner component that uses router hooks
Expand All @@ -15,11 +14,7 @@ const AppContent: React.FC = () => {
// Handle Android back button navigation
useAndroidBackButton();

return (
<Layout>
<Routes />
</Layout>
);
return <Routes />;
};

/**
Expand Down
2 changes: 1 addition & 1 deletion src/components/Buttons/CodeButton/CodeButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const CodeButton: FC<ButtonProps> = ({ ...restOfProps }) => {
onClick={() => {
navigator.clipboard.writeText(code).then(() =>
dispatch({
type: 'ADD_POPUP',
type: 'ADD_TOAST',
message: { message: t('ui.accessibility.codeCopied'), type: 'success' },
})
);
Expand Down
2 changes: 1 addition & 1 deletion src/components/Buttons/LikeButton/LikeButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const LikeButton = forwardRef<HTMLButtonElement, Props>(({ item, disabled, onCha
: addCommentLike(item.id));
if (response.error) {
updateLikeStatus(!likeStatus); // Revert like status if API call fails
dispatch({ type: 'ADD_POPUP', message: { message: t('errors.failed'), type: 'error' } });
dispatch({ type: 'ADD_TOAST', message: { message: t('errors.failed'), type: 'error' } });
}
} finally {
setIsPending(false);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ const ResetMultiplePasswordsButton = forwardRef<HTMLButtonElement, Props>(
if (error) {
hasError = true;
dispatch({
type: 'ADD_POPUP',
type: 'ADD_TOAST',
message: {
message: `${t('errors.failed')} (${user.realname || user.displayname})`,
type: 'error',
Expand All @@ -123,7 +123,7 @@ const ResetMultiplePasswordsButton = forwardRef<HTMLButtonElement, Props>(
hasSuccess = true;
const userHasEmail = Boolean(user.email);
dispatch({
type: 'ADD_POPUP',
type: 'ADD_TOAST',
message: {
message: t('auth.forgotPassword.successfulUser', {
user: user.realname || user.displayname,
Expand All @@ -135,7 +135,7 @@ const ResetMultiplePasswordsButton = forwardRef<HTMLButtonElement, Props>(
});

if (!hasSuccess && hasError) {
dispatch({ type: 'ADD_POPUP', message: { message: t('errors.failed'), type: 'error' } });
dispatch({ type: 'ADD_TOAST', message: { message: t('errors.failed'), type: 'error' } });
}

setConfirm(false);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const ResetPasswordButton: FC<Props> = ({ target, hasEmail = false, onSuccess, .
const handleReset = async (event: SyntheticEvent) => {
event.stopPropagation();
if (!target.hash_id) {
dispatch({ type: 'ADD_POPUP', message: { message: t('errors.failed'), type: 'error' } });
dispatch({ type: 'ADD_TOAST', message: { message: t('errors.failed'), type: 'error' } });
return;
}

Expand All @@ -49,10 +49,10 @@ const ResetPasswordButton: FC<Props> = ({ target, hasEmail = false, onSuccess, .
const response = await resetUserPassword(target.hash_id);

if (response.error) {
dispatch({ type: 'ADD_POPUP', message: { message: t('errors.failed'), type: 'error' } });
dispatch({ type: 'ADD_TOAST', message: { message: t('errors.failed'), type: 'error' } });
} else {
dispatch({
type: 'ADD_POPUP',
type: 'ADD_TOAST',
message: {
message: t('auth.forgotPassword.successfulUser', {
user: target.realname || target.displayname,
Expand All @@ -67,7 +67,7 @@ const ResetPasswordButton: FC<Props> = ({ target, hasEmail = false, onSuccess, .
onSuccess?.();
}
} catch {
dispatch({ type: 'ADD_POPUP', message: { message: t('errors.failed'), type: 'error' } });
dispatch({ type: 'ADD_TOAST', message: { message: t('errors.failed'), type: 'error' } });
}

setConfirm(false);
Expand Down
2 changes: 1 addition & 1 deletion src/components/ChangePassword/ChangePassword.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ const ChangePassword: React.FC<Props> = ({
}

if (tmp_token && !result.error) {
dispatch({ type: 'ADD_POPUP', message: { message: t('auth.password.success'), type: 'success' } });
dispatch({ type: 'ADD_TOAST', message: { message: t('auth.password.success'), type: 'success' } });
navigate('/', { replace: true });
}
};
Expand Down
2 changes: 1 addition & 1 deletion src/components/DataForms/BugForms.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const BugForms: React.FC<BugFormsProps> = ({ onClose, onSubmit }) => {
};

return (
<Stack overflow="auto" p={2} gap={2}>
<Stack overflow="auto" p={2} gap={2} data-testid={TEST_IDS.BUG_DIALOG}>
<Typography variant="h1">{t(`actions.add`, { var: t(`scopes.bugs.name`).toLowerCase() })}</Typography>
<form onSubmit={handleSubmit(handleFormSubmit)} noValidate>
<Stack gap={2}>
Expand Down
2 changes: 1 addition & 1 deletion src/components/DataTable/Item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ const Item: React.FC<Props> = ({ row, column, onReload }) => {
e.stopPropagation();
navigator.clipboard
.writeText(String(value))
.then(() => dispatch({ type: 'ADD_POPUP', message: { message: t('auth.password.copied'), type: 'success' } }));
.then(() => dispatch({ type: 'ADD_TOAST', message: { message: t('auth.password.copied'), type: 'success' } }));
};

// Main switch statement organized by data type
Expand Down
8 changes: 4 additions & 4 deletions src/components/DelegateVote/DelegateVote.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,10 @@ const DelegateVote = ({ open, delegate, onClose, triggerRef }: Props) => {
const response = await delegateVote(selected.hash_id, box_id);

if (response.error) {
dispatch({ type: 'ADD_POPUP', message: { message: t('errors.failed'), type: 'error' } });
dispatch({ type: 'ADD_TOAST', message: { message: t('errors.failed'), type: 'error' } });
}

dispatch({ type: 'ADD_POPUP', message: { message: t('delegation.status.success'), type: 'success' } });
dispatch({ type: 'ADD_TOAST', message: { message: t('delegation.status.success'), type: 'success' } });
handleClose();
};

Expand All @@ -76,10 +76,10 @@ const DelegateVote = ({ open, delegate, onClose, triggerRef }: Props) => {
const response = await revokeDelegation(box_id);

if (response.error) {
dispatch({ type: 'ADD_POPUP', message: { message: t('errors.failed'), type: 'error' } });
dispatch({ type: 'ADD_TOAST', message: { message: t('errors.failed'), type: 'error' } });
}

dispatch({ type: 'ADD_POPUP', message: { message: t('delegation.status.revoked'), type: 'success' } });
dispatch({ type: 'ADD_TOAST', message: { message: t('delegation.status.revoked'), type: 'success' } });
handleClose();
};

Expand Down
Loading
Loading