Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add content flag assets and strings #1512

Merged
merged 8 commits into from
Sep 18, 2024
Merged

Conversation

pelumy
Copy link
Contributor

@pelumy pelumy commented Sep 17, 2024

Issues covered

Part 1 of #1498

Description

This PR adds new colors, localised strings and a model required to display the UI of the first flow of the new moderation flow.

Copy link
Member

@mplorentz mplorentz left a comment

Choose a reason for hiding this comment

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

Looks good. There are a couple minor changes I'm requesting, but feel free to merge after those are done.

Nos/Models/FlagOption.swift Show resolved Hide resolved
let description: String?
var id: String { title }

// `FlagOption` instances representing different categories of content that can be flagged.
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
// `FlagOption` instances representing different categories of content that can be flagged.
/// `FlagOption` instances representing different categories of content that can be flagged.

If you make this a triple-slash (HeaderDoc comment) it will show up in the documentation pane (right hand pane of Xcode) or when this variable is option-clicked!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you for catching these @mplorentz

@joshuatbrown joshuatbrown self-assigned this Sep 17, 2024
Copy link
Contributor

@joshuatbrown joshuatbrown left a comment

Choose a reason for hiding this comment

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

I love the way this is coming along -- I like the FlagOption struct and that the content to display is all in the xcstrings file. I have a few name suggestions, but overall this looks great!

Copy link
Contributor

Choose a reason for hiding this comment

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

I suggest renaming this radio-button-selected-bottom (and the other radio-button-selected-top).

@@ -5054,6 +5054,28 @@
}
}
},
"harassmentFlagContentDescription" : {
Copy link
Contributor

Choose a reason for hiding this comment

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

I think I'd switch the words around a bit, so all of them are sorted together in the file. So this one would be:

Suggested change
"harassmentFlagContentDescription" : {
"flagContentHarassmentDescription" : {

And then all the others would be similar, starting with flagContent and then the type and then Title or Description at the end.

Nos/Assets/Localization/Localizable.xcstrings Outdated Show resolved Hide resolved
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "Others"
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
"value" : "Others"
"value" : "Other"

@pelumy
Copy link
Contributor Author

pelumy commented Sep 17, 2024

Thanks for the naming suggestions @joshuatbrown. Honestly, I was a lil bit confused about the naming 😸. I will implement these suggestions.

@pelumy pelumy force-pushed the content-flag-assets-and-strings branch from ac2ac82 to 693f7f3 Compare September 17, 2024 21:14
@pelumy pelumy added this pull request to the merge queue Sep 18, 2024
Merged via the queue into main with commit 5aa2613 Sep 18, 2024
4 checks passed
@pelumy pelumy deleted the content-flag-assets-and-strings branch September 18, 2024 14:04
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.

4 participants