Skip to content

feat: use RTK Query for server-side data fetches#4043

Merged
leafty merged 16 commits into
mainfrom
leafty/exp-ssr-fetch
Mar 10, 2026
Merged

feat: use RTK Query for server-side data fetches#4043
leafty merged 16 commits into
mainfrom
leafty/exp-ssr-fetch

Conversation

@leafty
Copy link
Copy Markdown
Member

@leafty leafty commented Feb 23, 2026

Add the project overview and the project settings pages to be handled from routes.ts with server-side API data loading (in production).

This allows us to generate project-specific meta tags which is nice for sharing Renku projects in socials.

See meta tags example:
Screenshot 2026-02-24 at 12 53 30

Important note: Sentry trace propagation is working, here is an example page load, with the included API request to get the project data server-side
Screenshot 2026-02-24 at 16 34 16

/deploy extra-values=ui.client.resources.limits.memory=300Mi,ui.client.resources.requests.memory=300Mi,ui.client.sentry.enabled=false,ui.client.sentry.environment=renku-ci-ui-4043,ui.client.sentry.sampleRate=1,ui.client.sentry.dsn=https://b8aaa5810d2743f281350c0944c38ec8@o4509039310995456.ingest.de.sentry.io/4509044025131088

@RenkuBot
Copy link
Copy Markdown
Contributor

You can access the deployment of this PR at https://renku-ci-ui-4043.dev.renku.ch

@leafty leafty marked this pull request as ready for review February 24, 2026 15:36
@leafty leafty requested a review from a team as a code owner February 24, 2026 15:36
Comment thread client/server/constants.ts Outdated
Comment thread client/server/constants.ts Outdated
@leafty leafty force-pushed the leafty/exp-ssr-fetch branch from fda4e85 to 7274acc Compare March 3, 2026 08:11
@leafty leafty force-pushed the leafty/exp-ssr-fetch branch from 7274acc to c69ae41 Compare March 3, 2026 08:11
Copy link
Copy Markdown
Member

@lorenzo-cavazzi lorenzo-cavazzi left a comment

Choose a reason for hiding this comment

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

This is a nice solution and it works well 👏 We can go on and merge it 🚀

I still wonder if we could take a different approach to keep the logic as simple as possible, like duplicating the query on the server side to fetch the information for the pre-viewable fields, leaving the existing client-side RTK queries unmodified.

Comment thread client/src/features/usersV2/api/users.api.ts Outdated
Comment thread client/src/features/usersV2/api/users.api.ts Outdated
@leafty leafty requested a review from lorenzo-cavazzi March 10, 2026 09:50
@leafty leafty merged commit 682fddc into main Mar 10, 2026
36 of 49 checks passed
@leafty leafty deleted the leafty/exp-ssr-fetch branch March 10, 2026 10:38
@RenkuBot
Copy link
Copy Markdown
Contributor

Tearing down the temporary RenkuLab deplyoment for this PR.

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.

3 participants