diff --git a/CHANGELOG.md b/CHANGELOG.md index 553760acf..48228d926 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -213,6 +213,7 @@ Update from Maintenance > Update — Queue Update hands the job to cron, which u - Maintenance > Starter Content: Clear out unused, beside a pack's counts, archives what you have from the pack that nothing uses yet - a category no ticket, invoice, expense or product has, a tag on nothing, a template nothing was made from, a canned response never put in a reply, a product on no invoice, quote or asset. A window lists them, all ticked, and says how many are in use and stay; Undo puts them back, and Add doesn't make them again. - Tabs that don't fit across the screen go into More at the end of the row, instead of running off the edge out of sight or wrapping onto more lines - a list's views (the tickets list at most screen sizes), a record page's tabs (a contact's, an asset's, a location's), a quick look's, a form's, and the kinds in Admin > Categories and Tags on a phone. The tab you're on always stays out, and More shows a red or amber count when a tab in it needs attention, such as Overdue, Unassigned or a contact's open tickets. +- Linking: Link - along the top of a record's page, on its tabs and in quick looks - opens a list right under it instead of a window. What's linked already is ticked: tick to link, untick to unlink, and it's saved when you click Done or anywhere else, with one message for what changed. It covers documents, files, assets, contacts, licenses, credentials, vendors, services, locations, domains and certificates, a contact's assets and credentials and an asset's credentials, a project's and a service's tickets, a ticket's services and its related tickets. A document's or file's Link lists every kind it can be linked to, in groups. Tickets are no longer added to a project by typing their numbers - tick them in the list (open ones and those closed in the last 90 days), or change the project on the ticket. ### Bug Fixes - Invoices, quotes and recurring invoices: leaving the page in the middle of typing a note asked "Leave page?" - even though the note saves as you go. It now saves on the way out instead. @@ -419,6 +420,7 @@ Update from Maintenance > Update — Queue Update hands the job to cron, which u - `admin/starter_content.php` is rebuilt on the Maintenance page layout (a hero card, then the packs as a `list-group` sharing Get started's `.itflow-gs-pack-icon` and `.itflow-gs-pack-about`, and an At a glance card); `.itflow-starter-pack-cell` is gone. Update and Remove demo data are `confirm-link` buttons in place of `onsubmit` confirms. - Starter content: `starterPackRecords()`, `starterPackHere()`, `starterPackUsed()`, `starterContentUnused()` and `starterClearUnused()` in `admin/post/starter_content_model.php`, `clear_starter_unused` in `admin/post/starter_content.php` (rechecked on post, with an Undo of the archive) and `admin/modals/starter_content/starter_clear.php`. A tag counts as used by any table with a `tag_id` or `*_tag_id` column (read from information_schema) or a seat count, a project template by its tickets' history line, and a category by `categoryUsage()` plus ticket templates, settings, RMM alerts, AI triage and child categories. `starterPickHtml()` takes `$open`; `js/starter_content.js` counts `data-starter-format="clear"` and sets up a pack in a window as it opens. - Tab rows: `js/tab_fold.js` (loaded by `includes/footer.php`) folds the tabs that don't fit into a More dropdown, from the end, never the `.active` one - in `.nav.itflow-asset-tabs` (or a `.nav` inside an `.itflow-asset-tabs` card header), `.nav.itflow-asset-pills`, `.nav.itflow-asset-form-tabs` and any `.nav.itflow-tabs-foldable` (added to the kinds in Admin > Categories and Tags and to the mail settings tabs). A tab is a `.nav-link` of the row or the `.nav-item` around one; rows in a window are set up on `shown.bs.modal`, and a row laid out as a column, or not on screen yet, is left as it is. Folded tabs stay in place with `.itflow-tab-folded`, so Bootstrap's tabs and page scripts keep working on them; More is a `.nav-link.dropdown-toggle` (left out by Bootstrap's tabs and by `agent/js/tickets_live.js`), and its items are built on `show.bs.dropdown` - a link for a tab with an href, otherwise a button that clicks the tab. The row gets `.itflow-tabs-fold` (one line, overflow visible, min-width 0, its tabs `nowrap`), and fits again on resize, font load and any change to its tabs (a MutationObserver - counts updated in place, the open tab changing). +- Link picker: `functions/link_picker.php` (`linkPickerButton()`, `linkPickerSource()`, `linkPickerOptions()`, `linkPickerSave()`, `LINK_PICKER_OWN` for the links that aren't `LINK_RELATIONS` pairs), `js/link_picker.js`, and `agent/ajax.php` `link_picker` (GET: the options, linked ones selected) and `link_picker_save` (POST `add[]` and `remove[]`; `flash=1` keeps the message for the page it reloads). It opens the select picker on a hidden multiple ` - - - - - - Services that use it - Link a service + diff --git a/agent/modals/contact/contact_link_asset.php b/agent/modals/contact/contact_link_asset.php deleted file mode 100644 index 317973beb..000000000 --- a/agent/modals/contact/contact_link_asset.php +++ /dev/null @@ -1,65 +0,0 @@ - - - -
- - - - -
- - diff --git a/agent/modals/contact/contact_link_credential.php b/agent/modals/contact/contact_link_credential.php deleted file mode 100644 index 3a3d88edd..000000000 --- a/agent/modals/contact/contact_link_credential.php +++ /dev/null @@ -1,70 +0,0 @@ - 'That contact no longer exists.']); - exit; -} -$contact_name = escapeHtml($row['contact_name']); -$client_id = intval($row['contact_client_id']); - -enforceClientAccess(); - -$choices = credentialRows("credential_client_id = $client_id AND credential_contact_id <> $contact_id"); -// Nobody's first, then the ones that would move from someone else -uasort($choices, function ($a, $b) { - return [empty($a['contact_id']) ? 0 : 1, strtolower($a['credential_name'])] <=> [empty($b['contact_id']) ? 0 : 1, strtolower($b['credential_name'])]; -}); - -ob_start(); - -?> - - -
- - - - -
- - For - Link a vendor, license or service +