Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update the directory structure in the dApp #915

Merged
merged 4 commits into from
Dec 6, 2024
Merged

Conversation

kkosiorowska
Copy link
Contributor

@kkosiorowska kkosiorowska commented Dec 4, 2024

Closes AENG-158

This PR fixes the directory structure for dApp a bit. Let's make further possible tweaks in the next PRs. What has been done:

  • Reduced the directory structure and pull the existing components one level up.
  • Used the same names on the file and the component inside. We should not decouple file name from component name—these should match.

@kkosiorowska kkosiorowska added the 🎨 dApp dApp label Dec 4, 2024
@kkosiorowska kkosiorowska self-assigned this Dec 4, 2024
Copy link

netlify bot commented Dec 4, 2024

Deploy Preview for acre-dapp ready!

Name Link
🔨 Latest commit 86dc681
🔍 Latest deploy log https://app.netlify.com/sites/acre-dapp/deploys/6752ade512b84c0008b5c1a2
😎 Deploy Preview https://deploy-preview-915--acre-dapp.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Dec 4, 2024

Deploy Preview for acre-dapp-testnet ready!

Name Link
🔨 Latest commit 86dc681
🔍 Latest deploy log https://app.netlify.com/sites/acre-dapp-testnet/deploys/6752ade597eba90008dcf3f1
😎 Deploy Preview https://deploy-preview-915--acre-dapp-testnet.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

If there's only an index file, there's no need to have a directory with an index.* file. The idea with using index.tsx is that imports can remain unchanged in cases where we upgrade from having a single-file component to needing scoped sibling components.
@kkosiorowska kkosiorowska force-pushed the update-directory-structure branch from 98de67d to 6e4c0aa Compare December 4, 2024 12:21
We should not decouple file name from component name—these should match.
@kkosiorowska kkosiorowska force-pushed the update-directory-structure branch from 4505850 to ef61f7d Compare December 4, 2024 13:22
Copy link

linear bot commented Dec 4, 2024

@kkosiorowska kkosiorowska marked this pull request as ready for review December 4, 2024 13:35
r-czajkowski
r-czajkowski previously approved these changes Dec 6, 2024
@nkuba nkuba merged commit bf41dbb into main Dec 6, 2024
28 checks passed
@nkuba nkuba deleted the update-directory-structure branch December 6, 2024 10:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants