Skip to content

RATY-357 stuck Dependabot workflows#1378

Open
mikkojamG wants to merge 13 commits into
mainfrom
fix/RATY-357-stuck-dependabot-workflows
Open

RATY-357 stuck Dependabot workflows#1378
mikkojamG wants to merge 13 commits into
mainfrom
fix/RATY-357-stuck-dependabot-workflows

Conversation

@mikkojamG

@mikkojamG mikkojamG commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

Solves multiple dependencies that are currently breaking Dependabot update workflows.

Summary by CodeRabbit

  • Bug Fixes
    • Improved reliability across search, map interactions, and focus/error handling by cleaning up exception and guard logic.
    • Adjusted routing and service-worker update checks to be more robust in edge cases.
  • Refactor
    • Simplified component APIs and render paths for cleaner UI composition.
  • Chores
    • Updated linting configuration and tooling scripts.
    • Bumped and pinned several dependencies for a more consistent development setup.

@mikkojamG mikkojamG requested a review from a team as a code owner July 7, 2026 08:17
@coderabbitai

coderabbitai Bot commented Jul 7, 2026

Copy link
Copy Markdown

Review Change Stack

Warning

Review limit reached

@mikkojamG, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 37 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: fe4781db-a714-40d0-8339-8781ff94d013

📥 Commits

Reviewing files that changed from the base of the PR and between ccb972b and 14590f8.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (6)
  • eslint.config.mjs
  • package.json
  • pnpm-workspace.yaml
  • src/components/DescriptionText/DescriptionText.js
  • src/components/SearchBar/components/CloseSuggestionButton.js
  • src/views/MapView/components/MarkerCluster/MarkerCluster.js
📝 Walkthrough

Walkthrough

This PR migrates ESLint to a flat config, updates lint-related package and workspace settings, and removes legacy lint suppressions. It also includes several small component, view, redux, utility, and server code adjustments tied to the linting update.

Changes

ESLint Migration and Codebase Cleanup

