Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

Svelte: add footer links for dotcom#63170

Merged
camdencheek merged 9 commits into
mainfrom
cc/search-home-footer-links
Jun 12, 2024
Merged

Svelte: add footer links for dotcom#63170
camdencheek merged 9 commits into
mainfrom
cc/search-home-footer-links

Conversation

@camdencheek

@camdencheek camdencheek commented Jun 7, 2024

Copy link
Copy Markdown
Member

Stacked on #63167
Completes SRCH-493

Test plan

https://share.cleanshot.com/LLQCYdTY

@cla-bot cla-bot Bot added the cla-signed label Jun 7, 2024
@camdencheek camdencheek changed the base branch from main to cc/cody-upsell-banner June 7, 2024 21:05
Comment thread client/web-sveltekit/src/routes/search/+page.svelte Fixed
@camdencheek camdencheek force-pushed the cc/search-home-footer-links branch from 6672284 to f7b8505 Compare June 7, 2024 21:11
Comment thread client/web-sveltekit/src/routes/search/+page.svelte Fixed
Comment thread client/web-sveltekit/src/routes/search/+page.svelte Fixed
@camdencheek camdencheek marked this pull request as ready for review June 7, 2024 22:17
@camdencheek camdencheek requested a review from a team June 7, 2024 22:17
Comment on lines +48 to +50
name: 'Docs',
href: 'https://sourcegraph.com/docs',
handleClick: () => handleLinkClick('Docs'),

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I kind of want to simplify this so that we don't have to define a separate function for every link. But since the links are actually not rendered here, I'm not sure what the best way would be.

Does the list have to be defined here though? Or can we move it to SearchHome? What was your thought process behind putting them here?

@camdencheek camdencheek Jun 12, 2024

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yeah, I started with a generic "links" element where we pass the data in. But I thought the typing of the telemetry recorder was more sophisticated than it is.

I just refactored this so this is just a "DotcomLinksFooter" so we can isolate the relevant data. In the case that we ever end up using this for self-hosted instances, we can genericize it.

Comment thread client/web-sveltekit/src/routes/search/+page.svelte Outdated
Base automatically changed from cc/cody-upsell-banner to main June 12, 2024 14:01
@camdencheek camdencheek force-pushed the cc/search-home-footer-links branch from 1ffd556 to c3e5e18 Compare June 12, 2024 15:14
@camdencheek camdencheek force-pushed the cc/search-home-footer-links branch from c3e5e18 to 18d6a80 Compare June 12, 2024 15:14
Comment on lines +23 to +24
href: 'https://sourcegraph.com/security',
telemetryType: 5,

Check notice

Code scanning / Semgrep OSS

Semgrep Finding: security-semgrep-rules.semgrep-rules.generic.comment-tagging-rule

Code that highlight SECURITY in comment has changed. Please review the code for changes. The changes might be sensitive.
@camdencheek camdencheek merged commit d8d3709 into main Jun 12, 2024
@camdencheek camdencheek deleted the cc/search-home-footer-links branch June 12, 2024 15:32
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants