Skip to content

[Enhancement] - add responsive mobile view for documents table #606

Closed
@ogorman89

Description

@ogorman89

Describe the Current Behavior/Feature:

Implement a mobile layout for the profile document table using cards. With the existing list of objects implemented in PASS, while it would end up showing the metadata for all documents stored within the Documents container, users could technically still trigger user permissions to block other users from viewing specific files. As such, we could still utilize this list to generate our cards.

In PASS, we have an example of how cards are implemented from a list of objects, check out the existing implementation of message previews from our custom Inbox/Outbox and the MessagePreview component itself.

Rationale:

  • implements the desired layout from figma design

Proposed Changes:

  • add a mobile view for the document table
  • should switch to mobile when the table starts to have a horizontal scroll around 900px
  • mobile view should be cards like the current figma design [Update: see issue #626, also see: link to figma]
  • should be responsive
  • For the responsive breakpoint we could use the existing MUI breakpoint at theme.breakpoints.down('sm') which can be obtained by importing theme and calling const isSmallScreen = useMediaQuery(theme.breakpoints.down('sm'));.
  • should use MUI cards
Screenshot 2024-03-27 at 8 30 12 PM

Possible Drawbacks:

N/A

Alternatives Considered:

N/A

Additional Context:

N/A

Metadata

Metadata

Labels

MVPIssues related to MVPenhancementEnhancement of existing features

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions