activist icon indicating copy to clipboard operation
activist copied to clipboard

Update text backend structures

Open andrewtavis opened this issue 1 month ago • 1 comments

Terms

Issue

The text tables in the backend have a few points that should be discussed:

  • Firstly there are general feelings that the "primary" field should be renamed to "default"
  • Secondly, what would the functionality be to switch the default text value

Specifically, I don't think that it makes sense to save "default" on each entry in the table as there never is going to be a case where we'd want more than one default. Accessing which text is the default is also made more difficult if this is saved on the text table entry. How do we know which one to default to without looping through all of them?

Would it make more sense if we have a "default_iso" value saved on the entity itself? The user can update this in the settings, and then in the frontend in #1637 we can access the ISO of the user if it's in the table, or if not we access the default one from the entity? The default ISO would be required for all texts in the organization/group and would be the left most option in the text edit modal?

Thoughts very welcome! 😊

andrewtavis avatar Oct 26 '25 17:10 andrewtavis

CC @to-sta, @sh-ran, @nicki182 and @aasimsyed for the discussion here :)

andrewtavis avatar Oct 26 '25 17:10 andrewtavis