Skip to content

Story 2385: Integrate Community Page Links#2402

Merged
herzog0 merged 21 commits into
developfrom
teo/community-page-wiring
May 15, 2026
Merged

Story 2385: Integrate Community Page Links#2402
herzog0 merged 21 commits into
developfrom
teo/community-page-wiring

Conversation

@herzog0
Copy link
Copy Markdown
Collaborator

@herzog0 herzog0 commented May 6, 2026

Issue: #2385

Summary & Context

This PR integrates the Community Page with backend data, fixing all CTA and Link URLs and adjusting some minor copy text.

Changes

  • Modify core/views.py to pull data from the database instead of mocked data;
  • Modify v3/community.html to ssr some CTA links;
  • Modify _thread_archive_card.html to accept url arguments;
  • Add a many-to-many model to hold pinned library information;
  • Fix the globally selected boost version to also work in the community page;

Testing pinned libraries

image - Move the libs you wanna pin to the right pane, hit save; - Go to the community page again, refresh, and you should see the pinned libraries at the top of the libraries card;

Screenshots

image

Self-review Checklist

  • Tag at least one team member from each team to review this PR
  • Link this PR to the related GitHub Project ticket

Frontend

  • UI implementation matches Figma design
  • Tested in light and dark mode
  • Responsive / mobile verified
  • Accessibility checked (keyboard navigation, etc.)
  • Ensure design tokens are used for colors, spacing, typography, etc. – No hardcoded values
  • Test without JavaScript (if applicable)
  • No console errors or warnings

@herzog0 herzog0 changed the title Implements V3 Community Page and Refactors V3 URL Structure Story 2385: Integrate Community Page Links May 6, 2026
@herzog0 herzog0 linked an issue May 6, 2026 that may be closed by this pull request
Base automatically changed from gk/community-page to develop May 6, 2026 18:00
@herzog0 herzog0 force-pushed the teo/community-page-wiring branch from 962755c to 1621dac Compare May 6, 2026 18:16
Copy link
Copy Markdown
Collaborator

@julhoang julhoang left a comment

Choose a reason for hiding this comment

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

Hi @herzog0 ! This is looking great. I'm just mainly requesting change to exclude deleted posts from the Entry query and add the ability to pin library in the Library Card 🙏

I also have a general question – what should be our mental model for where to declare the text copies? Should HTML templates own those text declarations and the context only supply dynamic data? If that's the case, perhaps the most of the data for ctx["help_options"] can be declared in the _help_card, just except the URLs? 🤔

Comment thread core/views.py Outdated
Comment thread core/views.py
Comment thread core/views.py Outdated
Comment thread core/views.py Outdated
Comment thread core/views.py Outdated
Comment thread core/views.py
Comment thread core/views.py
Copy link
Copy Markdown
Collaborator

@jlchilders11 jlchilders11 left a comment

Choose a reason for hiding this comment

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

Couple of small things, and expanding on some comments Julia made. Looks good otherwise!

Comment thread core/views.py Outdated
Comment thread core/views.py Outdated
Comment thread core/views.py
Comment thread core/views.py Outdated
Copy link
Copy Markdown
Collaborator

@julioest julioest left a comment

Choose a reason for hiding this comment

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

UI looks great. Pre-approving

@herzog0 herzog0 force-pushed the teo/community-page-wiring branch 3 times, most recently from 05ba75f to e20ebf7 Compare May 7, 2026 19:19
@herzog0 herzog0 requested review from jlchilders11 and julhoang May 8, 2026 13:46
Copy link
Copy Markdown
Collaborator

@jlchilders11 jlchilders11 left a comment

Choose a reason for hiding this comment

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

This looks good to me, thanks for addressing my feedback!

Copy link
Copy Markdown
Collaborator

@julhoang julhoang left a comment

Choose a reason for hiding this comment

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

Hi @herzog0 ! I just added 1 suggestion for you to consider regarding centralizing the selected version logic with the header context. Otherwise everything looks great to me!

Comment thread templates/v3/includes/_join_slack_card.html Outdated
Comment thread core/views.py
Comment thread core/views.py Outdated
Comment thread core/constants.py
@herzog0 herzog0 force-pushed the teo/community-page-wiring branch from 257a1ce to 5aed6bb Compare May 11, 2026 14:58
@herzog0 herzog0 requested a review from julhoang May 12, 2026 14:09
baker.make(
"libraries.LibraryVersion",
library=baker.make("libraries.Library", name=f"lib-{i}"),
library=baker.make("libraries.Library", name=f"lib-{i}", slug=f"lib-{i}"),
Copy link
Copy Markdown
Collaborator Author

@herzog0 herzog0 May 12, 2026

Choose a reason for hiding this comment

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

Don't bother with this. My previous deployment got lucky and ran into a slug key collision. Random suffixes are added in libraries/models.py line 359, and if the slug prefix is None (which used to be the case in this line I'm editing) we got a small chance of collision. Re-running the job fixed it, but I'm adding this just so it doesn't happen again.

Copy link
Copy Markdown
Collaborator

@julhoang julhoang left a comment

Choose a reason for hiding this comment

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

Just 1 nit on the date format, otherwise it looks great – thank you for all the updates @herzog0 ! 🙌

Comment thread templates/v3/includes/_post_card.html Outdated
herzog0 added 8 commits May 12, 2026 16:04
feat: fetch flagship libraries from database for community page discover section

feat: fetch recent published entries from database for community page posts section

fix: wire CTA URLs for contributing, libraries listing, and posts feed

feat: add dynamic year/month URL for mailing list recent threads card

refactor: build all CTA URLs in the view using request.build_absolute_uri

fix: build contribute_url dynamically using request host
@herzog0 herzog0 force-pushed the teo/community-page-wiring branch from 53be7e5 to 80ac7ff Compare May 12, 2026 19:04
Copy link
Copy Markdown
Collaborator

@kattyode kattyode left a comment

Choose a reason for hiding this comment

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

QA Approved

@herzog0 herzog0 merged commit c4f1628 into develop May 15, 2026
4 checks passed
@herzog0 herzog0 deleted the teo/community-page-wiring branch May 15, 2026 01:18
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.

Webpage Integration: Community Page

5 participants