Show configured report columns as fields in the single-expense report and expense views
Problem
Admins can configure which columns display on the report (list) view of a multi-expense report ā for example, Category GL code, Exchange rate, or MCC. That configuration doesn't carry into the single-expense report view or the individual expense view, so clicking into an expense shows less information than the row you clicked. Admins have asked for these fields repeatedly on customer calls.
Solution
Follow whatever column preferences are already configured for the report view, and surface that same data as additional fields:
- Single-expense report view: show the configured columns as fields for that expense.
- Expense view: show the configured columns as additional fields when you click into an expense from a report.
The data is already available (it renders in the parent report view), so this should mostly be a matter of adding rows rather than building a new editor.
Notes
- A vertical list of fields can hold more than a horizontally scrolling table, so fitting the extra fields shouldn't be a constraint.
- An alternative discussed was a per-user "view single-expense reports in list view" toggle (with a POC build). That's worth revisiting if the field-based approach doesn't cover the need, but the agreed direction here is to add the fields.
- Design input welcome on ordering and how many extra fields to show before it gets noisy.
Reported in Slack.
Issue Owner
Current Issue Owner: @QichenZhu
Triggered auto assignment to @shawnborton (Design), see these Stack Overflow questions for more details.
I think the main consideration here is we probably just need some kind of "Edit fields" button on the expense view? I would probably put that in the More menu for now as I don't think we have a great place for it otherwise.
Or what exactly are you thinking we need here from a design/mockup perspective?
I agree, I think we'd just make this available in More.
I think the main consideration here is we probably just need some kind of "Edit fields" button on the expense view? I would probably put that in the More menu for now as I don't think we have a great place for it otherwise.
I like that idea.
So just roughly mocking up this idea here... I think maybe the best place to put this option would be in the More menu, but what should we call it? I have customize view for now, but it might be nice to find harmony between the expense/one-expense report view and how we call it "Custom columns" elsewhere
Then I assume we'll launch a similar draggable row experience. I mean technically, you should be able to reorder anything?
This menu above is going to get a little insane for the one-expense report view though, because in theory we need to show options for both reports AND expenses.
Then if you add any custom columns, I assume they are just read-only rows:
Let me know if that is enough to get the convo started! cc @Expensify/design for eyes, Fig here
With the one-expense view still intact, I don't see a neater solution. I like the reuse and it solves the problem at least.
I agree, I can't think of a better way to implement this. Should I just add the external label?
@trjExpensify who worked on the original custom columns implementation? Maybe they would be a good candidate for this before we hit the External label?
Really small thing, though should the options be Customize view and then View details. It slightly throws me off, the repetition of view.
Really small thing, though should the options be Customize view and then View details. It slightly throws me off, the repetition of view.
Should we call this Customize fields for the one-expense view? Any better ideas?
I have customize view for now, but it might be nice to find harmony between the expense/one-expense report view and how we call it "Custom columns" elsewhere
I agree this would be nice, but these just feel like pretty different things at the moment. š¤
I like Customize fields for the one-expense view š
Same, I can get down with that š
@trjExpensify who worked on the original custom columns implementation? Maybe they would be a good candidate for this before we hit the External label?
Erm, @JS00001 and @luacmartins used the project as a sprint last year. I don't recall us outsourcing it... š¤
Got it. Maybe we go directly to the C+ room and look for a volunteer then?
Nice, Customize fields works for me too.
We can find a contributor to help with this. @QichenZhu and @brunovjk helped review every custom columns PR during this sprint, so maybe one of them want to implement and one wants to review? I'm also happy to take internal review here
@brunovjk @QichenZhu would you want to help with this project?
Great! Iād be happy to participate, implement or review. Thanks.
@brunovjk, assigning you here for implementation.
so maybe one of them want to implement and one wants to review?
@brunovjk, assigning you here for implementation.
Thanks! So I can do the review then?
Sounds great!