-
-
Notifications
You must be signed in to change notification settings - Fork 218
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: force login (close #1132) #1184
Conversation
β Deploy Preview for design-insights ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
β Deploy Preview for oss-insights ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site settings. |
We can land this but if they select repos and are go to login, when they return the repos won't be selected |
Is there any updates I need to do for this PR? |
@a0m0rajab does this redirect to the new insight page with the selected repos after login? |
No, I just misunderstood your first comment, wanted to know what you meant by refactoring. |
I think going with The supabase redirect functioned worked one time while doing this not sure how... As a solution to have shorter URL would be to pass an array with repos IDs and parse them in the app. Beside that one thing I figured was that: the |
@a0m0rajab yes, only passing selectRepos as just the IDs would be a better fix. Then you'd have to fetch the repos using the |
Thank you for that, Just another solution I got in mind is using localStorage to get the repos as well. |
We discussed using local storage previously and its too prone to error with unpredictable navigation |
Hey @a0m0rajab, have you been able to try @brandonroberts suggestion?... Let me know if you are blocked anytime π |
@OgDev-01 Thank you for asking, I just did not find time recently, might do it at the weekend. |
Got blocked while working on this, had the same long URI issue from supabase this time. |
Hey @a0m0rajab, the Supabase redirect issue was fixed in #1240. Try pulling the latest changes and try it again. Let us know if you're still facing an issue π |
@takanome-dev it did not work, still the same issue, I think it was my mistake, just solved the issue, had to remove a test code. |
@brandonroberts is this what you are talking about? 2023-06-22.00-18-04.mp4Or do you mean that if they logged out in the add new insight page, we need to stay at the same page? |
@a0m0rajab I was logged out, I selected some repos, and clicked "Add to Insight Page". It took me to login, and brought me back but didn't keep me on the "Create Insight Page" with the selected repos |
@brandonroberts could it be a cache issue? I tried this with incognito mode and it worked. 2023-06-22.17-16-05.mp4 |
@a0m0rajab I haven't tried it locally, but only through the PR deploy preview. I tried it with incognito mode also |
I will add a few debuggers to test the issue. |
@brandonroberts i tested it on the preview and it worked, I had to change the remove login to signout. |
Latest video: 2023-06-23.11-23-58.mp4 |
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.
Minor tweak
@a0m0rajab everything works correctly now. Remove the console.log statements and we're good to go |
Done π |
π This PR is included in version 1.54.0-beta.4 π The release is available on GitHub release Your semantic-release bot π¦π |
## [1.54.0](v1.53.0...v1.54.0) (2023-06-28) ### π Bug Fixes * fix yellow color for `<Pill />` component ([#1299](#1299)) ([2f2d9f5](2f2d9f5)) ### π Features * hide highlights tab components on profiles without highlights ([#1304](#1304)) ([976739f](976739f)) * add `BillBoard` component to design system ([#1306](#1306)) ([1181cfd](1181cfd)) * add `FeaturedHighlightPanel` component to design system ([#1307](#1307)) ([452213c](452213c)) * add `UserCard` component to storybook design system ([#1295](#1295)) ([6867011](6867011)) * add highlight prompt to design system ([#1297](#1297)) ([4a85e74](4a85e74)) * add top users panel component to design system ([#1300](#1300)) ([9c05fec](9c05fec)) * add URL for collaboration requests ([#1305](#1305)) ([b3f8ea5](b3f8ea5)) * allow login flow after selecting repositories to add to insight page (close [#1132](#1132)) ([#1184](#1184)) ([21aaa0b](21aaa0b)) * implemented/added scroll-area component to design-system ([#1283](#1283)) ([b7280ab](b7280ab))
π This PR is included in version 1.54.0 π The release is available on GitHub release Your semantic-release bot π¦π |
## [1.54.0-beta.4](open-sauced/app@v1.54.0-beta.3...v1.54.0-beta.4) (2023-06-26) ### π Features * allow login flow after selecting repositories to add to insight page (close [#1132](open-sauced/app#1132)) ([#1184](open-sauced/app#1184)) ([21aaa0b](open-sauced/app@21aaa0b))
## [1.54.0](open-sauced/app@v1.53.0...v1.54.0) (2023-06-28) ### π Bug Fixes * fix yellow color for `<Pill />` component ([#1299](open-sauced/app#1299)) ([2f2d9f5](open-sauced/app@2f2d9f5)) ### π Features * hide highlights tab components on profiles without highlights ([#1304](open-sauced/app#1304)) ([976739f](open-sauced/app@976739f)) * add `BillBoard` component to design system ([#1306](open-sauced/app#1306)) ([1181cfd](open-sauced/app@1181cfd)) * add `FeaturedHighlightPanel` component to design system ([#1307](open-sauced/app#1307)) ([452213c](open-sauced/app@452213c)) * add `UserCard` component to storybook design system ([#1295](open-sauced/app#1295)) ([6867011](open-sauced/app@6867011)) * add highlight prompt to design system ([#1297](open-sauced/app#1297)) ([4a85e74](open-sauced/app@4a85e74)) * add top users panel component to design system ([#1300](open-sauced/app#1300)) ([9c05fec](open-sauced/app@9c05fec)) * add URL for collaboration requests ([#1305](open-sauced/app#1305)) ([b3f8ea5](open-sauced/app@b3f8ea5)) * allow login flow after selecting repositories to add to insight page (close [#1132](open-sauced/app#1132)) ([#1184](open-sauced/app#1184)) ([21aaa0b](open-sauced/app@21aaa0b)) * implemented/added scroll-area component to design-system ([#1283](open-sauced/app#1283)) ([b7280ab](open-sauced/app@b7280ab))
What type of PR is this? (check all applicable)
Description
This PR closes #1132
Related Tickets & Documents
Mobile & Desktop Screenshots/Recordings
When the user is not logged it, it will force login.
Added tests?
Added to documentation?