Skip to content

AO3-7140 Changed view of Assignment to be less confusing#5541

Open
ReverM wants to merge 7 commits intootwcode:masterfrom
ReverM:AO3-7140
Open

AO3-7140 Changed view of Assignment to be less confusing#5541
ReverM wants to merge 7 commits intootwcode:masterfrom
ReverM:AO3-7140

Conversation

@ReverM
Copy link
Contributor

@ReverM ReverM commented Jan 12, 2026

Issue

https://otwarchive.atlassian.net/browse/AO3-7140

Purpose

This changes how the assignment blurb look when you have a drafted work that is unposted (changing Posted to Created and adding (draft) to the title)

Credit

Danaël / Rever ( they / he )

Danaël Villeneuve on Jira

@ReverM ReverM marked this pull request as ready for review January 12, 2026 21:42
@marcus8448 marcus8448 self-requested a review March 21, 2026 00:21
Copy link
Member

@marcus8448 marcus8448 left a comment

Choose a reason for hiding this comment

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

Just a couple wording + translation bits.
Could you add a test for the display of the created_at date for drafts?

<%= t(".stats.status.unposted") %>
<% elsif !assignment.fulfilled? %>
<strong><%= ts("Unapproved") %><!-- BACK END add approve button for mod --></strong>
<strong><%= t(".stats.status.unfullfilled") %><!-- BACK END add approve button for mod --></strong>
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
<strong><%= t(".stats.status.unfullfilled") %><!-- BACK END add approve button for mod --></strong>
<strong><%= t(".stats.status.unfulfilled") %><!-- BACK END add approve button for mod --></strong>

Could also be unapproved to match the displayed text.

(same typo for fulfilled)

Then I should see "My Assignments"
And I should not see "Awesome Gift Exchange"

Scenario: Information regarding the status of an assignment is not confusing (AO3-7140)
Copy link
Member

Choose a reason for hiding this comment

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

It's hard to tell what's being tested from the scenario name.
Maybe something like displaying the draft status [and using the creation date] for unposted works? (then the issue number can be omitted as well)

fandom: Fandom %{allowed_fandom_count}
challenge_assignments:
assignment_blurb:
header_draft: "%{link} (draft)"
Copy link
Member

Choose a reason for hiding this comment

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

Could you change the variable name to title_link or similar?

<% if !assignment.posted? %>
<%= t(".header_draft", link: (link_to (assignment.creation.try(:title) || assignment.creation.class.name), assignment.creation, class: "work")) %>
<% else %>
<%= t(".header_posted", link: (link_to (assignment.creation.try(:title) || assignment.creation.class.name), assignment.creation, class: "work")) %>
Copy link
Member

Choose a reason for hiding this comment

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

The title link can just be inserted directly here (no need for a translation).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants