-
Notifications
You must be signed in to change notification settings - Fork 5
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
Feat/config installer #13
base: main
Are you sure you want to change the base?
Conversation
QA with official plugin URL: demo-sbs.mp4@zugdev I saw you say that this codebase is your scope, perhaps you want to start reviewing my PRs as I think 0x4007 is busy. |
I will review UI, yes. Regarding my contribution, I think it makes more sense for this to be merged first and only then implement styling. |
Co-authored-by: Mentlegen <[email protected]>
@gentlementlegen, is null valid for |
@Keyrxng Yes it is, it means the module is disabled. |
Understood. That's the kinda thing I'm trying to think how can we tell the partner that for any prop on any plugin? My first thought is to capture Or present them the readme when they select a plugin which should say Any better ideas? |
Alright well I'm going to grab QA of:
Is there anything else I need to do to get this merged, spec was minimal but it has been achieved:
|
Actions doesn't seem to be building this PR and therefore no deployments are available. 0x4007 just merged template into this repo, so pulling from |
Actions are failing due to env vars which I cannot edit I'm afraid. Jest is failing due to the old Also afaik preview deployments are for reviewers that aren't able to QA locally like 0x4007 from mobile etc. This does run locally if you'd like to QA it. |
Yes, deployments are a mere facilitator, I understand the circumstances. I'll be testing it locally soon! |
LFFGGG Some points for setup:
Known problems:
|
I decided to display objects via add-remove-add-multi.mp4 |
I'm going to move on and complete other tasks while reviews are pending |
If I sign in with an account that has nothing to show, we should tell that to the user. The auth token is not being cleared on sign out, the only way for me to currently logout is to clear my cookies manually. Screen.Recording.2024-11-12.001120.mp4Also we have a scope error that is not allowing it to fetch my orgs correctly, I've pinpointed the issue in my review comments: |
I think you should try catch whatever can fail, that certainly includes HTTP requests. For instance, to get the list of app installations you need an authenticated GitHub app. I couldn't login with my org so I got deadlocked. We should at least show a message in those cases. |
Ignore what I previously said about auth, already hid my comments, my Supabase is set for OAuth - my bad. However I still believe there should be try catches. How should I set this up? I don't see a way to do it in Supabase's dashboard. Or did you mean signing in with a GitHub app? If that's the case, I wasn't able to. |
@@ -9,15 +11,56 @@ async function handleAuth() { | |||
if (!token) { | |||
// await auth.signInWithGithub(); force a login? |
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.
Don't force a login, just display a default message
public async getGitHubUserOrgs(): Promise<string[]> { | ||
const octokit = await this.getOctokit(); | ||
const response = await octokit.request("GET /user/orgs"); |
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.
This is failing, it seems that the correct endpoint for this request would be "GET /organizations", based on this piece of docs: https://docs.github.com/pt/rest/orgs/orgs?apiVersion=2022-11-28#list-organizations
Resolves #3
Requires #11 and #12 (reviewing those could be skipped and focus placed just on this PR)
ubiquity-os-marketplace
and grabbing manifestsStill buggy with some plugins I need to inspect the more complex ones and handle their configs better but this shows what it looks like with a plugin with a medium size config. It should be ready to over the next day.
@zugdev Idk if you want to work your magic after this is merged, branch off and PR against dev or into this before that or just review and create a spec for what's needed? What do you think?
We can still build this UI with the ability to read from a query param directly too but it's a cleaner approach housing them all imo.
.ts
we use JSDoc comments on input props and it fills the IDE. This would be handy af if we had a workflow to parse these and write them to the manifest which could be read on this UI: e.grequiredLabelsToStart
without defaults might be confusing to a partnerQA:
plugin-installer-demo.mp4