Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
c074d57
Add new form fields and integrate Freshdesk API for published researc…
suejinkim20 Jun 18, 2026
6f747d9
- migrate contact and support page to Astro format for build-time fet…
suejinkim20 Jun 19, 2026
6662816
Refactor form error handling and status messages for consistency acro…
suejinkim20 Jun 22, 2026
9900673
feat(publications): update schema and data structure for publications
suejinkim20 Jun 29, 2026
014d067
Enhance Button component usage with centered alignment option in expl…
suejinkim20 Jul 1, 2026
3f99f02
clean up code formatting and improve readability
suejinkim20 Jul 1, 2026
baa9d39
Merge pull request #3 from suejinkim20/feature/bdc-enabled-research-p…
suejinkim20 Jul 1, 2026
22341bf
enhance filter functionality and sorting logic; improve styles
suejinkim20 Jul 2, 2026
2f50fe5
Merge branch 'update/july-1' into feature/bdc-enabled-research-page-ui
suejinkim20 Jul 2, 2026
814aac5
Merge branch 'packet/july-7' into feature/form-integration
suejinkim20 Jul 2, 2026
04fc645
Merge branch 'packet/july-7' into feature/bdc-enabled-research-page-ui
suejinkim20 Jul 2, 2026
18aac79
Merge pull request #7 from suejinkim20/feature/bdc-enabled-research-p…
suejinkim20 Jul 2, 2026
7e8b890
Merge pull request #6 from suejinkim20/feature/form-integration
suejinkim20 Jul 2, 2026
a3fd7e1
Fix formatting and errors; improve code consistency
suejinkim20 Jul 2, 2026
de63883
implement custom object payload builder and record fetching utilities
suejinkim20 Jul 2, 2026
2f29361
Enhance SiteAlert component with multiple variants and styles; add se…
suejinkim20 Jul 6, 2026
d3e5bbf
Add banner content, currently all set to false
suejinkim20 Jul 6, 2026
c66a80b
Enhance filtering features and publication submission
suejinkim20 Jul 7, 2026
f575b49
Update Accessibility page
suejinkim20 Jul 7, 2026
d5994a6
Add external link handling to markdown processing
suejinkim20 Jul 7, 2026
91ada3d
Refactor success message in DynamicForm component to use dynamic text
suejinkim20 Jul 7, 2026
5a9891e
Implement "Other" option handling in form fields with dynamic text input
suejinkim20 Jul 7, 2026
c861a84
Add storageKey prop to SiteAlert component for better state management
suejinkim20 Jul 7, 2026
18974af
Add back missing props
suejinkim20 Jul 7, 2026
6eee526
Remove left-border styles from sitewide alert
suejinkim20 Jul 7, 2026
c2acfdc
Use literal key notation in buildPayload tests
suejinkim20 Jul 7, 2026
8072154
Remove unused getReferenceDataValues functionality
suejinkim20 Jul 7, 2026
b177e8d
Update publication list to use journalName on home page
suejinkim20 Jul 7, 2026
c39066f
Remove handling for RELATIONSHIP fields and getReferenceDataValues() …
suejinkim20 Jul 7, 2026
b78a2e4
Move styles from inline to scss for filter chip on PublicationsFilter…
suejinkim20 Jul 7, 2026
ab2f507
Move styles from inline to scss for TooltipIcon, PublicationCard
suejinkim20 Jul 7, 2026
dfabcb7
Add comments to clarify the purpose of the lastReviewed field in Page…
suejinkim20 Jul 9, 2026
54d183b
refactor CustomObjectField and CustomObjectSchema, removing unused fi…
suejinkim20 Jul 9, 2026
db148c3
remove RELATIONSHIP fields with build-time warning; align comments
suejinkim20 Jul 9, 2026
08c6736
update tests to reflect RELATIONSHIP exclusion and trimmed field types
suejinkim20 Jul 9, 2026
15bcd59
remove stale getReferenceDataValues references from renderCustomObjec…
suejinkim20 Jul 9, 2026
90ab74c
align comments with actual implementation across custom object form c…
suejinkim20 Jul 9, 2026
34fbd17
replace Icon.astro with Icon.tsx across components for react compatib…
suejinkim20 Jul 9, 2026
18c3224
remove unused EepMember.astro component
suejinkim20 Jul 9, 2026
45f9e1c
update Button to remove unneeded ternary and simplify class handling
suejinkim20 Jul 9, 2026
cc55ee3
move component-scoped styles into app directory and out of shared the…
suejinkim20 Jul 9, 2026
64defbc
Add Tooltip.tsx; remove Tooltip.astro and TooltipIcon components; upd…
suejinkim20 Jul 10, 2026
470dac9
Update event and news links match updated navigation structure
suejinkim20 Jul 10, 2026
2b8f88d
Update PublicationsFilter and DynamicCustomObjectForm to use client:v…
suejinkim20 Jul 10, 2026
645fe51
Restore containerClasses variable, remove noIcon prop, move styles in…
suejinkim20 Jul 10, 2026
a8aee35
add aria-label to tooltip component
suejinkim20 Jul 10, 2026
ea197b6
refactor styles for PublicationsCard and PublicationsFilter
suejinkim20 Jul 10, 2026
50f8294
refactor SiteAlert styles to rely on utility classes, except for grad…
suejinkim20 Jul 10, 2026
5398c54
refactor Tooltip styles to rely on utility classes; remove _tooltip.scss
suejinkim20 Jul 10, 2026
9aadcc5
remove getReferenceDataValues function and tests
suejinkim20 Jul 10, 2026
ede82a4
Revert "replace Icon.astro with Icon.tsx across components for react …
suejinkim20 Jul 10, 2026
4d95253
change Icon import for button back to .astro
suejinkim20 Jul 10, 2026
edc54e5
utilize Trussworks Icon components
suejinkim20 Jul 10, 2026
ba3121d
add aria-hidden attribute to Icon components for accessibility
suejinkim20 Jul 10, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions apps/site/astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,30 @@ const robotsTxtConfig = {
],
};