Layer / File(s) Summary
Flat config and tooling
eslint.config.mjs, package.json, pnpm-workspace.yaml, server/ieMiddleware.js, src/testUtils.js
Adds the flat ESLint config, updates lint scripts and devDependencies, and adjusts pnpm workspace settings and related lint tooling references.
Component and route refactors
src/components/Dialog/LinkSettingsDialog/*, src/components/ListItems/ResultItem/ResultItem.js, src/components/SettingsComponent/SettingsComponent.js, src/components/DesktopComponent/*, src/components/MobileComponent/*, src/routes/index.js, src/views/EmbedderView/..., src/redux/actions/*, src/utils/unitHelper.js, src/views/MapView/components/*, src/views/PrintView/PrintView.js, src/serviceWorker.js
Removes Redux wiring from LinkSettingsDialog, drops/adjusts props in components, simplifies render and route code, and updates a few runtime guards and helper calls.
Lint suppressions and minor logic edits
src/components/*, src/views/*, src/redux/*, src/utils/*, src/i18n/*, src/layouts/*, server/*
Removes many file-level and inline ESLint suppressions, drops unused catch parameters, and applies a few small equivalent condition or string-construction changes.

Estimated code review effort: 3 (Moderate) | ~25 minutes

Possibly related PRs

Suggested reviewers: Riippi

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title matches the main goal: fixing stuck Dependabot workflows with dependency-related changes.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/RATY-357-stuck-dependabot-workflows

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai 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.

Actionable comments posted: 4

🧹 Nitpick comments (2)
eslint.config.mjs (1)

28-30: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Hardcoded React version will drift from the actual dependency.

react: { version: '19.0.0' } is hardcoded, but src/testUtils.js's library context indicates the installed React version is already 19.2.7. eslint-plugin-react supports "version": "detect" to auto-detect the installed version, avoiding staleness as React gets bumped.

♻️ Proposed fix
     settings: {
-      react: { version: '19.0.0' },
+      react: { version: 'detect' },
     },
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@eslint.config.mjs` around lines 28 - 30, The React version in the ESLint
settings is hardcoded and can drift from the installed dependency. Update the
react setting in eslint.config.mjs to use version detection instead of a fixed
string, so eslint-plugin-react stays aligned automatically as React changes. Use
the existing settings block near the react configuration to replace the literal
version with the plugin’s auto-detect option.
src/views/MapView/components/TransitStops/TransitStopInfo/TransitStopInfo.js (1)

146-155: 🎯 Functional Correctness | 🔵 Trivial | ⚡ Quick win

Use a stable trip identifier for this departure key.
shortName-serviceDay-realtimeDeparture can still collide when two same-route departures share the same second, which causes React key warnings and unstable reconciliation. If a unique trip id is available from the API, add it to the query and use that here instead.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@src/views/MapView/components/TransitStops/TransitStopInfo/TransitStopInfo.js`
around lines 146 - 155, The departure key in TransitStopInfo should not rely on
route shortName plus serviceDay and realtimeDeparture because it can still
collide for same-route departures. Update the departure data query in
TransitStopInfo and the mapping logic that builds each DepartureItemContainer
key to use a stable unique trip identifier from the API when available, keeping
the existing route/time fields only as fallback if needed.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@eslint.config.mjs`:
- Around line 63-82: The server config block currently only sets parser/globals
for server/**/*.js and leaves those files without any lint rules, so they are
effectively unlinted. Update the eslint.config.mjs flat config so the server
block for server/**/*.js also inherits the shared rule set (or otherwise defines
the intended plugins/rules) used by the src/**/*.{js,jsx} config, while keeping
the Node globals and build-time constants. Use the existing config objects in
eslint.config.mjs to ensure server files are actually linted when running the
lint script.
- Around line 38-41: The react-hooks config is being read from the wrong preset
path in eslint.config.mjs. Update the spread on reactHooksPlugin to use the flat
config namespace for the recommended-latest preset, matching how the other flat
configs are referenced, and keep the surrounding rules block unchanged.

In `@package.json`:
- Around line 108-123: The dependency list in package.json still pins
eslint-plugin-react and eslint-plugin-react-hooks to versions that only support
ESLint 9, which conflicts with the ESLint 10 upgrade. Update the package.json
entries for eslint-plugin-react and eslint-plugin-react-hooks to ESLint
10-compatible releases, and keep the rest of the linting toolchain aligned so
installation does not produce peer-dependency warnings or errors.

In `@src/routes/index.js`:
- Around line 299-308: The Division route is still using the old Route render
prop, which is ignored in react-router-dom v6 and prevents
/division/:city?/:area? from rendering. Update the Route in the index routes
setup to use the v6 element prop instead, and move the PageHandler,
DivisionView, and HomeView composition into the element value so the route
matches and renders correctly.

---

Nitpick comments:
In `@eslint.config.mjs`:
- Around line 28-30: The React version in the ESLint settings is hardcoded and
can drift from the installed dependency. Update the react setting in
eslint.config.mjs to use version detection instead of a fixed string, so
eslint-plugin-react stays aligned automatically as React changes. Use the
existing settings block near the react configuration to replace the literal
version with the plugin’s auto-detect option.

In
`@src/views/MapView/components/TransitStops/TransitStopInfo/TransitStopInfo.js`:
- Around line 146-155: The departure key in TransitStopInfo should not rely on
route shortName plus serviceDay and realtimeDeparture because it can still
collide for same-route departures. Update the departure data query in
TransitStopInfo and the mapping logic that builds each DepartureItemContainer
key to use a stable unique trip identifier from the API when available, keeping
the existing route/time fields only as fallback if needed.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 02c247e1-94a5-42b3-b634-4180d3916a22

📥 Commits

