Repository navigation
api | web: let teams upload custom icons and use an up-down chevron - #11
Merged
Merged
Conversation
… chevron - Teams can upload an SVG, PNG or JPEG icon of up to 50 KB. It is stored in Postgres in a separate team_icons table, one row per team, and the row is deleted along with its team. - A team with no uploaded icon shows the first letter of its name in a circle. An uploaded icon is cropped to a circle with a border. - The icon shows in the navbar, the team switcher and the mobile sheet. The switcher now uses an up-down chevron. - The general tab in team settings now has a Team Details card (name and description) and a Team Avatar card. Both use a shared settings card with the save action in the footer. The avatar card shows an edit control when you hover over or press the avatar.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Teams can now set their own icon. The team switcher now uses an up-down chevron.
Icon storage
team_iconstable, with one row per team. The row is unique onteam_idand is removed withON DELETE CASCADEwhen its team is deleted.20261016222621_team_icons.sql.How icons look
Team settings
SettingsCard, which puts the save action in the footer like the variables section does. The rename card on the project settings page uses it too.Testing
repositories/team/icon_test.go).services/team/icon_file_test.go).