Commit Graph

345 Commits

Author SHA1 Message Date
948e9a49a5 Auto-commit local changes before build (2026-02-05 21:39:51) 2026-02-05 21:39:51 +01:00
9388ec4c01 Improve Autotask customer mapping with auto-search
Added automatic search for similar company names when opening unmapped
customers in the edit modal. This speeds up the mapping process by
eliminating manual searches.

Changes:
- Clear search box when opening customer edit modal
- Auto-populate search with customer name for unmapped customers
- Automatically display matching Autotask companies as suggestions
- Refactor search logic into reusable performAutotaskSearch() function

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-05 21:39:02 +01:00
282d34af2d Auto-commit local changes before build (2026-02-05 21:27:50) 2026-02-05 21:27:50 +01:00
873b22f225 Clear search box when opening Autotask Link existing modal
Fixed issue where the search input retained previous search text when
reopening the Link existing modal. The search box now always starts
empty for a better user experience.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-05 21:26:14 +01:00
d2d4888caf Auto-commit local changes before build (2026-02-05 17:16:12) 2026-02-05 17:16:12 +01:00
077e1fb176 Add cross-company ticket search for overarching issues
The "Link existing ticket" dialog now searches across all companies when
a ticket number is entered, enabling linking of overarching issues.

Changes:
- Added query_tickets_by_number() to Autotask client
- Route searches both customer's company and cross-company when ticket number detected
- Results are combined and deduplicated (customer tickets shown first)
- Enables linking multi-company infrastructure issues to any job

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-05 17:01:43 +01:00
e6847b8ec3 Auto-commit local changes before build (2026-02-05 16:47:19) 2026-02-05 16:47:19 +01:00
cc76068206 Make Autotask resolve messages dynamic based on time entries
The resolve confirmation dialog and ticket notes now correctly indicate
whether the ticket will be closed or remain open based on time entry check.

Changes:
- Frontend: Updated confirmation message to explain conditional closure
- Backend: Check time entries before creating note
- Dynamic message in ticket note:
  * "ticket will be closed in Autotask" (no time entries)
  * "ticket remains open in Autotask due to existing time entries" (has time entries)
- Updated route docstring to reflect conditional status behaviour

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-05 16:46:43 +01:00
237ae4f431 Auto-commit local changes before build (2026-02-05 16:35:56) 2026-02-05 16:35:56 +01:00
9b905fa24f Add conditional ticket status update based on time entries
Implements API contract section 9: ticket resolution workflow with
conditional status updates based on time entry existence.

- Added query_time_entries_by_ticket_id() for POST /TimeEntries/query
- update_ticket_resolution_safe() now checks time entries:
  * No time entries: sets status to 5 (Complete)
  * Has time entries: keeps current status (ticket remains open)

This ensures tickets are only auto-closed when appropriate per the
validated Autotask API workflow.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-05 16:35:28 +01:00
88421badbd Auto-commit local changes before build (2026-02-05 16:30:22) 2026-02-05 16:30:22 +01:00
8a733a356b Fix Autotask resolution to preserve exact field values from GET response
The issueType, subIssueType, and source fields must be sent in the PUT
payload with their exact values from GET response, including null. This
fixes HTTP 500 error where Autotask rejected picklist value 0.

Changed _pick function to return (found, value) tuple to distinguish
between "field missing" and "field is null".

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-05 16:29:54 +01:00
8baf4e8ff1 Auto-commit local changes before build (2026-02-05 14:45:36) 2026-02-05 14:45:36 +01:00
a9a60e3315 Restore Autotask PSA integration
Restored from branch v20260203-13-autotask-resolution-item-wrapper with
the following functionality:

- Autotask REST API client with support for tickets, notes, companies,
  and reference data (queues, sources, priorities, statuses)
- Safe ticket updates preserving stabilizing fields per API contract
- Database models for Autotask settings, customer mapping, and ticket linkage
- Settings UI for Autotask configuration with connection test
- Run Checks integration for ticket creation
- Customers page with Autotask company mapping
- Ticket linking during mail import