Reviewing files that changed from the base of the PR and between 1cc6c32 and a9d6aa9.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (91)
  • .eslintrc.json
  • eslint.config.mjs
  • package.json
  • pnpm-workspace.yaml
  • server/.eslintrc
  • src/App.js
  • src/components/BoldedText/BoldedText.js
  • src/components/CloseButton/CloseButton.js
  • src/components/DataFetchers/helpers.js
  • src/components/DesktopComponent/DesktopComponent.js
  • src/components/Dialog/LinkSettingsDialog/LinkSettingsDialogComponent.js
  • src/components/Dialog/LinkSettingsDialog/index.js
  • src/components/ErrorBoundary/ErrorBoundary.js
  • src/components/ListItems/EventItem/EventItem.js
  • src/components/ListItems/ResultItem/ResultItem.js
  • src/components/ListItems/UnitItem/UnitItem.js
  • src/components/Lists/PaginatedList/PaginatedList.js
  • src/components/Lists/ResultList/ResultList.js
  • src/components/Matomo/MatomoTracker.js
  • src/components/Matomo/__tests__/MatomoTracker.test.js
  • src/components/Matomo/constants.js
  • src/components/Matomo/hooks/__tests__/useMatomo.test.js
  • src/components/Matomo/matomo-context.js
  • src/components/MobileComponent/MobileComponent.js
  • src/components/Navigator/Navigator.js
  • src/components/PaginationComponent/PaginationComponent.js
  • src/components/ReadSpeakerButton/ReadSpeakerButton.js
  • src/components/ResultOrderer/ResultOrderer.js
  • src/components/SearchBar/components/SuggestionBox/SuggestionBox.js
  • src/components/SettingsComponent/SettingsComponent.js
  • src/components/SettingsDropdowns/SettingsDropdowns.js
  • src/components/TabLists/TabLists.js
  • src/i18n/en.js
  • src/i18n/fi.js
  • src/i18n/sv.js
  • src/layouts/DefaultLayout.js
  • src/layouts/components/PageHandler/pageDescriptions.js
  • src/layouts/components/ViewTitle/ViewTitle.js
  • src/redux/actions/breadcrumb.js
  • src/redux/actions/search.js
  • src/redux/actions/selectedUnitReservations.js
  • src/redux/actions/services.js
  • src/redux/selectors/statisticalDistrict.js
  • src/routes/index.js
  • src/serviceWorker.js
  • src/setupTests.js
  • src/testUtils.js
  • src/utils/address.js
  • src/utils/fetch/fetch.js
  • src/utils/index.js
  • src/utils/localStorage.js
  • src/utils/mapUtility.js
  • src/utils/newFetch/HTTPClient.js
  • src/utils/orderUnits.js
  • src/utils/tracking.js
  • src/utils/unitHelper.js
  • src/utils/units.js
  • src/views/AddressView/AddressView.js
  • src/views/AddressView/utils/fetchAdministrativeDistricts.js
  • src/views/AreaView/AreaView.js
  • src/views/AreaView/components/ParkingAreaList/ParkingAreaList.js
  • src/views/AreaView/components/SideBar/SideBar.js
  • src/views/AreaView/components/StatisticalDistrictList/StatisticalDistrictListComponent.js
  • src/views/EmbedderView/components/IFramePreview.js
  • src/views/EmbedderView/utils/url.js
  • src/views/EventDetailView/EventDetailView.js
  • src/views/FeedbackView/FeedbackView.js
  • src/views/InfoView/InfoView.js
  • src/views/MapView/MapView.js
  • src/views/MapView/components/AddressMarker/AddressMarker.js
  • src/views/MapView/components/AddressPopup/AddressPopup.js
  • src/views/MapView/components/Districts/ParkingAreas.js
  • src/views/MapView/components/ElevationControl/ElevationControl.js
  • src/views/MapView/components/MarkerCluster/MarkerCluster.js
  • src/views/MapView/components/TransitStops/TransitStopInfo/TransitStopInfo.js
  • src/views/MapView/components/TransitStops/TransitStops.js
  • src/views/MapView/components/UnitGeometry/UnitGeometry.js
  • src/views/MapView/components/UserMarker/UserMarker.js
  • src/views/MapView/config/mapConfig.js
  • src/views/MapView/utils/createMap.js
  • src/views/MapView/utils/drawIcon.js
  • src/views/MapView/utils/mapActions.js
  • src/views/MapView/utils/swapCoordinates.js
  • src/views/MapView/utils/transitFetch.js
  • src/views/PrintView/PrintView.js
  • src/views/SearchView/SearchView.js
  • src/views/ServiceTreeView/ServiceTreeView.js
  • src/views/ServiceView/ServiceView.js
  • src/views/UnitView/UnitView.js
  • src/views/UnitView/components/ContactInfo/ContactInfo.js
  • src/views/UnitView/components/ExtendedData/ExtendedData.js
