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: started dasboard page dvt60/dashboards-page #96

Merged
merged 7 commits into from
Jan 3, 2024

Conversation

uBaranT
Copy link

@uBaranT uBaranT commented Dec 27, 2023

SUMMARY

Dashboard page has been created.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

TESTING INSTRUCTIONS

ADDITIONAL INFORMATION

  • Has associated issue:
  • Required feature flags:
  • Changes UI
  • Includes DB Migration (follow approval process in SIP-59)
    • Migration is atomic, supports rollback & is backwards-compatible
    • Confirm DB migration upgrade and downgrade tested
    • Runtime estimates and downtime expectations provided
  • Introduces new feature or API
  • Removes existing feature or API

@uBaranT uBaranT self-assigned this Dec 27, 2023
{ id: 1, title: 'ID', field: 'id', flex: 1, checkbox: true },
{ id: 2, title: 'Title', field: 'title', flex: 2 },
{ id: 3, title: 'Date', field: 'date', flex: 2 },
];

Choose a reason for hiding this comment

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

dummyHeader dummy değil aslında gerçek başlıklar kodluyoruz "dummy" kaldırabilirsin sadece header ya da headerData olur, bu başlık 3 tane var ama figmadaki aynısı 7 tane başlık kalmalı

bold
typeColour="powder"
onClick={() => {}}
/>

Choose a reason for hiding this comment

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

StyledDashboardListButtons height 56px kalmalı figmadaki height aynısı olmalı boşlukları eşit düzeltmeli

<StyledDashboardListButtons>
<StyledDvtSelectButtons>
<DvtButton
label="Unselect All"

Choose a reason for hiding this comment

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

Unselect? figmadaki Deselect yazıyor. bu ne işe yarayacağı function gerekiyor

Choose a reason for hiding this comment

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

tablodaki seçilmiş olursa sayısı "10 Selected" falan olması lazım. figmadaki yanısı olmalı

@omerfbolat
Copy link

navbar altındaki gözükmemeli, dvt-navbar düzeltebilirsin figmadaki aynı olmalı

const handleCreateDashboard = () => {
history.push('/superset/dashboard');
};
console.log(data);

Choose a reason for hiding this comment

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

console log kalmamalı.

header={headerData}
selected={selectedRows}
setSelected={setSelectedRows}
checkboxActiveField="id"

Choose a reason for hiding this comment

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

senin ki data checkboxActiveField="id" olan data içinde id bulamadıysa sorun olur. Data içinde tek bir unique varsa o olmalı

<DvtPagination
page={currentPage}
setPage={setCurrentPage}
itemSize={data.length}

Choose a reason for hiding this comment

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

itemSize={data.length} > data değil aslında api geliyorsa count koyman gerekiyor ve page 2 olursa api dönüştürmesi gerekiyor

@@ -110,6 +110,8 @@ function DvtDashboardList() {
}
};
fetchApi();
setSelectedRows([]);
setSelectedItemCount(0);

Choose a reason for hiding this comment

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

setSelectedItemCount(0); bu gerek yok, page sıfırlanmasın

function DvtDashboardList() {
const [selectedRows, setSelectedRows] = useState<any[]>([]);
const [currentPage, setCurrentPage] = useState<number>(1);
const [selectedItemCount, setSelectedItemCount] = useState<number>(0);

Choose a reason for hiding this comment

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

const [selectedItemCount, setSelectedItemCount] = useState(0); gerek yok kaldırabilirisn. SelectedRows.lenght kullanabilirisn yeterli

<StyledDvtSelectButtons>
<StyledSelectedItem>
<StyledSelectedItemCount>
<span>{`${selectedItemCount} Selected`}</span>

Choose a reason for hiding this comment

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

selectedItemCount kaldırıyorsun, yerinde selectedRows.length kullanmalı.

@omerfbolat omerfbolat merged commit 2e28d15 into dev Jan 3, 2024
28 checks passed
@omerfbolat omerfbolat deleted the dvt60/dashboards-page branch January 3, 2024 08:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants