-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Setup data loading for repos list #18935
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
Conversation
New dependencies detected. Learn more about Socket for GitHub ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great!
Love the @podkit
alias and the old Projects page seems to still work as expected. Thank you
project: Project; | ||
}; | ||
export const RepositoryListItem: FC<Props> = ({ project }) => { | ||
const url = usePrettyRepoURL(project.cloneUrl); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could potentially change this to omit the scheme in the future, as I don't think it makes much of a difference with all of them being http/https.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good call, I'll def do that in a followup, mostly an oversight 😄
/unhold |
Description
This sets up basics to load the first page of configured repositories (projects) and lists them w/ links to their respective detail pages. This is all behind a flag still and is meant to enable followup/adjacent work.
This isn't intended to match our design target, just unlock some functionality and get data on the UI.
useListProjectsQuery
touseListAllProjectsQuery
as that's what it was doing.useListProjectsQuery
that loads a single page of projects instead.@podkit
alias for thesrc/components/podkit
foldercn()
helper to assist in merging tailwind classNames (as suggested here in shadcn)<Text>
and<TextMuted>
component to encapsulate text colors & dark mode (I'm not sure if this is the best way to go about this yet, but wanted to start w/ it).Summary generated by Copilot
🤖 Generated by Copilot at 48f8c15
Added a new query hook and component for listing all projects without pagination, and updated existing components to use either the new or the old query hook depending on the context. This improves the performance and usability of the dashboard for creating and managing projects and their repositories. The affected files are
create-project-mutation.ts
,project-context.tsx
,Projects.tsx
,ProjectSettings.tsx
,CreateWorkspacePage.tsx
,list-all-projects-query.ts
,list-projects-query.ts
, andRepositoryList.tsx
.Related Issue(s)
Fixes EXP-795 & EXP-802 & EXP-796
How to test
/repositories
and verify your project you created is listed./repositories/:id
(data not loaded there yet, verify url)Documentation
Preview status
Gitpod was successfully deployed to your preview environment.
Build Options
Build
Run the build with werft instead of GHA
Run Leeway with
--dont-test
Publish
Installer
Add desired feature flags to the end of the line above, space separated
Preview Environment / Integration Tests
If enabled this will build
install/preview
If enabled this will create the environment on GCE infra
Valid options are
all
,workspace
,webapp
,ide
,jetbrains
,vscode
,ssh
. If enabled,with-preview
andwith-large-vm
will be enabled./hold