Skip to content

Home: Introduced an organizations list behind the sidebar's Repositories heading - #174

Merged
whereareiam merged 1 commit into
devfrom
feat/home-organizations
Oct 31, 2026
Merged

whereareiam merged 1 commit into
devfrom
feat/home-organizations

Conversation

@whereareiam

Copy link
Copy Markdown
Owner

Summary

The home page's sidebar only listed repositories, so the only way to reach one of your organizations was the account switcher, then the organization. Now, if you belong to an organization, the Repositories heading opens a small menu with Repositories and Organizations. Picking Organizations swaps the list for your organizations, each linking to its page.

  • Looks like GitHub until used. The heading keeps GitHub's look: the same text, size and colour, with a caret after it. The menu is the theme's usual single-choice dropdown.
  • Remembered. The choice is kept in the browser and restored before the page is drawn, so the list doesn't flicker. If you never switch, the sidebar stays as it was apart from the caret.
  • No organizations, no change. Without organizations the heading stays plain, exactly as before.
  • No extra request. Forgejo's dashboard already passes the organizations to the page (.Orgs), so nothing is fetched. Organization dashboards use the same template and get the same menu.
  • Translations. The labels are Forgejo's own home.my_repos and home.my_orgs.
  • No leave warning. The menu sits in a .ui.form for the dropdown's option styles, marked ignore-dirty so switching lists doesn't trigger Forgejo's "leave page?" warning.

Before and after

Home (/), 1280×760, dark, signed in as alex (member of acme and globex). After: the menu closed, open, and with Organizations chosen.

Before After
Before: the sidebar's Repositories heading over the repository list After: the heading with a caret, its Repositories/Organizations menu, and the organizations list

Release notes

  • The title follows Area: Description with a listed area
  • The title describes the effect in the past tense
  • Exactly one label: feature
  • bug only for a bug that shipped in a release (not applicable)
  • major not needed
  • No upgrade steps

Checks

  • Tests updated (src/build-output.test.ts). bun bundle and bun vitest pass (568 tests), and Prettier is clean.
  • Checked in the dev preview:
    • at desktop and phone width (400px, sidebar opened), in dark and light;
    • on an organization dashboard;
    • the choice survives a reload;
    • switching then following a link shows no leave-page warning.

🤖 Generated with Claude Code

@whereareiam whereareiam added the feature Something new for users label Oct 31, 2026
The home sidebar listed only repositories, so an organization was only
reachable through the account switcher. With organizations, the
Repositories heading now opens a menu, as GitHub's single-choice menus
do, that swaps the list for the signed-in user's organizations, each
linking to its page. Forgejo's dashboard already lists them, so nothing
is fetched. The choice is kept in the browser and restored before the
first paint, so someone who keeps Repositories sees GitHub's sidebar
with a caret after the heading. Without organizations the heading stays
plain.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@whereareiam
whereareiam force-pushed the feat/home-organizations branch from 64e806c to 5c366b8 Compare October 31, 2026 20:38
@whereareiam
whereareiam merged commit 752e431 into dev Oct 31, 2026
5 checks passed
@whereareiam
whereareiam deleted the feat/home-organizations branch October 31, 2026 20:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature Something new for users

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant