Skip to content

ERA-14102: Remove the community_input_admin_enabled preview feature from das-web-react - #1744

Merged
luixlive merged 6 commits into
developfrom
ERA-14102
Oct 1, 2026
Merged

luixlive merged 6 commits into
developfrom
ERA-14102

Conversation

@luixlive

@luixlive luixlive commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

What does this PR do?

The community_input_admin_enabled preview feature is now on for every site, so this PR removes it from the web client. The review state and its options now always show, with no flag in front of them:

  • Event state menu in the Event Overview header (StatusSelect): the options always include Send to review, in the order Active, Send to review, Resolve for an active event.
  • Event Overview footer: an active event always offers Save and review next to Save and resolve.
  • Event row actions in the Events Feed: the kebab menu always offers Send to review for an active or legacy new event.
  • EditableItem.Footer: the review dropdown item is no longer behind the flag.
  • Event filter: no code change. It already offered the review state, so only its tests changed.

PREVIEW_FEATURES.COMMUNITY_INPUT_ADMIN is removed from src/constants. The flag's hook reads, the branches for the flag-off case, and the "remove this flag" comments are gone too. events_vector_tiles and patrol_schemas are unchanged.

Tests

  • Test stores no longer set the flag. Tests that only rendered a Redux Provider for the flag read (Footer, StatusSelect) now render without one.
  • Tests for the flag-off behavior are deleted. Tests that covered the flag-on case are merged into the defaults and renamed. For example, "offers to resolve or send to review an active event" replaces the flag-off test and its separate flag-on version.
  • Header tests now expect Send to review in the default menu, including the keyboard navigation order.
  • ducks/system-config tests use events_vector_tiles as their sample preview feature.

Dependency updates

A separate commit (c79b49c7c) includes routine patch-level upgrades:

Package From To
Yarn (packageManager, .yarnrc.yml, .yarn/releases) 4.18.0 4.18.1
dompurify 3.4.15 3.4.16
react-window 2.3.2 2.3.3
socket.io-client 4.8.3 4.8.4
dotenv (dev) 18.0.3 18.0.4
vite (dev) 8.3.0 8.3.1

In yarn.lock, Vite's transitive rolldown and @rolldown/binding-* packages move from 1.2.9 to 1.2.11, and @oxc-project/types from 0.150.0 to 0.151.0.

The same commit also fixes a test in useFetchPatrolsFeed. The check that loadingPatrolsFeed goes back to false now runs inside the waitFor that waits for the fetch actions. Before, it ran right after the waitFor, before the hook's state update had been applied.

Relevant link(s)

Notes

  • This is based on ERA-14071, not develop, so the diff only covers this ticket's changes.
  • EditableItem.Footer isn't rendered anywhere. It was already unused before this PR, so this PR only removes the flag from it. Deleting the component is left for a separate change.
  • To check the change on any site: open an active event. Its state menu, save options and feed row menu should all offer to send it to review.

🤖 Generated with Claude Code

- Upgraded Yarn from version 4.18.0 to 4.18.1 for improved performance and features.
- Updated `dompurify` to version 3.4.16, `react-window` to version 2.3.3, `socket.io-client` to version 4.8.4, `dotenv` to version 18.0.4, and `vite` to version 8.3.1 for better functionality and security.
- Updated `@oxc-project/types` and `@rolldown/binding-*` packages to version 0.151.0 and 1.2.11 respectively, ensuring compatibility with the latest changes.
- Adjusted tests in `useFetchPatrolsFeed` to reflect the updated loading state handling.
- Eliminated the use of the community input feature flag across multiple components, including Footer, StatusSelect, and Actions, simplifying the logic for event state transitions.
- Updated tests to reflect the removal of community input checks, ensuring they accurately represent the current functionality.
- Cleaned up constants by removing the COMMUNITY_INPUT_ADMIN feature flag, streamlining the codebase.
claude[bot]

This comment was marked as spam.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟡 Changes recommended

Unrelated dependency, toolchain, and patrol-test changes should be separated from the feature-flag removal.

Review effort: Balanced
Findings: 1 Medium severity · 1 Low severity

Open (2)
What changed in this PR

Removes the community_input_admin_enabled preview gate, making review-state actions universally available.

Changes:

  • Ungates “Send to review” across event controls.
  • Updates related tests and configuration fixtures.
  • Also includes unrelated dependency, Yarn, and patrol-test changes.
File Description
yarn.lock Updates dependency resolutions.
src/​SideBar/​useFetchPatrolsFeed/​index.test.js Changes asynchronous assertion timing.
src/​SideBar/​EventsManager/​EventsFeed/​EventRow/​index.test.js Removes obsolete preview configuration.
src/​SideBar/​EventsManager/​EventsFeed/​EventRow/​Actions/​index.test.js Tests always-available review actions.
src/​SideBar/​EventsManager/​EventsFeed/​EventRow/​Actions/​index.js Ungates the review action.
src/​SideBar/​EventsManager/​EventOverview/​index.test.js Removes obsolete preview configuration.
src/​SideBar/​EventsManager/​EventOverview/​Header/​StatusSelect/​index.test.js Removes flag-dependent setup and assertions.
src/​SideBar/​EventsManager/​EventOverview/​Header/​StatusSelect/​index.js Always includes the review state.
src/​SideBar/​EventsManager/​EventOverview/​Header/​index.test.js Updates state-menu expectations.
src/​SideBar/​EventsManager/​EventOverview/​Footer/​index.test.js Tests the universal review save option.
src/​SideBar/​EventsManager/​EventOverview/​Footer/​index.js Ungates “Save and review.”
src/​SideBar/​EventsManager/​EventOverview/​DetailsSection/​index.test.js Removes obsolete preview configuration.
src/​EventFilter/​index.test.js Removes obsolete preview configuration.
src/​EventFilter/​FiltersPopover/​index.test.js Removes obsolete preview configuration.
src/​EditableItem/​Footer.js Ungates the legacy review action.
src/​ducks/​system-config/​index.test.js Replaces the removed flag in fixtures.
src/​constants/​index.js Removes the preview-feature constant.
package.json Upgrades dependencies and Yarn.
.yarnrc.yml Updates the configured Yarn release.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread package.json
Comment thread src/SideBar/useFetchPatrolsFeed/index.test.js
- Revised the README.md to streamline content, removing outdated sections and enhancing clarity for development setup and testing instructions.
- Modified vite.config.mjs to utilize loadEnv for dynamic port configuration based on the environment, improving flexibility in development settings.
Base automatically changed from ERA-14071 to develop October 1, 2026 15:20
- Upgraded several packages including `@auth0/auth0-auth-js` to version 1.16.0, `@csstools/css-calc` to version 3.4.1, and `@rjsf/core` to version 6.11.0 for improved functionality and security.
- Updated `brace-expansion` to version 5.0.12 and `content-type` to version 2.1.0 in the mock API for better compatibility.
- Adjusted checksums and peer dependencies to reflect the latest versions across both lock files.
# Conflicts:
#	src/ducks/system-config/index.test.js
@luixlive
luixlive merged commit d1f5190 into develop Oct 1, 2026
5 checks passed
@luixlive
luixlive deleted the ERA-14102 branch October 1, 2026 22:52
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.

3 participants