Skip to content

Commit

Permalink
Adjust story with repository
Browse files Browse the repository at this point in the history
  • Loading branch information
GODrums committed Oct 4, 2024
1 parent 7f951a4 commit 42b9ba7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion webapp/src/app/home/home.component.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Component, computed, effect, inject } from '@angular/core';
import { Component, computed, inject } from '@angular/core';
import { ActivatedRoute } from '@angular/router';
import { injectQuery } from '@tanstack/angular-query-experimental';
import { LeaderboardService } from 'app/core/modules/openapi/api/leaderboard.service';
Expand Down
17 changes: 9 additions & 8 deletions webapp/src/app/home/leaderboard/filter/filter.stories.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { argsToTemplate, type Meta, type StoryObj } from '@storybook/angular';
import { type Meta, type StoryObj } from '@storybook/angular';
import { LeaderboardFilterComponent } from './filter.component';

const meta: Meta<LeaderboardFilterComponent> = {
Expand All @@ -17,6 +17,12 @@ const meta: Meta<LeaderboardFilterComponent> = {
type: 'text'
},
description: 'Right limit of the timeframe'
},
repository: {
control: {
type: 'text'
},
description: 'Repository to filter for'
}
}
};
Expand All @@ -25,12 +31,7 @@ export default meta;
type Story = StoryObj<LeaderboardFilterComponent>;

export const Default: Story = {
args: {
after: '2024-09-09',
before: '2024-09-15'
},
render: (args) => ({
props: args,
template: `<app-leaderboard-filter ${argsToTemplate(args)} />`
render: () => ({
template: '<app-leaderboard-filter />'
})
};

0 comments on commit 42b9ba7

Please sign in to comment.