Skip to content

Improving Author selector#2583

Open
PothieuG wants to merge 5 commits intomainfrom
2152-Author_Selection_Improvement
Open

Improving Author selector#2583
PothieuG wants to merge 5 commits intomainfrom
2152-Author_Selection_Improvement

Conversation

@PothieuG
Copy link
Copy Markdown
Member

@PothieuG PothieuG commented Apr 13, 2026

Description

PBI - #2152

  • Dropdown creation with SSW authors
  • Switch mode for external author
  • Adam Cogan set by default

Screenshot (optional)

2026-04-13_14-35-20.mp4

@PothieuG PothieuG marked this pull request as draft April 13, 2026 09:50
@PothieuG
Copy link
Copy Markdown
Member Author

/deploy

@github-actions
Copy link
Copy Markdown
Contributor

PR Preview Deployed

Preview URL https://app-sswrules-staging-pr-2583.azurewebsites.net/rules
Slot Name pr-2583
Branch 2152-Author_Selection_Improvement
Commit 2889428a7bf81a66b1fd24be5bd3a15e0c7da5c2

This preview will be automatically deleted when the PR is closed.

@PothieuG PothieuG marked this pull request as ready for review April 13, 2026 12:36
@PothieuG PothieuG enabled auto-merge (squash) April 13, 2026 12:36
@Aibono1225
Copy link
Copy Markdown
Member

We may need an image field for the author selection. Because otherwise non-ssw people cannot put their image photo

@Aibono1225
Copy link
Copy Markdown
Member

I went to https://app-sswrules-staging-pr-2583.azurewebsites.net/rules/admin#/~/rules/reply-done
and I saw the MDX is broken on staging:
image

Any idea why the workflow Check-MDX didn't work? 🤔

@Aibono1225
Copy link
Copy Markdown
Member

Let's add some validation for the field:

image

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the TinaCMS rule editing experience to make author selection easier by defaulting to Adam Cogan, supporting selection from the SSW employee list, and allowing non-SSW authors with optional custom profile images.

Changes:

  • Update the Rule “authors” schema to default to Adam Cogan and add an optional img field for non-SSW author profile images.
  • Add custom TinaCMS fields: an SSW-employee searchable author selector and a URL field that becomes read-only for SSW People links.
  • Extend Tina GraphQL queries to include the new authors.img field.

Reviewed changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
tina/tina-lock.json Updates Tina schema for authors (default Adam Cogan, adds img).
tina/queries/queries.gql Fetches authors.img in rule queries.
tina/fields/AuthorUrlField.tsx New custom URL field with read-only behavior for SSW People links.
tina/fields/AuthorSelector.tsx New searchable SSW employee dropdown + non-SSW manual entry mode.
tina/collection/rule.tsx Wires the new custom fields into the Rule collection and adds validation.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread tina/fields/AuthorUrlField.tsx
Comment thread tina/fields/AuthorSelector.tsx
Comment thread tina/fields/AuthorSelector.tsx
Comment thread tina/fields/AuthorSelector.tsx Outdated
Comment thread tina/fields/AuthorSelector.tsx
Comment thread tina/collection/rule.tsx
PothieuG and others added 2 commits April 13, 2026 15:58
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@PothieuG
Copy link
Copy Markdown
Member Author

/deploy

1 similar comment
@PothieuG
Copy link
Copy Markdown
Member Author

/deploy

@PothieuG PothieuG changed the title Adding Adam as author by defautl + creating custom component for user… Improving Author selector Apr 13, 2026
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