René's URL Explorer Experiment


Title: experiment: Frontend - Share v1 UI via coder/m submodule (Approach 1) by bryphe-coder · Pull Request #4 · coder/coder · GitHub

Open Graph Title: experiment: Frontend - Share v1 UI via coder/m submodule (Approach 1) by bryphe-coder · Pull Request #4 · coder/coder

X Title: experiment: Frontend - Share v1 UI via coder/m submodule (Approach 1) by bryphe-coder · Pull Request #4 · coder/coder

Description: This is one possible approach to sharing 'V1' components and styling in the context of an independent 'V2' front-end codebase: This approach entails: Bringing in coder/m as a submodule Use a special webpack.config.js and tsconfig.json that aliases coder/m references With this, we can build a stand-alone front-end app that can still pull from the 'v1' codebase to reference components: / Code imported from 'Coder v1' // Legacy components that we can re-use import { CoderThemeProvider } from "@v1/product/coder/site/src/contexts/CoderThemeProvider" import { UserContext, defaultAppState } from "@v1/product/coder/site/src/contexts/User" import { SetupModeProvider } from "@v1/product/coder/site/src/contexts/SetupMode" // A fun component to bring in as an example of re-using UI from 'v1': import { ConfettiTransition } from "@v1/product/coder/site/src/pages/Onboarding/Activation/ConfettiTransition" The components still need scaffolding to be instantiated - for example, the Confetti Transition requires a 'setup mode' context and a 'user context', so we have to provide those (just stubbed out): const renderLegacyComponent = (component: JSX.Element) => { const fetchSetupMode = async () => { // Return an empty response for 'setup mode' return { body: null } as any; } return {component} } PROS: This can be implemented stand-alone, and we can build new UI alongside legacy UI, without impacting coder/m No need for a separate 'components' project that is shared between coder/m and coder/coder CONS: This necessitates having coder/coder contain a coder/m submodule, which might be the opposite of what is needed for the back-end code.

Open Graph Description: This is one possible approach to sharing 'V1' components and styling in the context of an independent 'V2' front-end codebase: This approach entails: Bringing in coder/m as a submo...

X Description: This is one possible approach to sharing 'V1' components and styling in the context of an independent 'V2' front-end codebase: This approach entails: Bringing in co...

