Commit Graph

2472 Commits

Author SHA1 Message Date
Ajit Mehrotra
b147762e8a fix(notifications): add support for bottom-center'd nuxtui toasts 2025-12-09 15:01:25 -05:00
Ajit Mehrotra
7351c000b2 fix(notifications): show full title on notification pane and truncate toasts 2025-12-09 15:00:47 -05:00
Ajit Mehrotra
501cb0ab4a fix(notifications): add elipses to long single-word toast titles 2025-12-09 14:25:37 -05:00
Ajit Mehrotra
391cb1265e fix(notifications): add break-word styling for long words in subject and description 2025-12-09 14:14:16 -05:00
Ajit Mehrotra
baed8f0095 fix(notifications): override notification bell hover to maintain consistency with legacy webGUI 2025-12-09 13:43:33 -05:00
Ajit Mehrotra
8f0e7b0536 fix(app.config): update toast max duration comment for compatibility with Nuxt UI 4.0.0-alpha.0 2025-12-05 18:48:44 -05:00
Ajit Mehrotra
1587d589b6 refactor(notifications): sync toast position with legacy settings
This change ensures that Nuxt UI notifications respect the display position configured in the legacy webGUI settings.

Backend:
- Added `NotificationSettings` to the GraphQL model.
- Exposed `settings` field on the `Notifications` resolver.
- Implemented `getSettings` in `NotificationsService` to read `notify.position` from the Dynamix store.

Frontend:
- Added `getNotificationSettings` GraphQL query.
- Updated `mount-engine.ts` to fetch settings before mounting.
- Mapped legacy position values (e.g., 'center') to Nuxt UI compatible values (e.g., 'top-center').
2025-12-05 15:31:17 -05:00
Ajit Mehrotra
cd201626b7 fix(notification): address filenames greater than 255 bytes
- updated file watching logic to ignore initial files, improving performance.
- added duplicate check for archive notifications to prevent double counting.
- implemented retry mechanism for loading notifications, enhancing reliability.
- introduced handling for risky notifications to ensure proper file creation and avoid legacy script failures.
2025-12-05 14:37:07 -05:00
Ajit Mehrotra
897021eacc fix(notifications api): implement async generator for improve filtering logic
Problem this solution addresses:
Basically, when users filtered by alert, warning, or info, results were being paginated first, then filtered by the requested importance, so filtered notifications were not working properly in some (a lot) of cases.

- added a new async generator method to load notifications in batches, enhancing performance and error handling.
- refactored the notification loading logic to utilize the generator, improving readability and maintainability.
- updated filtering logic to streamline the process of matching notifications based on importance and type.
2025-12-03 17:27:25 -05:00
Ajit Mehrotra
49f498de82 refactor(ui): replace vue-sonner toasts with nuxtui toasts
> [!Note] This stubs the unraid-ui/src/components/common/toast. Initially created a shim to convert vue-sonnner toasts to nuxtui. However, since there weren't that many, I just did a clean replacement.

# Other Changes
- replace router link with window.location.assign

The `UButton` component attempts to inject the Vue Router instance when the `:to` prop is used. In the standalone component environment (where the router is not installed), this caused a "TypeError: inject(...) is undefined" crash when rendering notifications with links.

This change replaces the `:to` prop with a standard `@click` handler that uses `window.location.assign`, ensuring navigation works correctly without requiring the router context.
2025-12-02 16:39:40 -05:00
Ajit Mehrotra
6488191184 refactor: enhance app configuration and notification components for improved UI consistency
- modified vite.config.ts to integrate app configuration into UI setup
- updated app.config.ts to include new button, tabs, and slideover variants for better theming
- cleaned up main.css by removing unused styles and ensuring proper imports
- refactored notification components to streamline structure and improve readability
2025-12-01 21:20:26 -05:00
Ajit Mehrotra
51d7b05858 refactor: update notification components to use UIcon and UButton for improved consistency
- replaced Heroicons components with UIcon for better integration
- refactored Sidebar.vue to utilize USlideover and UButton for a cleaner UI
- removed unused imports and styles in main.css for better maintainability

NOTES:
- had to change main.css variables for it to work properly. Need to make sure this doesn't ruin other people's code.
- still needs to be further refactored to align with existing ui variables
2025-11-25 16:39:34 -05:00
Ajit Mehrotra
4492cf484c fix: address notification pane infinite network request and improve error messages
commit addresses the following two bugs/issues:
1. infinite network requests
2. make error messages more accurate

bug details:
- when scrolled all the way down in the notification pane (when api is down), unraid infinitely sends network requests.
- must be scrolled all the way to the bottom and stay at the bottom of the pane while the api is down

technical details:
- for infinite loop, added try/catch that sets a canLoadMore flag to false when it encounters an error, preventing infinite loop
- errors now look at non-standard locations as well

