Skip to content
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(docs-infra): created new widget for events page #36517

Closed
wants to merge 6 commits into from

Conversation

ajitsinghkaler
Copy link
Contributor

@ajitsinghkaler ajitsinghkaler commented Apr 8, 2020

Earlier data in events page was hardcoded and data have to be moved manually in the table now events will automatically move between current and past events in this implementation

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • angular.io application / infrastructure changes
  • Other... Please describe:

What is the current behavior?

Data has to be manually changed in events

Issue Number: N/A

What is the new behavior?

Data will automatically be changed in presented and upcoming events

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

@ajitsinghkaler
Copy link
Contributor Author

@petebacondarwin @StephenFluin @gkalpak if we can finalize the way in which the new events widget will be implemented after that I will add tests

@ngbot ngbot bot added this to the needsTriage milestone Apr 9, 2020
@gkalpak gkalpak added aio: preview action: review The PR is still awaiting reviews from at least one requested reviewer target: patch This PR is targeted for the next patch release feature Issue that requests a new feature labels Apr 12, 2020
@mary-poppins
Copy link

You can preview bf62aab at https://pr36517-bf62aab.ngbuilds.io/.
You can preview 3be5189 at https://pr36517-3be5189.ngbuilds.io/.

@gkalpak gkalpak added this to REVIEW in docs-infra Apr 12, 2020
Copy link
Member

@gkalpak gkalpak left a comment

Choose a reason for hiding this comment

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

I've wanted this for a long time, thx, @ajitsinghkaler 🎉
I've left a first round of comments.

aio/src/app/custom-elements/events/events.component.html Outdated Show resolved Hide resolved
aio/src/app/custom-elements/events/events.component.html Outdated Show resolved Hide resolved
aio/content/marketing/events.json Outdated Show resolved Hide resolved
aio/content/marketing/events.json Outdated Show resolved Hide resolved
aio/src/app/custom-elements/events/events.component.ts Outdated Show resolved Hide resolved
aio/src/app/custom-elements/events/events.component.ts Outdated Show resolved Hide resolved
aio/src/app/custom-elements/events/events.component.ts Outdated Show resolved Hide resolved
aio/content/marketing/events.json Outdated Show resolved Hide resolved
aio/src/app/custom-elements/events/events.service.ts Outdated Show resolved Hide resolved
@mary-poppins
Copy link

You can preview 5332c91 at https://pr36517-5332c91.ngbuilds.io/.

@ajitsinghkaler
Copy link
Contributor Author

@gkalpak made the changes but made the event data changes only on few events once we confirm it we can migrate the whole data

@mary-poppins
Copy link

You can preview 171f7c0 at https://pr36517-171f7c0.ngbuilds.io/.

Copy link
Member

@gkalpak gkalpak left a comment

Choose a reason for hiding this comment

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

Thx for making the changes, @ajitsinghkaler 🚀
Here's a second round of comments 😁

aio/src/app/custom-elements/events/events.service.ts Outdated Show resolved Hide resolved
aio/src/app/custom-elements/events/events.component.ts Outdated Show resolved Hide resolved
aio/src/app/custom-elements/events/events.component.ts Outdated Show resolved Hide resolved
aio/content/marketing/events.json Outdated Show resolved Hide resolved
aio/src/app/custom-elements/events/events.component.html Outdated Show resolved Hide resolved
aio/src/app/custom-elements/events/events.component.html Outdated Show resolved Hide resolved
aio/src/app/custom-elements/events/events.component.ts Outdated Show resolved Hide resolved
aio/src/app/custom-elements/events/events.component.html Outdated Show resolved Hide resolved
@petebacondarwin petebacondarwin removed their request for review April 15, 2020 09:58
@petebacondarwin
Copy link
Member

Happy to let @gkalpak take the lead on reviewing this. If you want extra input from me, please re-add me as a reviewer when it is ready.

