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

feat: Add sharing support #264

Merged
merged 16 commits into from
Mar 4, 2024
Merged

feat: Add sharing support #264

merged 16 commits into from
Mar 4, 2024

Conversation

elcharitas
Copy link
Member

@elcharitas elcharitas commented Feb 27, 2024

No description provided.

@elcharitas elcharitas marked this pull request as ready for review February 29, 2024 03:13
@elcharitas elcharitas marked this pull request as draft February 29, 2024 09:03
@elcharitas elcharitas marked this pull request as ready for review February 29, 2024 09:03
@elcharitas
Copy link
Member Author

There's some weird issue here with linting. Linting works locally but on the actions it fails.
I've been inspecting but if anyone has a clue please mention it

@v-almonacid v-almonacid marked this pull request as draft February 29, 2024 13:24
@v-almonacid v-almonacid marked this pull request as ready for review February 29, 2024 13:24
Copy link
Contributor

@v-almonacid v-almonacid left a comment

Choose a reason for hiding this comment

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

The main thing we are missing for this to be working properly is having a
superfeed/:id route that we can actually share. Otherwise, what are we sharing right now?

EDIT: Discussed this with @faraggi today: We are gonna go for the simples solution first, which is just to share the url.
We'll then see if we can work on a BE proxy so that we can keep users in the app.

describe("shareUtils", () => {
describe("canShare", () => {
it("should return true if the Web Share API is supported", () => {
expect(canShare()).toBe(true);
Copy link
Contributor

Choose a reason for hiding this comment

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

weird that this is true during a test, which is run on node 🤔

Copy link
Contributor

@Xavier-Charles Xavier-Charles left a comment

Choose a reason for hiding this comment

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

Uploading Screenshot 2024-03-01 at 12.08.34.png…

Copy link
Contributor

@Xavier-Charles Xavier-Charles left a comment

Choose a reason for hiding this comment

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

I get this error
Screenshot 2024-03-04 at 10 59 11

@elcharitas
Copy link
Member Author

elcharitas commented Mar 4, 2024

I get this error Screenshot 2024-03-04 at 10 59 11

Yes, sharing ideally doesn't work on desktop. We're making use of the user's device native capabilities to handle sharing.

Note: I did research into the possibility of enabling sharing for desktop and there's a package we could use. However, since the superfeed is mobile-only, I see no reason to implement this unless you guys think otherwise.

cc: @v-almonacid @faraggi

@Xavier-Charles
Copy link
Contributor

I get this error Screenshot 2024-03-04 at 10 59 11

Yes, sharing ideally doesn't work on desktop. We're making use of the user's device native capabilities to handle sharing.

Note: I did research into the possibility of enabling sharing for desktop and there's a package we could use. However, since the superfeed is mobile-only, I see no reason to implement this unless you guys think otherwise.

cc: @v-almonacid @faraggi

I'll deploy this branch to epsilon then and test on mobile.

@v-almonacid
Copy link
Contributor

Note: I did research into the possibility of enabling sharing for desktop and there's a package we could use. However, since the superfeed is mobile-only, I see no reason to implement this unless you guys think otherwise.

cc: @v-almonacid @faraggi

Let's focus on mobile only 👍

@Xavier-Charles
Copy link
Contributor

I'll deploy this branch to epsilon then and test on mobile.

Works on mobile. Please resolve conflicts.

Copy link
Contributor

@Xavier-Charles Xavier-Charles left a comment

Choose a reason for hiding this comment

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

Please resolve conflicts.

@elcharitas elcharitas marked this pull request as draft March 4, 2024 12:45
@elcharitas elcharitas marked this pull request as ready for review March 4, 2024 12:46
@elcharitas elcharitas marked this pull request as draft March 4, 2024 13:32
@elcharitas elcharitas marked this pull request as ready for review March 4, 2024 13:32
@elcharitas elcharitas marked this pull request as draft March 4, 2024 13:38
@elcharitas elcharitas marked this pull request as ready for review March 4, 2024 13:38
@v-almonacid v-almonacid merged commit 157c8d5 into dev Mar 4, 2024
1 check passed
@v-almonacid v-almonacid deleted the ALPHA-4678-share-button branch March 4, 2024 13:42
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