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

adds notes section #162

Merged
merged 6 commits into from
Jan 2, 2025
Merged

Conversation

aarongundel
Copy link
Collaborator

Adds notes section with generic metastring viewer.

@aarongundel aarongundel requested a review from chrabyrd December 26, 2024 23:02
@aarongundel aarongundel linked an issue Dec 26, 2024 that may be closed by this pull request
Copy link
Contributor

@chrabyrd chrabyrd 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! 1 small naming nit

@aarongundel aarongundel requested a review from chrabyrd December 30, 2024 21:37
Copy link
Contributor

@chrabyrd chrabyrd 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, just found one thing I missed during the first pass

/>
</div>
<div>
{{ $gettext("Contributors") }}:
Copy link
Contributor

Choose a reason for hiding this comment

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

one small thing I missed first pass, mind wrapping these interpolations in a span or div or something? Prevents "naked" strings in the HTML

@aarongundel aarongundel requested a review from chrabyrd December 31, 2024 04:34
Copy link
Contributor

@chrabyrd chrabyrd left a comment

Choose a reason for hiding this comment

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

🏓

</template>
<template #drawer="{ rowData }">
<div>
<span>{{ $gettext("Bibliographic Sources") }}:</span>
Copy link
Contributor

Choose a reason for hiding this comment

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

had to look up i18n patterns for this: TIL -- the colon should go inside the gettext call.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

good to know, guess it makes sense from an RTL text perspective.

/>
</div>
<div>
<span>{{ $gettext("Contributors") }}:</span>
Copy link
Contributor

Choose a reason for hiding this comment

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

same

@delete-string="deleteSectionValue"
>
<template #name="{ rowData }">
{{ (rowData as SchemeStatement).statement_content_n1 }}
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm unsure, but I think this needs span wrapping as well

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

no objections. 🏓

@aarongundel aarongundel requested a review from chrabyrd January 2, 2025 20:15
Copy link
Contributor

@chrabyrd chrabyrd left a comment

Choose a reason for hiding this comment

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

🚀 🚀

Comment on lines 116 to 118
<span>{{
(rowData as SchemeStatement).statement_content_n1
}}</span>
Copy link
Contributor

Choose a reason for hiding this comment

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

lol bad formatting but I wont block 😉

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

That was actually automatic from the pre-commit hook, I didn't do that.

Copy link
Contributor

Choose a reason for hiding this comment

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

I figured that was the case 😁

@aarongundel aarongundel merged commit 0868230 into adg/146-genericize-label-viewer Jan 2, 2025
5 of 6 checks passed
@aarongundel aarongundel deleted the adg/notes-section branch January 2, 2025 20:24
aarongundel added a commit that referenced this pull request Jan 2, 2025
* adds notes section

* fix naming nit

* wrap gettext in spans

* pr feedback

* pr feedback
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.

Statement/Notes section
2 participants