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

update mdi-react, modify last sync icon #26617

Merged
merged 4 commits into from
Oct 26, 2021
Merged

update mdi-react, modify last sync icon #26617

merged 4 commits into from
Oct 26, 2021

Conversation

limitedmage
Copy link
Contributor

@limitedmage limitedmage commented Oct 25, 2021

Updates mdi-react to latest version in order to fix #26016

  • Last sync time icon has been changed to weather-cloudy-clock (fixes The last sync time icon is misleading #26016)

    • before:
      image
    • after:
      image
  • Some icons have been renamed in the new version of MDI:

    • user -> account
    • users -> account-multiple
    • do-not-disturb -> minus-circle
    • error -> alert-circle
  • The amazon icon has been removed from the latest MDI. I've replaced with the aws icon which should be fine for the one scenario we use it in (adding a repo from AWS Code Commit).

    • before:
      image
    • after:
      image
  • The cancel icon has been flipped in the latest MDI to match other icons with the same symbol and meaning (e.g. account-cancel)

    • before:
      image
    • after:
      image
  • The book-open-variant icon that we use for API docs has been changed to have text in it. I have changed it to book-open-blank-variant so it remains blank.

@cla-bot cla-bot bot added the cla-signed label Oct 25, 2021
@@ -170,8 +170,8 @@ export const BatchSpecExecutionDetailsPage: React.FunctionComponent<BatchSpecExe
// execution.state === BatchSpecState.COMPLETED
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@sourcegraph/batchers Is there a reason this code is commented out instead of deleted?

Copy link
Member

Choose a reason for hiding this comment

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

It disappears in a PR that's already open

import * as React from 'react'

import { LinkOrSpan } from '@sourcegraph/shared/src/components/LinkOrSpan'
import * as GQL from '@sourcegraph/shared/src/graphql/schema'

export const RegistryExtensionSourceBadge: React.FunctionComponent<{
extension: Pick<GQL.IRegistryExtension, 'remoteURL' | 'registryName' | 'isLocal'>
showIcon?: boolean
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This prop has been removed altogether because it is never used.

@limitedmage limitedmage marked this pull request as ready for review October 25, 2021 23:13
@limitedmage limitedmage requested review from rrhyne, quinnkeast and a team October 25, 2021 23:13
@sourcegraph-bot
Copy link
Contributor

sourcegraph-bot commented Oct 25, 2021

Notifying subscribers in CODENOTIFY files for diff b1ff8e2...d98d0d1.

Notify File(s)
@efritz client/web/src/enterprise/codeintel/detail/CodeIntelIndexTimeline.tsx
client/web/src/enterprise/codeintel/detail/CodeIntelUploadTimeline.tsx
client/web/src/enterprise/codeintel/shared/CodeIntelStateIcon.tsx
@eseliger client/web/src/enterprise/batches/detail/changesets/ChangesetLastSynced.tsx
client/web/src/enterprise/batches/detail/changesets/ChangesetStatusCell.tsx
client/web/src/enterprise/batches/execution/BatchSpecExecutionDetailsPage.tsx
client/web/src/enterprise/batches/settings/BatchSpecNode.tsx

Copy link
Member

@eseliger eseliger left a comment

Choose a reason for hiding this comment

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

Great work :) Thank you for tackling this, I bet this has been a bit cumbersome

@limitedmage
Copy link
Contributor Author

@rrhyne (or someone else from @sourcegraph/design), can you please review that the updated icons are OK?

@marisak
Copy link

marisak commented Oct 25, 2021

I don't have context for all the icons, but based on the details these changes look good to me! I have a slight preference for book-open-blank-variant over book-open-variant because I think the former is cleaner.

Copy link
Contributor

@rrhyne rrhyne left a comment

Choose a reason for hiding this comment

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

Looks great. There were very very minor changes in the storybook other than the new icon for sync time.

@rrhyne
Copy link
Contributor

rrhyne commented Oct 26, 2021

All the other changes here are logical as well.

@slimsag please note Julianna's comment that when updating the icon library, the book-open-variant icon that we use for API docs has been changed to have text in it. If we want it to remain blank, we need to change it to book-open-blank-variant.

before:
image

after:
image

I suggest we merge this PR without that change to get the cloud icon sync change complete.

@limitedmage
Copy link
Contributor Author

I'll update the book icon to use the blank version since that seems to be more desired :)

@limitedmage limitedmage merged commit 6040bbc into main Oct 26, 2021
@limitedmage limitedmage deleted the jp/updateicons branch October 26, 2021 21:26
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.

The last sync time icon is misleading
5 participants