Skip to content

Staging#328

Open
jajaramillo24 wants to merge 18 commits into
masterfrom
staging
Open

Staging#328
jajaramillo24 wants to merge 18 commits into
masterfrom
staging

Conversation

@jajaramillo24
Copy link
Copy Markdown
Collaborator

This pull request standardizes the naming of the "mitigate risk" stage across the codebase, changing it from mitigate_risks to mitigate_risk for consistency in both backend and frontend. It also updates the documentation for the WhatNow content API, clarifies the structure of the Prepare Messages API (V2), and improves Amharic language translations and labels.

Stage naming standardization:

  • Changed all instances of the stage key from mitigate_risks to mitigate_risk in backend models, frontend Vue
    WhatNow/Prepare Messages API documentation improvements:

  • Expanded the docs to clearly distinguish between the V1 (legacy) and V2 (current) WhatNow content APIs, with detailed endpoint tables, query parameters, and explanations of the new V2 message object structure.

  • Updated API endpoint references in the documentation and example code to reflect the new V2 /preparemessages resource and its usage.

Frontend and backend code quality improvements:

  • Improved code formatting and readability, such as spreading array headings over multiple lines and making conditional blocks clearer in constructors.

Localization and translations:

jajaramillo24 and others added 9 commits April 20, 2026 18:23
Rename the stage key `mitigate_risks` to `mitigate_risk` across components and the contentTranslation model to keep stage names consistent (editWhatnow.vue, whatnowContentItem.vue, whatnowSummary.vue, store/models/contentTranslation.js). Also add a guard around GoogleAuth initialization in app.js using optional chaining to avoid errors when a Google client_id is not present. Minor whitespace/CSS newline cleanup in whatnowContentItem.vue/whatnowSummary.vue.
Rename mitigate_risks and guard GoogleAuth init
This reverts commit b7a37ec.
Document the new V2 Prepare Messages API and keep legacy V1 WhatNow docs: add detailed V2 endpoints, query params, stage keys and message object structure; update example responses and switch client calls from the legacy whatnow endpoint to /preparemessages. Rename stage key mitigate_risks -> mitigate_risk in examples and add corresponding i18n keys/extras across many locale files. Update scripts to use Cloudflare polyfill CDN, add devServer/HMR options and disable Laravel Mix notifications in webpack.mix.js, and include dependency updates in yarn.lock.
Add V2 PrepareMessages docs, i18n & build updates
joseganora
joseganora previously approved these changes May 28, 2026
Add full-text searching across users.email and user_profiles (first_name, last_name, organisation) with MATCH...AGAINST scoring, and expose a debounced search box in the users list UI. Changes include: request validation for filters.search; UserRepository.applySearchFilter to compute a search_score, filter results and order by relevance; safer profile ordering subquery to ignore deleted profiles and pick the latest profile; a migration to add MySQL FULLTEXT indexes; Vue list page updates (search input, debounce, styles, lifecycle cleanup); store changes to persist searchFilter and include it in API requests while ignoring stale requests; axios interceptor to properly handle cancelled requests; translation entries added for the search label/placeholder across locales; and a feature test asserting admin list sorting by profile last name. These changes improve search relevance and UX for user listing.
jajaramillo24 and others added 8 commits May 29, 2026 13:16
Add full-text searching across users.email and user_profiles (first_name, last_name, organisation) with MATCH...AGAINST scoring, and expose a debounced search box in the users list UI. Changes include: request validation for filters.search; UserRepository.applySearchFilter to compute a search_score, filter results and order by relevance; safer profile ordering subquery to ignore deleted profiles and pick the latest profile; a migration to add MySQL FULLTEXT indexes; Vue list page updates (search input, debounce, styles, lifecycle cleanup); store changes to persist searchFilter and include it in API requests while ignoring stale requests; axios interceptor to properly handle cancelled requests; translation entries added for the search label/placeholder across locales; and a feature test asserting admin list sorting by profile last name. These changes improve search relevance and UX for user listing.
Add full-text user search and search UI
Add disabled support to selectSociety component and wire it from the users filters. Rework users/list filters layout and styling (new utility classes) and disable inputs while fetching. Replace direct search binding with localSearchFilter + debounce/queueSearchFetch to enforce a 3+ character minimum, avoid overlapping requests (pendingSearchFetch), and debounce fetches. Adjust fetchUsers to honor the search length and to compute/send an exclude_role parameter (and fix admin flag logic). Update store users action to include filters[exclude_role] in the query string.
Improve users filter UX and search handling
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.

2 participants