diff --git a/CHANGELOG.md b/CHANGELOG.md index 865ba5365..ee0c576c4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,6 +21,7 @@ Update from Maintenance > Update as usual - this release has three database chan - Markdown pasted into a document's rich text editor - copied from GitHub, VS Code, Obsidian or an AI chat - goes in as formatting. Ctrl+Shift+V pastes it as it is. - A document's page is easier to read: headings in proportion to the text with room between sections, and tables, code and quotes that look part of it. Under its name are its folder, its template, Markdown when it's written in it, and its review - due, or when it's next due - whose menu has Mark Reviewed and how often. The buttons are Edit, Share and Export (PDF, Markdown or Print), with the rest in the ⋮ menu, now including Template. Beside it, Contents marks the section you're reading, and Linked, Versions and History are tabs of one card: Linked shows each kind of record with its count, opening to the list. - Lists on a phone: Tickets, Credentials, Assets and Contacts (and Contacts' portal invites) show each row as a card instead of a table cut off at the edge of the screen - its name with the tick box and ⋮ menu across the top, then every other column with its label: a ticket's client, status, priority, agent, due date and last activity, a credential's login and what it's for, an asset's type, model, IP, location and status, a contact's phone and email. Status, priority, agent and location still change with a tap, and the column names above the cards sort the list. +- A document's quick view (Quick view in Files, and the view button on an asset or contact) reads like its page: headings in proportion to the text with tables, code and quotes that look part of it, its folder, template, Markdown and review above it, and what it's linked to as a count of each kind that opens to the list, instead of every linked record listed under it. Along the bottom are Open Document, Edit (now the edit page, as from the document), Share and Export (PDF or Markdown). - Documents and articles read outside ITFlow look like a document's page: in the client portal (a document, and a Help article), on a shared link and on the public help center, headings are in proportion to the text, tables, code and quotes look part of it, and a picture shown smaller than it is opens full size when clicked. A long one - three headings or more - has its Contents beside it, in view as you scroll and marking the section being read, or above it on a phone. Picking a heading in Contents marks that one, not the one just under it - on a document's page in ITFlow too. - A document's PDF, and a Knowledge Base article's, look like your invoices and the documentation PDF: your logo and company details at the top, then its name with the client, its folder (an article's category) and when it was last updated and by whom, and its summary. Each later page has the client and the name at the top, and every page your company, Confidential (Knowledge Base for an article) and the date at the foot, with the page number. Tables have lines, code is shaded, a checklist shows its boxes, symbols such as ✓ and → show, and a document with headings has them as bookmarks beside the PDF. - Pictures in tickets are kept as files: a screenshot pasted or dropped into a ticket, a reply or a note - by your team, in the client portal or through the API - and the pictures in a client's email are kept with the ticket as files instead of inside its text. A ticket full of screenshots opens quickly, and so do the tickets list and the client portal. Pictures show where they were put and stay out of the ticket's list of files, and emails carry them as before. @@ -55,6 +56,7 @@ Update from Maintenance > Update as usual - this release has three database chan - functions/document_pdf.php: DocumentPdf (TCPDF) and documentPdfRender() draw the document and Knowledge Base article PDFs (export_document in agent/post/document.php, export_kb_article in agent/post/kb.php), from documentPdfDocument() / documentPdfKbArticle(), and are sent with billingPdfSend(). documentPdfParts() splits the purified HTML at its top-level headings (inside a Markdown document's wrapper) for the bookmarks, and puts table lines, header cells and code shading in inline styles, which TCPDF reads where it ignores the style block. clientExportPdfImages() is clientExportPdfDocumentHtml()'s image step on its own, for uploads/documents or uploads/kb, and now turns a WebP picture into a PNG. - documentReadHtml() (functions/files.php) lays out a document or article outside the agent app - client/document.php, client/kb_article.php, guest/kb.php and guest/share.php - with .itflow-prose, and the Contents beside it in an .itflow-document-read grid (css/itflow_custom.css). js/document_contents.js reads [data-document-body] as well as .itflow-document-body, runs again from window.itflowDocumentContents() (js/guest_share.js, once a shared document is in), leaves the address alone with data-document-contents-keep-address (a shared link's secret is after its #), and keeps a section picked from the list marked while the page scrolls to it. The portal footer loads it when a page sets $portal_document_contents. - A list table with .itflow-list-stack (css/itflow_custom.css) stacks below 768px: each row a grid card with the tick box, first cell and last (the menu) across the top and every other cell under them labelled from its data-label, and the head a wrapping row of its sort links. Used on agent/ticket_list.php, agent/credentials.php, agent/assets.php and agent/contacts.php (contacts and invites); the ticket row's phone-only line of status, priority and client is gone, as the card shows them. +- agent/modals/document/document_view.php uses .itflow-prose and linkGroupsHtml()'s compact mode, which takes $open_up_to (5 by default, 0 for the quick view: always closed). Its Edit goes to agent/document_edit.php, so agent/modals/document/document_edit.php, which only it opened, is gone. ## [26.12.2] diff --git a/agent/modals/document/document_edit.php b/agent/modals/document/document_edit.php deleted file mode 100644 index 2f6e500b6..000000000 --- a/agent/modals/document/document_edit.php +++ /dev/null @@ -1,51 +0,0 @@ - 'That document no longer exists.']); - exit; -} -$client_id = intval($row['document_client_id']); -enforceClientAccess(); - -$document_form_mode = 'edit'; -$document_name = escapeHtml($row['document_name']); -$document_description = escapeHtml($row['document_description']); -$document_content = escapeHtml($row['document_content']); -$document_markdown = $row['document_markdown']; // raw - null for a document in the rich text editor -$document_folder_id = intval($row['document_folder_id']); -$document_client_visible = intval($row['document_client_visible']); - -ob_start(); - -?> - -
This document is empty.
' ?>This document is empty.
' ?>