impact:
- performance benefits
- more graceful ux on failure
2025-11-24 14:47:15 -05:00
Ajit Mehrotra
4449997365 refactor: replace LoadingSpinner and LoadingError with nuxtUI components
- update VSCode settings for Tailwind CSS support
2025-11-21 12:30:10 -05:00
Ajit Mehrotra
daadc943bc enhance: add ssh retry logic and SSH options in deploy script 2025-11-21 12:28:42 -05:00
Pujit Mehrotra
6536ef0629 refactor: docker log, event, and port services 2025-11-20 11:01:47 -05:00
Pujit Mehrotra
d769c2c7ea refactor: docker autostart service 2025-11-20 10:42:32 -05:00
Pujit Mehrotra
55b8deeeba feat: container stats 2025-11-20 10:12:13 -05:00
Pujit Mehrotra
9960c78036 fix styles 2025-11-19 20:07:32 -05:00
Pujit Mehrotra
c8757683d1 manage settings > compact view 2025-11-19 19:42:55 -05:00
Pujit Mehrotra
3fce6707b0 feat: re-add compact mode 2025-11-19 19:37:51 -05:00
Pujit Mehrotra
e0bd1d259e make webgui iframable 2025-11-19 19:31:23 -05:00
Pujit Mehrotra
1aa02995ad fix: use container name instead of id in 'view logs' modal 2025-11-19 19:11:23 -05:00
Pujit Mehrotra
f94f8e039c feat: docker logs 2025-11-18 13:05:18 -05:00
Pujit Mehrotra
12c8c12404 feat: update all containers bulk action 2025-11-17 16:03:37 -05:00
Pujit Mehrotra
cf743d573b refactor: port conflict frontend stuff 2025-11-17 15:14:31 -05:00
Pujit Mehrotra
735f58058d feat: port conflicts 2025-11-17 15:14:31 -05:00
Pujit Mehrotra
a5cd839993 feat: sync userprefs.cfg for rollback compat 2025-11-17 15:14:31 -05:00
Pujit Mehrotra
2371d8e2e1 feat: include indexed search fields in filter input title 2025-11-17 15:14:31 -05:00
Pujit Mehrotra
5bc0026482 feat: visit button 2025-11-17 15:14:31 -05:00
Pujit Mehrotra
6fb9ab72de feat: make lanIpPorts a list, not a csv 2025-11-17 15:14:31 -05:00
Pujit Mehrotra
e6b43f0c42 feat: multi-value copyable badges 2025-11-17 15:14:31 -05:00
Pujit Mehrotra
fafdaf989c fix: container port duplication 2025-11-17 15:14:31 -05:00
Pujit Mehrotra
79b39fb49b add docker feature flag to .env.production 2025-11-17 15:14:31 -05:00
Pujit Mehrotra
13f4a6aaa2 feat: server-side container ip 2025-11-17 15:14:31 -05:00
Pujit Mehrotra
d50ba35e24 chore: ignore build output in lint & fix 2025-11-17 15:14:31 -05:00
Pujit Mehrotra
678da62b1b fix: revert color in main css 2025-11-17 15:14:31 -05:00
Pujit Mehrotra
80556bd9d8 fix: checkbox alignment 2025-11-17 15:14:31 -05:00
Pujit Mehrotra
9a31aea813 fix: container sizes modla overlay 2025-11-17 15:14:31 -05:00
Pujit Mehrotra
57a5de7783 feat: container sizes 2025-11-17 15:14:31 -05:00
Pujit Mehrotra
1ff22e546a feat: bulk container updates 2025-11-17 15:14:31 -05:00
Pujit Mehrotra
92852466e8 fix: container update logic 2025-11-17 15:14:31 -05:00
Pujit Mehrotra
6c048bf550 feat: container update actions 2025-11-17 15:14:31 -05:00
Pujit Mehrotra
217b28c11b chore(api): add dev/notifications to gitignore 2025-11-17 15:14:31 -05:00
Pujit Mehrotra
4edd243674 feat: add ENABLE_NEXT_DOCKER_RELEASE=true to staging environment 2025-11-17 15:14:31 -05:00
Pujit Mehrotra
1033e76576 fix: add background style reset, apply to button:hover as well 2025-11-17 15:14:31 -05:00
Pujit Mehrotra
cbbb45e05f feat: bulk toggle auto-start 2025-11-17 15:14:29 -05:00
Pujit Mehrotra
73daa881e1 feat: container start & stop order 2025-11-17 15:14:15 -05:00
Pujit Mehrotra
1258e7e353 refactor: optimistic column toggle 2025-11-17 15:14:15 -05:00
Pujit Mehrotra
4abbcfc194 fix: optimistic column toggle update 2025-11-17 15:14:15 -05:00