Repository navigation
CompDesk v0.9.0-beta.6 — Public Beta
Know who you're talking to, answer faster, and help people help themselves. This release adds person cards with an organisation privacy setting, personal saved replies for staff, Help Center suggestions while creating a ticket, and tightens who can moderate conversations.
⚠ Behaviour change: email addresses are more private by default
Until now, every agent and administrator could see every colleague's email address. The new Admin → Settings → Privacy setting defaults to Higher roles only:
- Department admins still see the agents and requesters of their departments, and agents still see requesters.
- Whoever can open a ticket still sees its requester's details, even a colleague of the same rank (for example an agent handling a ticket another agent submitted). This is the Ticket requesters switch, on by default.
- Agents no longer see other agents' or administrators' email addresses, and department admins no longer see each other's.
- Assignee pickers show role and department instead of a hidden email.
To keep the previous behaviour, set Email address → All staff. A small internal team can choose Everyone, so requesters also see the email of the staff on their tickets.
New: person cards
- Hover or click any name to open the person's card: photo or initials, name, role (Requester, Agent, Department admin, Super Admin) and department.
- This works for the requester, assignees, message authors and watchers, and for names in the ticket list, Department Inbox and dashboard.
- On phones and with the keyboard, tap or press Enter.
- Contact and profile details (email with copy and mailto, preferred language, job title) appear when the privacy setting allows it.
- For staff, the card also shows whether the account is active and links to the person's open requests, counting only tickets you can access. Super Admins also get a link to manage the user.
- Same names.
- Each message shows its author's role, and your own messages say "You".
- If two different people in one ticket share a name, a short hint (part of their email, or their department) appears next to it.
- Job title. Everyone can set an optional job title in My Profile. Super Admins can set it in Admin → Users.
New: Admin → Settings → Privacy
- One setting per field: email address, preferred language and job title. Each can be visible to Higher roles only (default), Same role and higher, All staff, or Everyone.
- A preview shows what, for example, a requester sees on an agent's card, before you save.
- Relationship first. Details are only ever shown for people someone already works with: people on a ticket they can open, or staff in their own departments.
- Department-scoped admin rank. A department admin counts as an administrator only for people in the departments it administers.
- Super Admins always see everything, and everyone sees their own details.
- Ticket requesters (on by default): staff who can open a ticket always see its requester's details.
- Cards only list relevant departments: the one you reach the person through and, for staff, departments you also work in.
- Cards are never cached: each opening asks the server again, so a stricter setting applies immediately everywhere.
- One rule everywhere:
- cards, ticket pages and lists;
- assignee pickers and the staff directory;
- user search, which no longer matches an email address the searcher may not see.
New: saved replies (staff only)
- In the reply box, a Saved replies button sits next to Public reply / Internal note.
- It lists your replies, most used first, with a search box that matches titles and text.
- Use the arrow keys and Enter, or click. The text is inserted where your cursor is.
- Your draft is never replaced and nothing is sent until you press Send.
- Save current reply stores what you've typed under a title you choose.
- My Profile → My saved replies lets you create, edit, rename and delete them.
- Personal. Only you can see or use your saved replies; administrators cannot see other people's. Requesters do not have the feature. Each person can keep up to 200.
- Existing canned responses keep working. They appear read-only under Shared responses in the same menu.
New: suggested help articles per category
- Admin → Categories → edit a category → Suggested help articles. Choose up to three published Help Center articles, in the order they should appear.
- Super Admins can set them for any category.
- Department administrators can set them for categories in the departments they administer; nothing else about a category becomes editable for them.
- On New Ticket, after a person picks that category, This might answer your question appears between routing and the form.
- Articles open in a dialog, so what they've entered stays on the page.
- This solved it leaves without creating a ticket, asking first if anything was entered.
- Continue with my request folds the suggestions away.
- Suggestions never block submitting.
- Always current. Unpublished articles or collections are no longer suggested, and deleting an article or category removes its links. Nothing is tracked about who read a suggestion.
Security and permission fixes
- Moderation follows the department.
- Editing or deleting someone else's reply or internal note now requires administering that ticket's department.
- A department admin who is only an agent elsewhere can no longer moderate there.
- Only a Super Admin can edit or delete a Super Admin's entries.
- Your own replies work as before: edit within 24 hours, delete at any time.
- Attachments.
- Requesters can remove only files they uploaded themselves; before, they could remove files an agent attached.
- Older files with no recorded uploader can no longer be removed by requesters.
- Staff removal is unchanged.
- The remove button only appears when the server will allow it.
- Less staff data for requesters. The ticket list no longer sends assignee email addresses to requester accounts unless the privacy setting allows it.
Clearer deletion
- Deleted replies show a Deleted placeholder to everyone. Staff also see who deleted it and when.
- Super Admins still see the original text, marked "Original text visible to Super Admins only". Nothing changed in what is stored.
- Removing an attachment says what really happens: the file is deleted from CompDesk and only its name, size and who removed it are kept. Copies may remain in your backups.
Improvements
- Ticket tags. In a ticket's Actions panel, the Tags label sits above a full-width "Add tags" button, lined up with Status, Priority and Category.
- Ticket details. Labels and values in the Details panel keep a gap, so a long category name no longer runs into its label.
- Demo data.
- A Common requests help collection, with "Give a colleague access to your mailbox" and "Expense reports: deadlines and receipts".
- Category suggestions on three demo categories.
- Two saved replies for the IT agent.
- Job titles on the demo accounts.
- Conversations on four demo tickets: replies, internal notes from an agent and the department admin, and a message its author deleted. They show the role labels, person cards and deletion labels.
- Setup. The demo-data step lists the new demo content. The first-run guide has an "After setup" list pointing to the Privacy setting, category suggestions and saved replies; these stay out of the wizard because each has a safe default.
API changes
-
Contact fields hidden by the privacy policy are omitted from responses (not returned empty). This affects:
GET /api/ticketsandGET /api/tickets/{id};- the ticket objects returned by create, update and escalate;
GET /api/usersandGET /api/users/search;- department-admin views of
GET /api/queues.
Super Admin responses are unchanged. See People and privacy.
-
New endpoints:
GET /api/users/{id}/card;GET/PUT /api/settings/people-privacy;GET/POST /api/saved-replies,PATCH/DELETE /api/saved-replies/{id},POST /api/saved-replies/{id}/use;GET /api/help/suggestions?categoryId=.
-
GET /api/tickets/{id}:- each timeline entry includes
permissions: { canEdit, canDelete }and the author'srole; - deleted entries include
deletedByfor staff (deletedByIdis now null for requesters); - attachments include
canDelete; - the ticket includes
conversationPermissionsandpeopleHints.
- each timeline entry includes
-
PATCH /api/categoriesacceptssuggestedArticleIds, also from department administrators.PATCH /api/profile/preferencesandPATCH /api/usersacceptjobTitle. -
New 403s: the comment edit/delete and attachment delete endpoints return 403 in the newly restricted cases above.
-
Unchanged:
/api/canned-responses, and the external API (/api/v1), which deliberately does not apply the privacy policy. Its clients are Super Admin-created integrations with explicit scopes; granttickets:readonly to integrations that may receive contact details.
Upgrade and rollback
Three additive migrations run automatically on start:
- the
saved_repliestable; - a nullable
users.job_titlecolumn; - the
category_help_articlestable.
No existing data is changed. Back up PostgreSQL, private attachments, uploaded branding and the configuration volume together, then:
docker compose pull
docker compose up -d
docker compose logs --tail=100 compdeskRolling back to beta.5.1 works with the upgraded database: beta.5.1 ignores the extra tables, column and setting, and the new links are removed by the database if beta.5.1 deletes a user, category or article. Saved replies, job titles and suggestions reappear if you upgrade again. This round trip was tested with the published beta.5.1 image (see Verification).
Verification
- Lint, type checking and the full Jest suite pass. New tests cover:
- department-scoped moderation and Super Admin protection;
- the 24-hour edit window;
- attachment ownership;
- saved-reply scoping, limits and audit without content;
- every privacy level and the department-scoped admin rank;
- person-card relationship checks;
- the search guard against probing hidden emails;
- published-only suggestions and the department-admin field whitelist.
- Migrations: each one matches the Prisma schema.
npm run test:migration:upgradenow also rehearses an upgrade from the beta.5.1 schema, seeded with deleted replies, attachments with and without an uploader, tags, help content, canned responses, reminders and settings. The historical rehearsal still runs. - Demo data: the demo lifecycle test passes, including the new saved replies, articles and suggestion links.
- Rollback: the published
ghcr.io/tahahydra/compdesk:0.9.0-beta.5.1image was started on the upgraded database. It found no pending migrations, passed its schema check and served tickets. The new build was then started again on the same data, and the saved reply and suggestion created before the rollback were still there. - Independent review fixes: an agent handling a colleague's ticket sees the requester's details; cards no longer reveal unrelated departments and are never served from cache; user search can no longer lose name matches to hidden-email matches (regression test with 25 hidden matches); attachment removal wording no longer overstates recoverability.
- End to end: a running beta.5.1 installation with demo data was upgraded in place. All three migrations applied on start and existing data was preserved. Cards, saved replies, the Privacy tab and suggestions were then checked in the browser.
Publication checks
Verified release source: 7f5c72fed60c16f6c39ea81366e67899d332e50b.
- Main CI and main Security passed on the merged source, as did CI and Security on every commit of the release branch, including the demo-data lifecycle test.
- Tagged-image scan and publication passed, including the new check that the tag matches
package.json. The released image digest issha256:3819125acc8e81b951b264bccea8c9560f42f714489e625f48204aa3d335b84e. - The published image runs as UID 1001 and reports version 0.9.0-beta.6. The image was pulled anonymously, without GitHub credentials. The attached
docker-compose.ymlmatches the version-pinned Compose file generated from the tagged source. - The beta.5.1 → beta.6 update was rehearsed end to end with the published images: a fresh beta.5.1 installation with demo data was upgraded with this release's Compose asset (
docker compose pull,docker compose up -d). The three migrations applied on start, the schema check passed, and tickets, accounts, help content and the installation receipt were preserved.