Skip to content
This repository has been archived by the owner on Dec 19, 2024. It is now read-only.

Init Data Page #40

Merged
merged 13 commits into from
May 3, 2024
Merged

Init Data Page #40

merged 13 commits into from
May 3, 2024

Conversation

hetd54
Copy link
Collaborator

@hetd54 hetd54 commented May 1, 2024

Addresses #9 & #20

Changed

admin/config.yml: put uploaded files in the public/files directory so we can eventually have folks download selected files

DownloadModal: Button to show modal now has text for visibility

src/content/config.ts: added the file data collection for typing

data.astro: Added new component, load and pass file data collection as props

global.css: Add some explicit styles for tables and checkboxes

Added

DataTable component: Table of downloadable files which are uploaded by admins in staticCMS; features a 'check all' checkbox. Doesn't currently save this anywhere!

To do in upcoming PRs

  • Create a form for the download modal which downloads the files on submit
  • Save selected files from DataTable into the form
  • Email verification before download

@hetd54 hetd54 requested review from galenwinsor and broarr May 1, 2024 15:59
@hetd54 hetd54 self-assigned this May 1, 2024
Copy link

github-actions bot commented May 1, 2024

Visit the preview URL for this PR (updated for commit 94a0bbb):

https://mmp-site-b1c9b--pr40-data-page-init-oz32lhid.web.app

(expires Thu, 09 May 2024 18:42:40 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 4eb870c89e876f1812e204af417359065d2a23b1

src/components/DataTable.tsx Outdated Show resolved Hide resolved
src/components/DataTable.tsx Outdated Show resolved Hide resolved
src/pages/data.astro Show resolved Hide resolved
@hetd54 hetd54 requested a review from galenwinsor May 2, 2024 18:40
@hetd54 hetd54 merged commit bef53b8 into main May 3, 2024
2 checks passed
@hetd54 hetd54 deleted the data-page-init branch May 3, 2024 15:41
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants