Skip to content

Add admin panel enhancements according to #3283#618

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

Add admin panel enhancements according to #3283#618
xkello wants to merge 3 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 25925095565

Coverage increased (+0.1%) to 93.248%

Details

  • Coverage increased (+0.1%) from the base build.
  • Patch coverage: No coverable lines changed in this PR.
  • 175 coverage regressions across 13 files.

Uncovered Changes

No uncovered changes found.

Coverage Regressions

175 previously-covered lines in 13 files lost coverage.

Top 10 Files by Coverage Loss Lines Losing Coverage Coverage
server/mergin/sync/models.py 45 93.94%
server/mergin/sync/public_api_controller.py 37 92.94%
server/mergin/sync/utils.py 33 85.88%
server/mergin/sync/public_api_v2_controller.py 28 89.35%
server/mergin/tests/test_project_controller.py 9 98.89%
server/mergin/sync/storages/disk.py 5 80.48%
server/mergin/auth/controller.py 3 92.2%
server/mergin/auth/models.py 3 98.13%
server/mergin/sync/permissions.py 3 93.42%
server/mergin/sync/tasks.py 3 91.0%

Coverage Stats

Coverage Status
Relevant Lines: 9805
Covered Lines: 9143
Line Coverage: 93.25%
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?

const query: Record<string, string> = {}
if (search.value) query.q = search.value
if (options.page > 1) query.page = String(options.page)
if (options.itemsPerPage !== 20)
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.

some hardcoded constant? I think we can add it to options too with default 20

<PColumn field="active" header="Active">
<template #body="{ data }">
<router-link :to="accountRoute(data)" class="dt-row-link">
<i v-if="data.active" class="ti ti-check" />
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.

Just note from some users. We could add here just text Active / Inactive as icon is not copy able.

@sort="onSort"
data-cy="accounts-table"
>
<template v-for="header in headers" :key="header.field">
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.

This means also for other tables. We could probably live with this config json as we can then extend it and have one default column when slot is not used.

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