Opengraph URL: https://github.com/coder/coder/pull/4

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:6d88a72c-7309-5036-e673-76fce6d2b505
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idC654:2DBB21:18F6FD5:21405A5:6B015061
html-safe-nonce81f56dd159437515d7e529c50fadd8c957b122ef92a047fae58eb58f334b6e91
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNjU0OjJEQkIyMToxOEY2RkQ1OjIxNDA1QTU6NkIwMTUwNjEiLCJ2aXNpdG9yX2lkIjoiODczMDIxNzgzMzUyNDQ0OTM3NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac39d5120bcdbd146c354ef23434839e1e5d10994f0db26416b68074944a1f5301
hovercard-subject-tagpull_request:814343182
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/coder/coder/pull/4/files
twitter:imagehttps://avatars.githubusercontent.com/u/88213859?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/88213859?s=400&v=4
og:image:altThis is one possible approach to sharing 'V1' components and styling in the context of an independent 'V2' front-end codebase: This approach entails: Bringing in coder/m as a submo...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/coder/coder git https://github.com/coder/coder.git
octolytics-dimension-user_id95932066
octolytics-dimension-user_logincoder
octolytics-dimension-repository_id440752086
octolytics-dimension-repository_nwocoder/coder
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id440752086
octolytics-dimension-repository_network_root_nwocoder/coder
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/coder/coder/pull/4/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fcoder%2Fpull%2F4%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fcoder%2Fpull%2F4%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=coder%2Fcoder
Reloadhttps://github.com/coder/coder/pull/4/files
Reloadhttps://github.com/coder/coder/pull/4/files
Reloadhttps://github.com/coder/coder/pull/4/files
coderhttps://github.com/coder
coderhttps://github.com/coder/coder
Codehttps://github.com/coder/coder
Issues320 (320)https://github.com/coder/coder/issues
Pull requests469 (469)https://github.com/coder/coder/pulls
Discussionshttps://github.com/coder/coder/discussions
Actionshttps://github.com/coder/coder/actions
Projectshttps://github.com/coder/coder/projects
Security and quality49 (49)https://github.com/coder/coder/security
Insightshttps://github.com/coder/coder/insights
Sign up for GitHub https://github.com/signup?return_to=%2Fcoder%2Fcoder%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fcoder%2Fcoder%2Fissues%2Fnew%2Fchoose
bryphe-coderhttps://github.com/bryphe-coder
mainhttps://github.com/coder/coder/tree/main
bryphe/experiment/share-ui-1https://github.com/coder/coder/tree/bryphe/experiment/share-ui-1
Conversation 5 https://github.com/coder/coder/pull/4
Commits 2 https://github.com/coder/coder/pull/4/commits
Checks 0 https://github.com/coder/coder/pull/4/checks
Files changed https://github.com/coder/coder/pull/4/files
Please reload this pagehttps://github.com/coder/coder/pull/4/files
experiment: Frontend - Share v1 UI via coder/m submodule (Approach 1) https://github.com/coder/coder/pull/4/files#top
Show all changes 2 commits https://github.com/coder/coder/pull/4/files
b84c65e Basic webpack config to build coder, nested bryphe-coder Jan 4, 2022 https://github.com/coder/coder/pull/4/commits/b84c65e376954590f960f42861ecb489b5432971
c7ca389 index.ts -> index.tsx bryphe-coder Jan 5, 2022 https://github.com/coder/coder/pull/4/commits/c7ca3895077a6d725edc3a8672157932f4b9f72f
Clear filters https://github.com/coder/coder/pull/4/files
Please reload this pagehttps://github.com/coder/coder/pull/4/files
Please reload this pagehttps://github.com/coder/coder/pull/4/files
.gitignore https://github.com/coder/coder/pull/4/files#diff-bc37d034bad564583790a46f19d807abfe519c5671395fd494d8cce506c42947
.gitmodules https://github.com/coder/coder/pull/4/files#diff-fe7afb5c9c916e521401d3fcfb4277d5071798c3baf83baf11d6071742823584
m https://github.com/coder/coder/pull/4/files#diff-62c66a7a5dd70c3146618063c344e531e6d4b59e379808443ce962b3abd63c5a
package.json https://github.com/coder/coder/pull/4/files#diff-7ae45ad102eab3b6d7e7896acd08c427a9b25b346470d7bc6507b6481575d519
index.tsx https://github.com/coder/coder/pull/4/files#diff-e32a085c9f52c42a6fb8fa73dfc019469a43f27013541db7bb5dc202e2f3a9e0
match-sorter.d.ts https://github.com/coder/coder/pull/4/files#diff-23135dc49696ba0a8f1adec0f16ff54f50d21f38f47371deb81519136b5660a9
next-env.d.ts https://github.com/coder/coder/pull/4/files#diff-8a465c1f9d81a6e6d1617cfacbdfa814389cb9f9b03c0efe090ac9548263d828
tsconfig.json https://github.com/coder/coder/pull/4/files#diff-699025e1aa80a3098a7dbe624e5a2ee09f50175c35445689bebccaf0c751c3ac
webpack.config.js https://github.com/coder/coder/pull/4/files#diff-983a3875b8808c1cc3ece3aeb7bf62b35b0fbbd2d1ba77ba4b1ab7e4cb4fd43e
yarn.lock https://github.com/coder/coder/pull/4/files#diff-51e4f558fae534656963876761c95b83b6ef5da5103c4adef6768219ed76c2de
.gitignorehttps://github.com/coder/coder/pull/4/files#diff-bc37d034bad564583790a46f19d807abfe519c5671395fd494d8cce506c42947
View file https://github.com/coder/coder/blob/c7ca3895077a6d725edc3a8672157932f4b9f72f/.gitignore
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/coder/coder/pull/4/{{ revealButtonHref }}
https://github.com/coder/coder/pull/4/files#diff-bc37d034bad564583790a46f19d807abfe519c5671395fd494d8cce506c42947
.gitmoduleshttps://github.com/coder/coder/pull/4/files#diff-fe7afb5c9c916e521401d3fcfb4277d5071798c3baf83baf11d6071742823584
View file https://github.com/coder/coder/blob/c7ca3895077a6d725edc3a8672157932f4b9f72f/.gitmodules
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/coder/coder/pull/4/{{ revealButtonHref }}
mhttps://github.com/coder/coder/pull/4/files#diff-62c66a7a5dd70c3146618063c344e531e6d4b59e379808443ce962b3abd63c5a
Open in desktop https://desktop.github.com
mhttps://github.com/coder/m
5c2a6f https://github.com/coder/m/tree/5c2a6f5d6a04caafcd62d2c2810734e4a72d553f
package.jsonhttps://github.com/coder/coder/pull/4/files#diff-7ae45ad102eab3b6d7e7896acd08c427a9b25b346470d7bc6507b6481575d519
View file https://github.com/coder/coder/blob/c7ca3895077a6d725edc3a8672157932f4b9f72f/package.json
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/coder/coder/pull/4/{{ revealButtonHref }}
https://github.com/coder/coder/pull/4/files#diff-7ae45ad102eab3b6d7e7896acd08c427a9b25b346470d7bc6507b6481575d519
site/index.tsxhttps://github.com/coder/coder/pull/4/files#diff-e32a085c9f52c42a6fb8fa73dfc019469a43f27013541db7bb5dc202e2f3a9e0
View file https://github.com/coder/coder/blob/c7ca3895077a6d725edc3a8672157932f4b9f72f/site/index.tsx
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/coder/coder/pull/4/{{ revealButtonHref }}
site/match-sorter.d.tshttps://github.com/coder/coder/pull/4/files#diff-23135dc49696ba0a8f1adec0f16ff54f50d21f38f47371deb81519136b5660a9
View file https://github.com/coder/coder/blob/c7ca3895077a6d725edc3a8672157932f4b9f72f/site/match-sorter.d.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/coder/coder/pull/4/{{ revealButtonHref }}
bryphe-coderhttps://github.com/bryphe-coder
Jan 5, 2022https://github.com/coder/coder/pull/4/files#r778509885
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/coder/coder/pull/4/files
site/next-env.d.tshttps://github.com/coder/coder/pull/4/files#diff-8a465c1f9d81a6e6d1617cfacbdfa814389cb9f9b03c0efe090ac9548263d828
View file https://github.com/coder/coder/blob/c7ca3895077a6d725edc3a8672157932f4b9f72f/site/next-env.d.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/coder/coder/pull/4/{{ revealButtonHref }}
site/tsconfig.jsonhttps://github.com/coder/coder/pull/4/files#diff-699025e1aa80a3098a7dbe624e5a2ee09f50175c35445689bebccaf0c751c3ac
View file https://github.com/coder/coder/blob/c7ca3895077a6d725edc3a8672157932f4b9f72f/site/tsconfig.json
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/coder/coder/pull/4/{{ revealButtonHref }}
bryphe-coderhttps://github.com/bryphe-coder
Jan 5, 2022https://github.com/coder/coder/pull/4/files#r778510037
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/coder/coder/pull/4/files
site/webpack.config.jshttps://github.com/coder/coder/pull/4/files#diff-983a3875b8808c1cc3ece3aeb7bf62b35b0fbbd2d1ba77ba4b1ab7e4cb4fd43e
View file https://github.com/coder/coder/blob/c7ca3895077a6d725edc3a8672157932f4b9f72f/site/webpack.config.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/coder/coder/pull/4/{{ revealButtonHref }}
bryphe-coderhttps://github.com/bryphe-coder
Jan 5, 2022https://github.com/coder/coder/pull/4/files#r778510116
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/coder/coder/pull/4/files
Please reload this pagehttps://github.com/coder/coder/pull/4/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.