@mary-poppins
Copy link

You can preview b473d7b at https://pr36517-b473d7b.ngbuilds.io/.

@ajitsinghkaler
Copy link
Contributor Author

@gkalpak made the changes please have a look

@mary-poppins
Copy link

You can preview 8d3bd94 at https://pr36517-8d3bd94.ngbuilds.io/.

@ajitsinghkaler
Copy link
Contributor Author

ajitsinghkaler commented Apr 20, 2020

I will make linting changes later

@gkalpak
Copy link
Member

gkalpak commented Sep 13, 2020

@ajitsinghkaler, could you rebase this and fix conflicts?

ajitsinghkaler and others added 6 commits September 15, 2020 09:23
Data in events page was hardcoded and it is manually moved in the table.

Created a new events widget which will automatically move past and upcoming
events from events.json (`aio/content/marketing/events.json`) file to the
relevant table in the events tab
In the events.json file most of tooltips are same as name so there
were of no use, as they were providing no extra information. So,
removed them from the events.json file
…cases

This commit simplifies the tests of `EventsComponent` (by introducing a
`createMockEvent()` helper and getting rid of the irrelevant `Event`
fields) and adds tests for some more usecases. It also makes the tests
more robust by using Jasmine's `Clock` to mock the current date.
@mary-poppins
Copy link

You can preview d73cfd2 at https://pr36517-d73cfd2.ngbuilds.io/.

@ajitsinghkaler
Copy link
Contributor Author

ajitsinghkaler commented Sep 15, 2020

@gkalpak rebased it tell me anything else needed

Copy link
Member

@gkalpak gkalpak left a comment

Choose a reason for hiding this comment

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

Reviewed-for: global-docs-approvers

@petebacondarwin petebacondarwin marked this pull request as draft September 15, 2020 16:04
@petebacondarwin petebacondarwin marked this pull request as ready for review September 15, 2020 16:05
Copy link
Contributor

@IgorMinar IgorMinar left a comment

Choose a reason for hiding this comment

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

LGTM! Thank you!

Reviewed-for: global-approvers, size-tracking

@IgorMinar IgorMinar added action: merge The PR is ready for merge by the caretaker and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Sep 16, 2020
AndrewKushnir pushed a commit that referenced this pull request Sep 16, 2020
In the events.json file most of tooltips are same as name so there
were of no use, as they were providing no extra information. So,
removed them from the events.json file

PR Close #36517
AndrewKushnir pushed a commit that referenced this pull request Sep 16, 2020
…cases (#36517)

This commit simplifies the tests of `EventsComponent` (by introducing a
`createMockEvent()` helper and getting rid of the irrelevant `Event`
fields) and adds tests for some more usecases. It also makes the tests
more robust by using Jasmine's `Clock` to mock the current date.

PR Close #36517
AndrewKushnir pushed a commit that referenced this pull request Sep 16, 2020
Data in events page was hardcoded and it is manually moved in the table.

Created a new events widget which will automatically move past and upcoming
events from events.json (`aio/content/marketing/events.json`) file to the
relevant table in the events tab

PR Close #36517
AndrewKushnir pushed a commit that referenced this pull request Sep 16, 2020
In the events.json file most of tooltips are same as name so there
were of no use, as they were providing no extra information. So,
removed them from the events.json file

PR Close #36517
AndrewKushnir pushed a commit that referenced this pull request Sep 16, 2020
…cases (#36517)

This commit simplifies the tests of `EventsComponent` (by introducing a
`createMockEvent()` helper and getting rid of the irrelevant `Event`
fields) and adds tests for some more usecases. It also makes the tests
more robust by using Jasmine's `Clock` to mock the current date.

PR Close #36517
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Oct 17, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker aio: preview cla: yes feature Issue that requests a new feature target: patch This PR is targeted for the next patch release
Projects
Development

Successfully merging this pull request may close these issues.

None yet

9 participants