Skip to content

feat: integrate StackOverflow into supported platforms list#70

Open
Dipti45sktech wants to merge 1 commit into
Dev-Card:mainfrom
Dipti45sktech:overflow
Open

feat: integrate StackOverflow into supported platforms list#70
Dipti45sktech wants to merge 1 commit into
Dev-Card:mainfrom
Dipti45sktech:overflow

Conversation

@Dipti45sktech
Copy link
Copy Markdown

Summary

This PR adds support for Stack Overflow profiles to the shared PLATFORMS registry used for DevCard profile generation.

The update introduces a new stackoverflow platform configuration with the required URL pattern, metadata, and follow strategy so StackOverflow profiles can be handled consistently alongside existing supported platforms.

In addition, a dedicated test suite was added to validate:

  • Proper registration of the StackOverflow platform
  • Correct profile URL generation through getProfileUrl()
  • No regressions to existing platform behavior

The shared package was also updated with standalone test support by adding vitest and a package-level test script, allowing tests to run independently within @devcard/shared.

StackOverflow Profile Format

StackOverflow profiles typically follow this structure:

{id}/{display-name}

Example:

1234/alex

To make this clearer for users, the platform configuration includes the placeholder:

e.g. 1234/username

Closes #25

@Dipti45sktech
Copy link
Copy Markdown
Author

Hi @ShantKhatri , could you please review my PR whenever available.

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.

shared: update PLATFORMS to include stackoverflow with full URL pattern

1 participant