-
Notifications
You must be signed in to change notification settings - Fork 148
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Show more tags in browse and home #532
Conversation
render() { | ||
const { isLoading, curatedTags, otherTags } = this.props; | ||
|
||
if (isLoading) { | ||
return <ShimmeringTagListLoader />; | ||
} | ||
|
||
const filteredTags = otherTags.filter((tag) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should I filter out tags with usage of 0 in the Curated Tags section as well? Was hesitant because it affects previous behavior, on the upside it might help keeping curated tags less stale.
Signed-off-by: Allison Suarez Miranda <asuarezmiranda@lyft.com>
Signed-off-by: Allison Suarez Miranda <asuarezmiranda@lyft.com>
…ction getPopularTags, commented out all tests for TagsList because rewrite will be necessary Signed-off-by: Allison Suarez Miranda <asuarezmiranda@lyft.com>
…onality implemented on TagsList, still need to do some work to make section not show up when no tags exist Signed-off-by: Allison Suarez Miranda <asuarezmiranda@lyft.com>
… page, as well as two section brose page displayz' Signed-off-by: Allison Suarez Miranda <asuarezmiranda@lyft.com>
Signed-off-by: Allison Suarez Miranda <asuarezmiranda@lyft.com>
Signed-off-by: Allison Suarez Miranda <asuarezmiranda@lyft.com>
…ented title switching base don curated vs popular tags Signed-off-by: Allison Suarez Miranda <asuarezmiranda@lyft.com>
Signed-off-by: Allison Suarez Miranda <asuarezmiranda@lyft.com>
…ed tags with 0 Signed-off-by: Allison Suarez Miranda <asuarezmiranda@lyft.com>
Signed-off-by: Allison Suarez Miranda <asuarezmiranda@lyft.com>
Signed-off-by: Allison Suarez Miranda <asuarezmiranda@lyft.com>
Signed-off-by: Allison Suarez Miranda <asuarezmiranda@lyft.com>
Signed-off-by: Allison Suarez Miranda <asuarezmiranda@lyft.com>
3fec7e8
to
eed74c7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
Some minor comments
amundsen_application/static/js/components/BrowsePage/tests/index.spec.tsx
Outdated
Show resolved
Hide resolved
amundsen_application/static/js/components/Tags/TagsList/index.tsx
Outdated
Show resolved
Hide resolved
amundsen_application/static/js/components/Tags/TagsList/index.tsx
Outdated
Show resolved
Hide resolved
amundsen_application/static/js/components/Tags/TagsList/styles.scss
Outdated
Show resolved
Hide resolved
amundsen_application/static/js/components/Tags/TagsList/styles.scss
Outdated
Show resolved
Hide resolved
amundsen_application/static/js/components/Tags/TagsList/styles.scss
Outdated
Show resolved
Hide resolved
amundsen_application/static/js/components/Tags/TagsList/styles.scss
Outdated
Show resolved
Hide resolved
amundsen_application/static/js/components/Tags/TagsList/styles.scss
Outdated
Show resolved
Hide resolved
Signed-off-by: Allison Suarez Miranda <asuarezmiranda@lyft.com>
ddc99c9
to
b1c141a
Compare
Signed-off-by: Allison Suarez Miranda <asuarezmiranda@lyft.com>
e78dbd1
to
c8779cd
Compare
Signed-off-by: Allison Suarez Miranda <asuarezmiranda@lyft.com>
Signed-off-by: Allison Suarez Miranda <asuarezmiranda@lyft.com>
Signed-off-by: Allison Suarez Miranda <asuarezmiranda@lyft.com>
Signed-off-by: Allison Suarez Miranda <asuarezmiranda@lyft.com>
amundsen_application/static/js/components/common/Tags/TagsList/index.spec.tsx
Outdated
Show resolved
Hide resolved
Signed-off-by: Allison Suarez Miranda <asuarezmiranda@lyft.com>
amundsen_application/static/js/components/common/Tags/TagsList/index.spec.tsx
Outdated
Show resolved
Hide resolved
amundsen_application/static/js/components/HomePage/index.spec.tsx
Outdated
Show resolved
Hide resolved
Signed-off-by: Allison Suarez Miranda <asuarezmiranda@lyft.com>
Signed-off-by: Allison Suarez Miranda <asuarezmiranda@lyft.com>
Signed-off-by: Allison Suarez Miranda <asuarezmiranda@lyft.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we remove all TODO
comments and instead create issues for them in the public repo, with details and tagged as "help wanted" and good first issue? Thanks!
@@ -0,0 +1,73 @@ | |||
export const allTestTags = [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: This is just tags, but be careful of copy pasting our staging dummy data and committing that code. It's best to commit our own dummy data always.
* commit 'd2f222ea5cb648fb4a9d9bd2e242a3b36281098d': (63 commits) feat: Update 'table view', 'alumni' and SLA status badges (amundsen-io#595) build: Adding betterer to workflow (amundsen-io#598) build(deps): bump flask-restful from 0.3.7 to 0.3.8 (amundsen-io#553) chore: Removes 84 unused variables (amundsen-io#600) chore: remove travis badge and update doc link (amundsen-io#599) Fixes error on TableDetail on Dev (amundsen-io#597) chore: Bump version for pypi release. (amundsen-io#596) feat: Announcements in Homepage (amundsen-io#591) build(deps-dev): bump @babel/plugin-proposal-logical-assignment-operators (amundsen-io#574) build(deps): [security] bump lodash in /amundsen_application/static (amundsen-io#587) build(deps-dev): bump @babel/plugin-proposal-export-namespace-from (amundsen-io#588) build(deps-dev): bump lint-staged in /amundsen_application/static (amundsen-io#590) chore: fix docker push action (amundsen-io#593) feat: add github actions for FE (amundsen-io#592) chore: Re-useable OwnerEditor (amundsen-io#548) feat: Show more tags in browse and home (amundsen-io#532) Organizes, themes and adds typography stories (amundsen-io#578) docs: describe storybook (amundsen-io#577) Fixes TypeScript issues with sagas and saga tests (amundsen-io#573) build(deps-dev): bump @babel/core in /amundsen_application/static (amundsen-io#558) ... # Conflicts: # amundsen_application/api/utils/metadata_utils.py # amundsen_application/oidc_config.py # amundsen_application/static/js/components/TableDetail/ColumnList/index.tsx # amundsen_application/static/js/components/TableDetail/ColumnListItem/index.tsx # amundsen_application/static/js/components/TableDetail/constants.ts # amundsen_application/static/js/components/TableDetail/index.tsx # amundsen_application/static/js/config/index.spec.ts # amundsen_application/static/js/ducks/tableMetadata/reducer.ts # amundsen_application/static/js/fixtures/globalState.ts # amundsen_application/static/js/fixtures/metadata/table.ts # amundsen_application/static/js/interfaces/TableMetadata.ts # docs/application_config.md # requirements.txt # setup.py
Summary of Changes
Amundsen currently shows a small list of curated tags on both the homepage and browse. This is built using a FE configuration which explicitly lists out a set of approved tags to show on this widget. Since this list is manually curated but not updated, this list isn't necessarily the best set of tags to show. Additionally the "/browse" page shows the same content as the homepage, which isn't very useful. We should remove the manually curated list of tags.
The browse component should have two parts:
No curated tags specified: get popular tags sorted by usage (X number)
Curated tags specified: display curated tags under popular tags (not sorted)
Config showAllTags is true: same behavior as before on home page, show curated followed by a line and then all other tags under, this doesn't affect Browse page anymore.
Tests
What tests did you add or modify and why? If no tests were added or modified, explain why. Remove this line
Documentation
What documentation did you add or modify and why? Add any relevant links then remove this line
CheckList
Make sure you have checked all steps below to ensure a timely review.