Also preserved the require_daily_dashboard_visit setting from the
current branch.

Added docs/autotask_rest_api.md with validated API contract from Postman tests.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-05 14:43:44 +01:00
4b66ec1c6a Auto-commit local changes before build (2026-02-04 22:03:24) 2026-02-04 22:03:24 +01:00
abf8b89d7c Add setting to enable/disable daily dashboard redirect
Added a new setting in Settings > General > Navigation that allows
administrators to control whether users are redirected to the dashboard
on their first page view each day.

Changes:
- Added require_daily_dashboard_visit column to SystemSettings model
- Added migration for the new column (default: FALSE)
- Modified before_request hook to check the setting before redirecting
- Added Navigation card with toggle in Settings General page
- Restored changelog-claude.md with performance and feature updates

Default is OFF - users can navigate directly to any page without
being forced to visit the dashboard first.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-04 22:03:11 +01:00
ae66457415 Merge pull request 'v20260113-08-vspc-object-linking-normalize' (#114) from v20260113-08-vspc-object-linking-normalize into main
Reviewed-on: #114
2026-01-13 16:45:59 +01:00
d54b5c1e5d Merge pull request 'Auto-commit local changes before build (2026-01-13 15:07:59)' (#113) from v20260113-08-vspc-object-linking into main
Reviewed-on: #113
2026-01-13 16:45:38 +01:00
e3d109ed24 Merge pull request 'Auto-commit local changes before build (2026-01-13 14:27:23)' (#112) from v20260113-07-job-delete-fix into main
Reviewed-on: #112
2026-01-13 16:45:17 +01:00
d2f7618772 Merge pull request 'Auto-commit local changes before build (2026-01-13 14:12:58)' (#111) from v20260113-06-overrides-error-match-modes into main
Reviewed-on: #111
2026-01-13 16:44:56 +01:00
c57c58cc3d Release v0.1.20 on branch v20260113-08-vspc-object-linking-normalize (bump type 1) 2026-01-13 16:43:25 +01:00
beda8cc0f9 Auto-commit local changes before build (2026-01-13 16:43:00) 2026-01-13 16:43:00 +01:00
fd0051cb29 Auto-commit local changes before build (2026-01-13 16:30:32) 2026-01-13 16:30:32 +01:00
934a495867 Auto-commit local changes before build (2026-01-13 15:07:59) 2026-01-13 15:07:59 +01:00
a5a1cd2743 Auto-commit local changes before build (2026-01-13 14:27:23) 2026-01-13 14:27:23 +01:00
56415eae59 Auto-commit local changes before build (2026-01-13 14:12:58) 2026-01-13 14:12:59 +01:00
a0d6b1e0d4 Merge pull request 'v20260113-05-reporter-menu-restrict' (#110) from v20260113-05-reporter-menu-restrict into main
Reviewed-on: #110
2026-01-13 13:20:22 +01:00
3a31b6c5d2 Merge pull request 'Auto-commit local changes before build (2026-01-13 12:52:53)' (#109) from v20260113-04-edge-initial-setup-users-exist into main
Reviewed-on: #109
2026-01-13 13:20:07 +01:00
506e1f56cd Merge pull request 'Auto-commit local changes before build (2026-01-13 12:41:58)' (#108) from v20260113-03-runchecks-overall-remark into main
Reviewed-on: #108
2026-01-13 13:19:45 +01:00
f3d4145056 Auto-commit local changes before build (2026-01-13 13:17:22) 2026-01-13 13:17:22 +01:00
6c0dcf5a2d Auto-commit local changes before build (2026-01-13 13:15:30) 2026-01-13 13:15:30 +01:00
0c66ced915 Auto-commit local changes before build (2026-01-13 12:52:53) 2026-01-13 12:52:53 +01:00
a35ae4bf7a Auto-commit local changes before build (2026-01-13 12:41:58) 2026-01-13 12:41:58 +01:00
17809e40a5 Auto-commit local changes before build (2026-01-13 11:51:15) 2026-01-13 11:51:15 +01:00
3b5204a970 Auto-commit local changes before build (2026-01-13 11:49:25) 2026-01-13 11:49:25 +01:00
0fa98a5955 Merge pull request 'Auto-commit local changes before build (2026-01-13 10:43:31)' (#107) from v20260113-02-edge-mail-lightmode into main
Reviewed-on: #107
2026-01-13 11:48:16 +01:00
25ba0f5cff Merge branch 'main' into v20260113-02-edge-mail-lightmode 2026-01-13 11:48:09 +01:00
b17608c3c5 Merge pull request 'Auto-commit local changes before build (2026-01-13 10:21:27)' (#106) from v20260113-01-changelog-markdown-render into main
Reviewed-on: #106
2026-01-13 11:47:54 +01:00
2b57800604 Merge branch 'main' into v20260113-01-changelog-markdown-render 2026-01-13 11:47:45 +01:00
d39398113e Merge pull request 'Auto-commit local changes before build (2026-01-12 16:55:54)' (#105) from v20260112-18-changelog-from-gitea into main
Reviewed-on: #105
2026-01-13 11:47:33 +01:00
3bd53bbaca Merge pull request 'Auto-commit local changes before build (2026-01-12 15:53:35)' (#104) from v20260112-17-synology-abb-warning-recognize-objects into main
Reviewed-on: #104
2026-01-13 11:47:17 +01:00
47058d2b27 Merge pull request 'Auto-commit local changes before build (2026-01-12 15:39:19)' (#103) from v20260112-16-runchecks-popup-objects-no-overlap into main
Reviewed-on: #103
2026-01-13 11:47:00 +01:00
3cd491eaf6 Merge pull request 'Auto-commit local changes before build (2026-01-12 15:04:09)' (#102) from v20260112-15-vspc-scroll-partial-approve-objects into main
Reviewed-on: #102
2026-01-13 11:46:44 +01:00
ba8693d512 Merge pull request 'Auto-commit local changes before build (2026-01-12 14:28:50)' (#101) from v20260112-14-vspc-company-mapping-require-all into main
Reviewed-on: #101
2026-01-13 11:46:14 +01:00
90317c804b Merge pull request 'Auto-commit local changes before build (2026-01-12 14:07:33)' (#100) from v20260112-13-vspc-company-mapping-popup-ui into main
Reviewed-on: #100
2026-01-13 11:45:56 +01:00
066c45ab9b Merge pull request 'Auto-commit local changes before build (2026-01-12 13:58:49)' (#99) from v20260112-12-vspc-company-mapping-popup-visible into main
Reviewed-on: #99
2026-01-13 11:43:59 +01:00
09e19a72d0 Merge pull request 'Auto-commit local changes before build (2026-01-12 13:46:37)' (#98) from v20260112-11-show-vspc-company-mapping-popup into main
Reviewed-on: #98
2026-01-13 11:43:43 +01:00
7c204fb8dd Merge pull request 'Auto-commit local changes before build (2026-01-12 13:38:55)' (#97) from v20260112-10-fix-vspc-approve-endpoint-duplicate into main
Reviewed-on: #97
2026-01-13 11:43:28 +01:00
fd175200db Merge pull request 'Auto-commit local changes before build (2026-01-12 13:32:27)' (#96) from v20260112-09-veeam-vspc-company-mapping-popup into main
Reviewed-on: #96
2026-01-13 11:42:47 +01:00
55e159d1fd Merge pull request 'Auto-commit local changes before build (2026-01-12 12:52:12)' (#95) from v20260112-08-fix-veeam-vspc-parser-syntaxerror into main
Reviewed-on: #95
2026-01-13 11:42:30 +01:00