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

Weekly calendar past events #1

Merged

Conversation

vipermark7
Copy link
Contributor

@vipermark7 vipermark7 commented Feb 12, 2025

Screenshot of the Torc weekly calendar picking up past events. Clicking the back button < showed no events, because none were coming from the Guild API

image

Copy link

vercel bot commented Feb 12, 2025

@vipermark7 is attempting to deploy a commit to the jasonetorres' projects Team on Vercel.

A member of the Team first needs to authorize it.

Copy link

@tazsingh tazsingh left a comment

Choose a reason for hiding this comment

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

Thanks for putting this together @vipermark7 ! 🚀

Providing my thoughts 🙏 But I'll let Jason have the final say as it's his repo!

Excited to see this happening! 🙌

Comment on lines +67 to +75
<p>Events brought to you by
<a
href="https://guild.host/?utm_source=referral&utm_medium=chat&utm_campaign=general_link"
target="_blank" rel="noopener noreferrer"
className="text-blue-600 hover:underline"
>
Guild.host
</a>
</p>

Choose a reason for hiding this comment

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

@vipermark7 I'm not sure if your editor is re-formatting things like this? But may be good to disable that if it is

Copy link
Owner

Choose a reason for hiding this comment

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

yeah thats making my eye twitch lol

try {
setLoading(true);

while (hasPreviousPage) {

Choose a reason for hiding this comment

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

This approach appears to eagerly load all events that exist across all of Torc

I understand that's more-or-less what it was doing before, so maybe this is fine as a first step? I'll let Jason weigh in

However as a follow-up, I'd like to see it more incrementally loading each page as needed. Essentially, if the final item that's available is less than the start/end of the week that's being displayed, then load in the next page

Copy link
Owner

@jasonetorres jasonetorres left a comment

Choose a reason for hiding this comment

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

approved PR

Copy link

vercel bot commented Feb 12, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
torcal ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 12, 2025 8:56pm

@vipermark7
Copy link
Contributor Author

vipermark7 commented Feb 12, 2025 via email

Comment on lines +67 to +75
<p>Events brought to you by
<a
href="https://guild.host/?utm_source=referral&utm_medium=chat&utm_campaign=general_link"
target="_blank" rel="noopener noreferrer"
className="text-blue-600 hover:underline"
>
Guild.host
</a>
</p>
Copy link
Owner

Choose a reason for hiding this comment

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

yeah thats making my eye twitch lol

@jasonetorres jasonetorres merged commit b50cfcc into jasonetorres:main Feb 12, 2025
2 checks passed
tazsingh added a commit to tazsingh/project-8 that referenced this pull request Feb 12, 2025
…ndar-past-events"

This reverts commit b50cfcc, reversing
changes made to 39eaa5e.
@tazsingh tazsingh mentioned this pull request Feb 12, 2025
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