function externalLinks() {
return (tree) => {
tree.children?.forEach(function walk(node) {
if (
node.tagName === 'a' &&
typeof node.properties?.href === 'string' &&
(node.properties.href.startsWith('http://') ||
node.properties.href.startsWith('https://'))
) {
node.properties.target = '_blank';
node.properties.rel = 'noopener noreferrer';
node.properties.className = [
...(Array.isArray(node.properties.className)
? node.properties.className
: []),
'usa-link',
'usa-link--external',
];
}
node.children?.forEach(walk);
});
};
}

export default defineConfig({
site: siteUrl,
integrations: [
Expand All @@ -34,6 +58,7 @@ export default defineConfig({
],
markdown: {
remarkPlugins: [['remark-excerpt', { remove: true }]],
rehypePlugins: [externalLinks],
},
vite: {
optimizeDeps: {
Expand Down
1 change: 1 addition & 0 deletions apps/site/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"js-yaml": "^4.1.0",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"react-hook-form": "^7.79.0",
"remark-excerpt": "^1.0.0-beta.1",
"sass-embedded": "^1.83.0"
},
Expand Down
28 changes: 20 additions & 8 deletions apps/site/src/components/Button.astro
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,18 @@ interface Props extends astroHTML.JSX.ButtonHTMLAttributes {
icon?: string;
href?: string;
to?: string;
centered?: boolean;
}

const {
variant = 'default',
size = 'default',
icon,
class: className,
className: classNameProp,
type = 'button',
href,
to,
centered,
...rest
} = Astro.props;

Expand All @@ -37,18 +38,29 @@ const classes = [
'radius-pill',
variant !== 'default' && `usa-button--${variant}`,
size === 'big' && 'usa-button--big',
centered && 'usa-button--centered',
className,
classNameProp,
]
.filter(Boolean)
.join(' ');

const tagProps = {
...(targetUrl ? { href: targetUrl } : { type }),
class: classes,
...rest,
};
---

<Tag
{...targetUrl ? { href: targetUrl } : { type }}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

why are we dropping these props?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

for center, there's a USWDS utility for that

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

thank you! that was a mistake.

class={classes}
{...rest}
>
{icon && <Icon name={icon} /> }
<Tag {...tagProps}>
{icon && <Icon name={icon} />}
<slot />
</Tag>

<style>
.usa-button--centered {
display: block;
width: fit-content;
margin-left: auto;
margin-right: auto;
}
</style>
130 changes: 0 additions & 130 deletions apps/site/src/components/EepMember.astro

This file was deleted.

77 changes: 0 additions & 77 deletions apps/site/src/components/Tooltip.astro

This file was deleted.

19 changes: 19 additions & 0 deletions apps/site/src/components/Tooltip.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import { Icon, Tooltip as TrussTooltip } from '@trussworks/react-uswds';

interface Props {
text: string;
position?: 'top' | 'bottom' | 'left' | 'right';
}

export default function Tooltip({ text, position = 'top' }: Props) {
return (
<TrussTooltip
label={text}
position={position}
className="bg-transparent padding-0 cursor-pointer text-primary-dark margin-left-1 height-3 width-3"
aria-label={text}
>
<Icon.InfoOutline aria-hidden size={3} />
</TrussTooltip>
);
}
2 changes: 1 addition & 1 deletion apps/site/src/components/events/EventsList.astro
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const dateOptions = {
<div class="usa-collection__body">

<h4 class="usa-collection__heading">
<a href={`/updates/events/${event.id}/`} class="usa-link">
<a href={`/news/events/${event.id}/`} class="usa-link">
{event.data.title}
</a>
</h4>
Expand Down
Loading
Loading