feat(ui)!: bake social icons and disclaimer into OpenFooter#24
Merged
Conversation
The three OSS sites (fhir-brasil, medbench-brasil, datasus-brasil) ship
identical GitHub/npm icons and the same medical/research disclaimer in
their footers. Keep those in the component itself so consumers stop
duplicating SVG paths and disclaimer copy across repos.
Icons and disclaimer copy are now baked in. Per-project URLs stay
configurable via new discrete props:
- \`githubUrl\` (required) — repository URL.
- \`npmUrl\` (optional) — npm package or org URL; omit for projects that
don't publish to npm yet (e.g. datasus-brasil).
BREAKING CHANGE: OpenFooter no longer accepts \`socials\` or
\`disclaimer\` props; the \`OpenFooterSocial\` type is removed.
Migration for consumers:
\`\`\`diff
-<OpenFooter
- brand={{ ... }}
- disclaimer="Este software é fornecido ..."
- socials={[
- { href: 'https://github.com/...', icon: <GitHubSvg />, label: 'GitHub' },
- { href: 'https://www.npmjs.com/...', icon: <NpmSvg />, label: 'npm' },
- ]}
-/>
+<OpenFooter
+ brand={{ ... }}
+ githubUrl="https://github.com/Precisa-Saude/<repo>"
+ npmUrl="https://www.npmjs.com/package/@precisa-saude/<pkg>"
+/>
\`\`\`
Automated Review — Round 1SummaryThe PR introduces significant changes to the Changes
🔍 Found 2 suggestions (see inline comments) Reviewed by OpenAI gpt-4o-mini (fallback) | 2,372 in / 209 out | $0.0005 — Round 1 of 2 |
The key={href} inside SocialLink was a leftover from the previous
loop-based render; in the current OpenFooter layout SocialLink is used
twice statically, so the key serves no purpose.
Refs: #24
Automated Review — Round 2 (Final)SummaryRemoved key prop from SocialLink component which might cause rendering issues in a list context. Changes
🔍 Found 1 suggestion (see inline comments) Reviewed by OpenAI gpt-4o-mini (fallback) | 357 in / 136 out | $0.0001 — Round 2 (Final); no further reviews will be performed |
github-actions Bot
pushed a commit
that referenced
this pull request
Apr 23, 2026
## [1.6.0](v1.5.1...v1.6.0) (2026-04-23) ### ⚠ BREAKING CHANGES * **ui:** OpenFooter no longer accepts \`socials\` or \`disclaimer\` props; the \`OpenFooterSocial\` type is removed. Migration for consumers: \`\`\`diff -<OpenFooter - brand={{ ... }} - disclaimer="Este software é fornecido ..." - socials={[ - { href: 'https://github.com/...', icon: <GitHubSvg />, label: 'GitHub' }, - { href: 'https://www.npmjs.com/...', icon: <NpmSvg />, label: 'npm' }, - ]} -/> +<OpenFooter + brand={{ ... }} + githubUrl="https://github.com/Precisa-Saude/<repo>" + npmUrl="https://www.npmjs.com/package/@precisa-saude/<pkg>" +/> \`\`\` * refactor(ui): drop stale key prop from SocialLink The key={href} inside SocialLink was a leftover from the previous loop-based render; in the current OpenFooter layout SocialLink is used twice statically, so the key serves no purpose. ### Features * **ui:** bake social icons and disclaimer into OpenFooter ([#24](#24)) ([e7aef06](e7aef06))
rlueder
added a commit
that referenced
this pull request
Apr 24, 2026
* feat(ui)!: bake social icons and disclaimer into OpenFooter
The three OSS sites (fhir-brasil, medbench-brasil, datasus-brasil) ship
identical GitHub/npm icons and the same medical/research disclaimer in
their footers. Keep those in the component itself so consumers stop
duplicating SVG paths and disclaimer copy across repos.
Icons and disclaimer copy are now baked in. Per-project URLs stay
configurable via new discrete props:
- \`githubUrl\` (required) — repository URL.
- \`npmUrl\` (optional) — npm package or org URL; omit for projects that
don't publish to npm yet (e.g. datasus-brasil).
BREAKING CHANGE: OpenFooter no longer accepts \`socials\` or
\`disclaimer\` props; the \`OpenFooterSocial\` type is removed.
Migration for consumers:
\`\`\`diff
-<OpenFooter
- brand={{ ... }}
- disclaimer="Este software é fornecido ..."
- socials={[
- { href: 'https://github.com/...', icon: <GitHubSvg />, label: 'GitHub' },
- { href: 'https://www.npmjs.com/...', icon: <NpmSvg />, label: 'npm' },
- ]}
-/>
+<OpenFooter
+ brand={{ ... }}
+ githubUrl="https://github.com/Precisa-Saude/<repo>"
+ npmUrl="https://www.npmjs.com/package/@precisa-saude/<pkg>"
+/>
\`\`\`
* refactor(ui): drop stale key prop from SocialLink
The key={href} inside SocialLink was a leftover from the previous
loop-based render; in the current OpenFooter layout SocialLink is used
twice statically, so the key serves no purpose.
Refs: #24
rlueder
pushed a commit
that referenced
this pull request
Apr 24, 2026
## [1.6.0](v1.5.1...v1.6.0) (2026-04-23) ### ⚠ BREAKING CHANGES * **ui:** OpenFooter no longer accepts \`socials\` or \`disclaimer\` props; the \`OpenFooterSocial\` type is removed. Migration for consumers: \`\`\`diff -<OpenFooter - brand={{ ... }} - disclaimer="Este software é fornecido ..." - socials={[ - { href: 'https://github.com/...', icon: <GitHubSvg />, label: 'GitHub' }, - { href: 'https://www.npmjs.com/...', icon: <NpmSvg />, label: 'npm' }, - ]} -/> +<OpenFooter + brand={{ ... }} + githubUrl="https://github.com/Precisa-Saude/<repo>" + npmUrl="https://www.npmjs.com/package/@precisa-saude/<pkg>" +/> \`\`\` * refactor(ui): drop stale key prop from SocialLink The key={href} inside SocialLink was a leftover from the previous loop-based render; in the current OpenFooter layout SocialLink is used twice statically, so the key serves no purpose. ### Features * **ui:** bake social icons and disclaimer into OpenFooter ([#24](#24)) ([8d322d2](8d322d2))
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The three OSS sites (fhir-brasil, medbench-brasil, datasus-brasil) currently duplicate the same GitHub/npm SVG icons and the same medical/research disclaimer copy in their local `Footer.tsx` files. Move those into `OpenFooter` itself so consumers stop copy-pasting them.
Breaking change
Removes `socials` and `disclaimer` props, plus the `OpenFooterSocial` type export. Consumer migration:
```diff
-<OpenFooter
-/>
+<OpenFooter
+/>
```
semantic-release will cut a major (2.0.0). Follow-ups in fhir-brasil and medbench-brasil will bump `@precisa-saude/ui` and simplify their `Footer.tsx` in the same PR.
Test plan