Two more instances of the same Mantine behaviour, found by searching for overlay components
that take a `disabled` prop rather than by measuring another board.
OverflowBadge (packages/ui) mounted a Popover and a Popover.Dropdown unconditionally - both
when `disablePopover` was set and, more importantly, when nothing overflowed at all, which is
the common case. It is shared UI, used by media-releases, releases, the docker table and the
widget inputs, so the cost repeated per row wherever a list renders it. The rendered markup is
unchanged: a Popover.Target only forwards a ref, so returning the badges directly is
visually identical.
beszel disk-usage mounted a HoverCard per table row with `disabled={filesystems.length === 0}`,
and already fell back to a plain progress bar inside its own target for that case - so for a
system reporting no extra filesystems the entire overlay existed to render nothing. Hoisted
that branch out; the now-unreachable ternary and the dead `disabled` prop went with it.
Measured result of this class of fix, on the calendar which had the worst ratio:
interactive components 171 -> 75 (-56%)
fibers 1195 -> 907 (-24%)
Honest note on the media-releases tooltip fix committed earlier: it measured **zero** on the
test board. Every release there has a description and the option is on, so all 80 tooltips are
legitimately enabled and none are skipped. It only helps boards where descriptions are absent
or the option is off. The mechanism is right; this board simply is not the case it helps.
Also confirmed NOT worth changing: downloads mounts 30 Tooltips but all three per row are
functional (integration name, hover detail, progress), so there is nothing disabled to skip.
Replacing them with native title attributes would change the UX, not just the cost.
* feat: add support for all languages from old homarr
* fix: add mantine-react-table translations, remove arabic language
* refactor: change translations to json for better crowdin support
* fix: issues with loading dayjs and mantine-react-table translations
* chore: add additional translations with variables
* fix: format and deepsource issues
* fix: test failing because of missing coverage exclusions
* fix: format issues
* fix: format issue
* feat: add server settings for default board, default color scheme and default locale
* chore: address pull request feedback
* test: adjust unit tests to match requirements
* fix: deepsource issue
* chore: add deepsource as dependency to translation library
* refactor: restructure language-combobox, adjust default locale for next-intl
* chore: change cookie keys prefix from homarr- to homarr.
* chore(deps): update dependency eslint to v9
* chore: migrate eslint to v9
* fix: dependency issues
* fix: unit tests not working
* chore: disable lint check for Image component that does not work in ci
* fix: lint issue
---------
Co-authored-by: homarr-renovate[bot] <158783068+homarr-renovate[bot]@users.noreply.github.com>
Co-authored-by: Meier Lukas <meierschlumpf@gmail.com>
* WIP On docker integration
* WIP on adding docker support
* WIP on adding docker support
* chore: Add cacheTime parameter to createCacheChannel function
* bugfix: Add node-loader npm dependency for webpack configuration
* revert changes
* chore: Add node-loader npm dependency for webpack configuration
* feat: Add Docker container list to DockerPage
* chore: apply pr suggestions
* fix: fix printing issue using a Date objext
* chore: Update npm dependencies
* feat: Create DockerTable component for displaying Docker container list
* feat: Refactor DockerPage to use DockerTable component
* feat: Refactor DockerPage to use DockerTable component
* feat: Add useTimeAgo hook for displaying relative timestamps
* feat: Add hooks module to common package
* refactor: Update DockerTable component
Include container actions and state badges
* feat: add information about instance for docker containers
* feat: Add OverflowBadge component for displaying overflowed data
* feat: Refactor DockerSingleton to use host and instance properties
This commit refactors the DockerSingleton class in the `docker.ts` file to use the `host` and `instance` properties instead of the previous `key` and `remoteApi` properties. This change improves clarity and consistency in the codebase.
* feat: Add OverflowBadge component for displaying overflowed data
* feat: Improve DockerTable component with Avatar and Name column
This commit enhances the DockerTable component in the `DockerTable.tsx` file by adding an Avatar and Name column. The Avatar column displays an icon based on the Docker container's image, while the Name column shows the container's name. This improvement provides better visual representation and identification of the containers in the table.
* feat: Enhance DockerTable component with Avatar and Name columns
* refactor: improve docker table and icon resolution
* chore: address pull request feedback
* fix: format issues
* chore: add missing translations
* refactor: remove black background
---------
Co-authored-by: Meier Lukas <meierschlumpf@gmail.com>
* feat: add custom css for board and custom classes in advanced options for items
* chore: add mysql migration
* fix: test not working
* fix: format issues
* fix: typecheck issue
* fix: build issue
* chore: add missing translations
* fix: merge issues related to migrations
* fix: format issues
* fix: merge issue with migration
* fix: format issue
* wip: improve user preferences
* wip: fix translations and add user danger zone
* feat: add user delete button to danger zone
* fix: test not working
* refactor: add access checks for user edit page, improve not found behaviour, change user preference link in avatar menu to correct link
* fix: remove invalid bg for container
* chore: address pull request feedback
* feat: add user groups
* wip: add unit tests
* wip: add more tests and normalized name for creation and update
* test: add unit tests for group router
* fix: type issues, missing mysql schema, rename column creator_id to owner_id
* fix: lint and format issues
* fix: deepsource issues
* fix: forgot to add log message
* fix: build not working
* chore: address pull request feedback
* feat: add mysql migration and fix merge conflicts
* fix: format issue and test issue
* refactor: improve user feedback for general board settings section
* wip: add board settings for background and colors, move danger zone to own file, refactor code
* feat: add shade selector
* feat: add slider for opacity
* fix: issue with invalid hex values for color preview
* refactor: add shared mutation hook for saving partial board settings with invalidate query
* fix: add cleanup for not applied changes to logo and page title
* feat: add layout settings
* feat: add empty custom css section to board settings
* refactor: improve layout of board logo on mobile
* feat: add theme provider for board colors
* refactor: add auto contrast for better contrast of buttons with low primary shade
* feat: add background for boards
* feat: add opacity for boards
* feat: add rename board
* feat: add visibility and delete of board settings
* fix: issue that wrong data is updated with update board method
* refactor: improve danger zone button placement for mobile
* fix: board not revalidated when already in boards layout
* refactor: improve board color preview
* refactor: change save button color to teal, add placeholders for general board settings
* chore: update initial migration
* refactor: remove unnecessary div
* chore: address pull request feedback
* fix: ci issues
* fix: deepsource issues
* chore: address pull request feedback
* fix: formatting issue
* chore: address pull request feedback