💤 Files with no reviewable changes (45)
  • src/components/DataFetchers/helpers.js
  • src/utils/units.js
  • src/components/ListItems/EventItem/EventItem.js
  • src/components/Matomo/matomo-context.js
  • src/components/Matomo/constants.js
  • src/layouts/components/PageHandler/pageDescriptions.js
  • src/views/AddressView/utils/fetchAdministrativeDistricts.js
  • src/components/ListItems/UnitItem/UnitItem.js
  • src/views/InfoView/InfoView.js
  • src/views/UnitView/components/ContactInfo/ContactInfo.js
  • src/views/AreaView/AreaView.js
  • src/components/SettingsDropdowns/SettingsDropdowns.js
  • .eslintrc.json
  • src/components/Lists/ResultList/ResultList.js
  • src/views/MapView/components/AddressMarker/AddressMarker.js
  • src/utils/tracking.js
  • src/i18n/sv.js
  • src/components/PaginationComponent/PaginationComponent.js
  • src/views/ServiceTreeView/ServiceTreeView.js
  • src/views/MapView/components/TransitStops/TransitStops.js
  • src/components/Matomo/hooks/tests/useMatomo.test.js
  • src/views/ServiceView/ServiceView.js
  • src/views/MapView/MapView.js
  • src/components/CloseButton/CloseButton.js
  • src/components/Navigator/Navigator.js
  • src/components/BoldedText/BoldedText.js
  • src/utils/address.js
  • src/views/UnitView/UnitView.js
  • src/App.js
  • src/views/MapView/utils/mapActions.js
  • server/.eslintrc
  • src/i18n/fi.js
  • src/views/MapView/utils/createMap.js
  • src/utils/orderUnits.js
  • src/views/EventDetailView/EventDetailView.js
  • src/views/MapView/utils/swapCoordinates.js
  • src/i18n/en.js
  • src/components/Matomo/MatomoTracker.js
  • src/views/AreaView/components/SideBar/SideBar.js
  • src/views/AddressView/AddressView.js
  • src/views/MapView/config/mapConfig.js
  • src/components/ListItems/ResultItem/ResultItem.js
  • src/views/MapView/components/UserMarker/UserMarker.js
  • src/components/Matomo/tests/MatomoTracker.test.js
  • src/components/ResultOrderer/ResultOrderer.js

Comment thread eslint.config.mjs Outdated
Comment thread eslint.config.mjs
Comment thread package.json
Comment thread src/routes/index.js
Comment thread src/views/EmbedderView/utils/url.js Outdated
@mikkojamG mikkojamG force-pushed the fix/RATY-357-stuck-dependabot-workflows branch from 622a2d0 to d9b3deb Compare July 7, 2026 09:16
Comment thread src/components/DescriptionText/DescriptionText.js
@sonarqubecloud

sonarqubecloud Bot commented Jul 8, 2026

Copy link
Copy Markdown

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.

1 participant