Skip to content

Add admin panel enhancements according to #3283#618

Open
xkello wants to merge 5 commits into
developfrom
implement-3283
Open

Add admin panel enhancements according to #3283#618
xkello wants to merge 5 commits into
developfrom
implement-3283

Conversation

@xkello
Copy link
Copy Markdown
Contributor

@xkello xkello commented May 4, 2026

Add functionality according to https://github.com/MerginMaps/server-private/issues/3283.

  1. Users query search now persists when going to profile and back to search.
  2. Table is not updated every input now.
  3. Users are now able to open new tab/window from the result table

@xkello xkello requested review from MarcelGeo, harminius and varmar05 May 4, 2026 15:05
@coveralls
Copy link
Copy Markdown

coveralls commented May 4, 2026

Coverage Report for CI Build 26363486897

Coverage remained the same at 93.215%

Details

  • Coverage remained the same as the base build.
  • Patch coverage: No coverable lines changed in this PR.
  • No coverage regressions found.

Uncovered Changes

No uncovered changes found.

Coverage Regressions

No coverage regressions found.


Coverage Stats

Coverage Status
Relevant Lines: 9830
Covered Lines: 9163
Line Coverage: 93.21%
Coverage Strength: 0.93 hits per line

💛 - Coveralls

* Call setFetchFn() immediately after setup to register the table-specific
* fetch action; all event handlers will invoke it automatically.
*/
export function useDataTableSearch(opts: DataTableSearchOptions = {}) {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

It's not better to add here also watcher for route query params?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I think it would cause an infinite loop: doFetch -> updateQuery -> router.replace -> route.query changes -> watcher -> doFetch... A guard flag could break it but it's unnecessary - the component remounts on back navigation so created() already handles state restore. A watcher would only add value in my opinion if the URL could change externally while the component is mounted which isn't the case here.

Comment thread web-app/packages/lib/src/common/composables/useDataTableSearch.ts Outdated
Comment thread web-app/packages/admin-lib/src/modules/admin/components/AccountsTable.vue Outdated
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