Граф коммитов

26 Коммитов

Автор SHA1 Сообщение Дата
Bob Silverberg a4b0260576
Create a PromotedAddons shelf (#9517) 2020-07-20 10:12:14 -04:00
Bob Silverberg 0dae58fe84
Add badges for promoted add-ons (#9513) 2020-07-13 17:01:28 -04:00
William Durand e08039a615
Lockfile maintenance 2020-04-22 14:57:20 +02:00
William Durand a976477309
Honor `canUninstall` prop (#9359) 2020-04-17 14:23:16 +02:00
William Durand 58ec284cba
Add story for AMInstallButton (#9356) 2020-04-15 17:32:31 +02:00
renovate[bot] 1eb558c86d Update dependency flow-bin to ^0.113.0 (#9014) 2019-12-03 17:21:48 +01:00
Bob Silverberg 0acb4466e2
Remove enableFeatureRecommendedBadges flag and all references t… (#8784)
* Remove enableFeatureRecommendedBadges flag and all references to featured add-ons

* Fox lint errors

* Address review comments
2019-10-21 10:43:38 -04:00
renovate[bot] d88c0dfec4 Lock file maintenance (#8767) 2019-10-21 15:33:53 +02:00
Bob Silverberg df5a9807fc
Fix width of site notices and error messages on home page (#8753)
* Fix width of site noticed and error messages on home page without new hero

* Fix issue with too-wide error message on home page with new promo

* Address review comments
2019-10-15 09:01:26 -04:00
Bob Silverberg a1317dcfe4
Create loading skeleton for hero shelves (#8678)
* Create loading skeleton for hero shelves

* Adjust some styles to make the skeletons closer to the actual elements

* Address review comments

* Address final review comments
2019-10-07 15:11:54 -04:00
Bob Silverberg 25c40795dd
Different layout for primary hero based on primary image (#8648)
* Different layout for primary hero based on primary image

* Address review comments
2019-09-24 15:28:50 -04:00
Bob Silverberg 32bb91c4af
Fix HeroRecommendation story (#8645) 2019-09-23 09:33:03 -04:00
Bob Silverberg 601dd73e4d
Add dynamic Primary Hero Shelf to desktop homepage (#8487)
* Add dynamic Primary Hero Shelf to desktop homepage

* Make linkText static again

* Fix failing tests

* Address review comments
2019-08-29 12:28:44 -04:00
Kumar McMillan a5dd629f91
Add a static promo to the home page (#8400) 2019-07-30 10:43:02 -05:00
renovate[bot] 5c1cfa7505 Lock file maintenance (#8205) 2019-07-01 15:25:41 +02:00
renovate[bot] 32c493bfc2 Lock file maintenance (#8116) 2019-06-03 18:56:13 +02:00
Kumar McMillan d2fb74c09a
Tighten up styles for the recommended badges (#8062) 2019-05-24 11:26:46 -05:00
Bob Silverberg 81bb3c9370
Create a RecommendedBadge component (#7958)
* Create a RecommendedBadge component

* Update story and add RTL support

* Add target="_blank"

* Add icon and attempt to style

* Fix version of storybook-addon-rtl

* fix lint

* Fix test

* Address review comments

* Update hover text

* fix lint

* Make normal and hover colors more different from one another
2019-05-07 10:36:43 -04:00
Rebecca Mullin 3229c0452d
I7378-Icon star storybook (#7483)
fixes #7378 

~~So I readded IconStar here so it could be set up in storybook. Although, we will officially turn this on in AMO in #7365 (hopefully).~~ 

I've also added the `Rating` ~~and `RatingsByStar`~~ component~~s here too~~ so you can see the 5 star set up and we'll be able to see the changes with the new PR as these files will be updated in that PR as well.


note: while I do like the props grid, since the props are shown in the Component's variations page, maybe this is enough. Especially since the props (with flow and now with HOCs too it seems) aren't always working :/ For now tho, I just commented this out where it wasn't working properly: on Ratings and the RatingsByStar components. 

also, I would recommend looking into using this plugin again:

https://github.com/evgenykochetkov/react-storybook-addon-props-combinations

It was suggested at 1 point by someone and I think it may be easier to use than manually doing all the use cases/mixes of props as we have to do now.
2019-01-30 14:18:34 -05:00
Rebecca Mullin 33d5e8f67e
I7468 fixing broken storybook (#7469)
fixes #7468
2019-01-23 12:30:48 -05:00
William Durand d93b7685ee
Storybook upgrade (#7011) 2018-11-23 16:35:57 +01:00
William Durand e366f29141
Upgrade to Babel 7 🔥 (#6951) 2018-11-19 17:14:38 +01:00
Rebecca Mullin 95b56fca87
I6387 storybook setup followup (#6389)
fixes #6387
2018-10-16 10:19:34 -04:00
Rebecca Mullin 70066bfead
I6172 cleaning up stories webpack config (#6571)
* I6172 cleaning up config

* addressing comments

* removing ck for circular dep plugin

* updating per comments
2018-10-15 13:13:54 -04:00
Rebecca Mullin 2dc4c13cb3
Storybook format (#6256)
fixes #6159 

I personally like chapters over the combinations in that it was a bit more flexible, so I am using that here.

I followed the design that came up [here](https://github.com/mozilla/addons-frontend/pull/6060#discussion_r215322058) as I really like that : )
Of course can tweak it as needed...

Also not sure how you think Button looks - in that it's all one 1 page..? or do you think each type deserves its own page? We can move that too but I thought in this case anyway it made more sense to leave on the 1 page.

note: I haven't added proptypes or source here but I think we can. The styling didn't look super nice so I left it off for now.
2018-10-01 16:58:25 -04:00
Rebecca Mullin 78a3802d0a
Storybook setup start - phase 1 (#6060)
notes/questions:

I really liked the knobs interface which can easily change out the props but for some reason I wasn't sure if this would work well with Percy(?):
https://www.npmjs.com/package/@storybook/addon-knobs

I haven't looked into Percy yet tho so for now I will leave this : )

Storybook version:
Using v3 / stable version
4 is in alpha (I haven’t really looked into this)

Where to eventually publish to:
GitHub pages, Heroku?

Percy (for snapshots):
https://docs.percy.io/docs/storybook-for-react
If we end up keeping similar setup, will work with this?
Specifically - will knobs addon work with Percy? 

Show additional/helpful information?
Do we want to show source?
Do we want to show propType info*?

* Note: with flow props, this is still TBD how to be done

Regarding the structure, I thought about moving these inside the src directory but leave as is for now.
2018-09-06 19:07:56 -04:00