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

Refactor Groq queries #508

Merged
merged 1 commit into from
Dec 6, 2024
Merged

Refactor Groq queries #508

merged 1 commit into from
Dec 6, 2024

Conversation

w3bdesign
Copy link
Owner

@w3bdesign w3bdesign commented Dec 6, 2024

Fixes #507

Refactor Groq queries to a separate file and update imports.

  • Add pageContentQuery and navigationQuery to src/lib/sanity/queries.ts.
  • Remove pageContentQuery from src/app/page.tsx and import it from src/lib/sanity/queries.ts.
  • Remove projectsQuery from src/app/prosjekter/page.tsx and import it from src/lib/sanity/queries.ts.
  • Remove navigationQuery from src/app/RootLayout.tsx and import it from src/lib/sanity/queries.ts.

For more details, open the Copilot Workspace session.

Fixes #507

Refactor Groq queries to a separate file and update imports.

* Add `pageContentQuery` and `navigationQuery` to `src/lib/sanity/queries.ts`.
* Remove `pageContentQuery` from `src/app/page.tsx` and import it from `src/lib/sanity/queries.ts`.
* Remove `projectsQuery` from `src/app/prosjekter/page.tsx` and import it from `src/lib/sanity/queries.ts`.
* Remove `navigationQuery` from `src/app/RootLayout.tsx` and import it from `src/lib/sanity/queries.ts`.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/w3bdesign/dfweb-v4/issues/507?shareId=XXXX-XXXX-XXXX-XXXX).
Copy link

vercel bot commented Dec 6, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
dfweb-v4 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 6, 2024 3:26am

Copy link

sonarqubecloud bot commented Dec 6, 2024

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.38%. Comparing base (67b7f2f) to head (29ac523).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #508   +/-   ##
=======================================
  Coverage   99.38%   99.38%           
=======================================
  Files          32       32           
  Lines         324      324           
  Branches       81       86    +5     
=======================================
  Hits          322      322           
  Misses          2        2           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@w3bdesign w3bdesign merged commit a3b86a1 into main Dec 6, 2024
10 checks passed
@w3bdesign w3bdesign deleted the refactor-groq-queries branch December 16, 2024 23:40
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.

Refactor Groq queries
2 participants