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

Metadata widget #4212

Merged

Conversation

thecalcc
Copy link
Contributor

No description provided.

@tomaskikutis
Copy link
Member

tomaskikutis commented Feb 28, 2023

  • bind onArticleChange
  • dataApi.query( 'languages', // <------ check if already fetched in metadata
  • make label optional for Switch component and allow passing custom id
  • keep capitalization of labels so existing translations don't get discarded
  • Copyright label change (copyrightnotice, creditline)
  • sd-html-preview and other directives

@tomaskikutis
Copy link
Member

css file next to tsx
mergeArrayToString | rename and no conditional return >> move to vocabularies in api

getAllAnnotations - type argument

getLocaleName / getVocabularyItemLabel - pass arguments explicitly

be more careful with optional chaining - don't use it where it's not needed

if (value) {
subjectMerged.push(value);

if ((schemeName?.length ?? 0) && item.scheme !== schemeName) {
Copy link
Member

Choose a reason for hiding this comment

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

compare the number to something

@thecalcc thecalcc merged commit 4e9b998 into superdesk:authoring-react-post-broadcasting Apr 5, 2023
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.

2 participants