Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

chore(svelte): Update fuzzy finder designs#63354

Merged
fkling merged 4 commits into
mainfrom
fkling/srch-458-update-fuzzy-finder-designs
Jun 20, 2024
Merged

chore(svelte): Update fuzzy finder designs#63354
fkling merged 4 commits into
mainfrom
fkling/srch-458-update-fuzzy-finder-designs

Conversation

@fkling

@fkling fkling commented Jun 19, 2024

Copy link
Copy Markdown
Contributor

Closes srch-458

This implements the new fuzzy finder design, specifically:

  • Backdrop and dropshadow
  • Border radius
  • Tab header (affects all tab headers)
  • Options

Note 1: Some aspects of the options UI (such as how paths are rendered and highlighted), and the "footer" depend on how the highlighted parts are computed. This will change when the local matching and ranking logic is removed and will be updated when that happens.

Note 2: The symbol icon coloring was broken by #63288 and will be fixed in a separate PR.

Panel Before After
Repo (light) 2024-06-19_21-04 2024-06-19_21-03
Repo (dark) 2024-06-19_21-05 2024-06-19_21-04_1
Symbol (light) 2024-06-19_21-05_2 2024-06-19_21-06_2
Symbol (dark) 2024-06-19_21-05_1 2024-06-19_21-07
File (light) 2024-06-19_21-06 2024-06-19_21-07_1
File (dark) 2024-06-19_21-06_1 2024-06-19_21-07_2

Test plan

Manual testing

Changelog

Closes srch-458

This implements the new fuzzy finder design, specifically:

- Backdrop and dropshadow
- Border radius
- Tab header (affects all tab headers)
- Options
@fkling fkling requested review from a team and taiyab June 19, 2024 19:11
@fkling fkling self-assigned this Jun 19, 2024
@cla-bot cla-bot Bot added the cla-signed label Jun 19, 2024

@camdencheek camdencheek left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks great!

Comment on lines +362 to +364
.icon {
grid-area: icon;
}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Design feedback: the placement of the icon looks weird to me. It doesn't quite align visually with the label, it's also not centered on entry as a whole, and since there is no separator between elements, it kinda just looks like it's floating out in space.

screenshot-2024-06-19_13-52-11@2x

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The icon should now be centered with the top line. Personally I think it's OK.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This type of placement is usually done to make the icon not look out of place when placed against a multi-line label or something. In reality, it's aligned top-left to the entire item, then padded a bit.

Happy either way. Might not matter because we don't do multi-line here anyway.

Comment on lines +339 to +343
display: grid;
grid-template-columns: [icon] auto [label] 1fr;
grid-template-rows: auto;
grid-template-areas: 'icon label' '. info';
column-gap: 0.5rem;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

display: grid is my new favorite thing 😄

left: 0;
}

.close {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Should there be a hover state on the close button?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Probably. The designs didn't indicate what that should be.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Yea, apologies, the components on it are a little out of date. Feel free to add the hover, and we'll do a refinement stage later too.

border-radius: var(--border-radius);
background-color: var(--body-bg);
background-color: var(--color-bg-1);
margin-top: 2rem;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Intentionally not centered on the page?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

It didn't seem to be in the designs but maybe that was just my impression of it.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Made it so that it's centered again.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The modal should be anchored to the top of the page and offset from there, not centered. This prevents any positioning weirdness if/when it resizes.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

At the moment the modal always has a fixed height of 80vh, so I wouldn't expect weirdness.
Happy to make it dynamically sized but I think I'll leave that till we implement a proper empty state to see how that actually feels.

@taiyab taiyab left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Great work @fkling!

We might have to revert your tab changes here (these might be outdated), however, let's merge this in first and I'll do a thorough review against it when I'm back from OOO.

@fkling

fkling commented Jun 20, 2024

Copy link
Copy Markdown
Contributor Author

We might have to revert your tab changes here (these might be outdated),

Yeah I felt like we made lots of changes to tabs and I'm confused :D

@fkling fkling enabled auto-merge (squash) June 20, 2024 08:25
@fkling fkling merged commit 3b79195 into main Jun 20, 2024
@fkling fkling deleted the fkling/srch-458-update-fuzzy-finder-designs branch June 20, 2024 08:28
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants